Skip to content

Commit 4086902

Browse files
mikeingoldgithub-actions[bot]JoshuaLampert
authored
Release v0.14.0 (#93)
* Add test for jacobian of Bezier out of bounds * Bump version * Specify error type * Change integrand to eliminate deprecation warning * Add test for differential in 4D * Apply format suggestions [skip ci] Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Remove obsolete line * Fix `box4d` creation * Switch to jacobian, differential not exported * Qualify usage of non-exported differential function * Typo * Switch from test_throws to test with broken=true --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Joshua Lampert <[email protected]>
1 parent 79ea114 commit 4086902

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "MeshIntegrals"
22
uuid = "dadec2fd-bbe0-4da4-9dbe-476c782c8e47"
3-
version = "0.14.0-DEV"
3+
version = "0.14.0"
44

55
[deps]
66
CoordRefSystems = "b46f11dc-f210-4604-bfba-323c1ec968cb"

test/combinations.jl

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@
77
[Point(t * u"m", sin(t) * u"m", 0.0u"m") for t in range(-pi, pi, length = 361)]
88
)
99

10-
f(x, y, z) = (1 / sqrt(1 + cos(x)^2)) * u"Ω/m"
11-
f(p::Meshes.Point) = f(ustrip(to(p))...)
10+
function f(p::P) where {P <: Meshes.Point}
11+
ux = ustrip(p.coords.x)
12+
(1 / sqrt(1 + cos(ux)^2)) * u"Ω/m"
13+
end
1214
fv(p) = fill(f(p), 3)
1315

1416
# Scalar integrand
@@ -27,6 +29,15 @@
2729
@test lineintegral(f, curve)sol rtol=0.5e-2
2830
@test_throws "not supported" surfaceintegral(f, curve)
2931
@test_throws "not supported" volumeintegral(f, curve)
32+
33+
# Check Bezier-specific jacobian bounds
34+
@test_throws DomainError jacobian(curve, [1.1])
35+
end
36+
37+
@testitem "Meshes.Box" setup=[Setup] begin
38+
# Test for currently-unsupported >3D differentials
39+
box4d = Box(Point(zeros(4)...), Point(ones(4)...))
40+
@test integral(f -> one(Float64), box4d)1.0u"m^4" broken=true
3041
end
3142

3243
@testitem "Meshes.Cone" setup=[Setup] begin

0 commit comments

Comments
 (0)