Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.14.0 Release Candidate #93

Merged
merged 12 commits into from
Sep 29, 2024
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "MeshIntegrals"
uuid = "dadec2fd-bbe0-4da4-9dbe-476c782c8e47"
version = "0.14.0-DEV"
version = "0.14.0"

[deps]
CoordRefSystems = "b46f11dc-f210-4604-bfba-323c1ec968cb"
Expand Down
15 changes: 13 additions & 2 deletions test/combinations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
[Point(t * u"m", sin(t) * u"m", 0.0u"m") for t in range(-pi, pi, length = 361)]
)

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

# Scalar integrand
Expand All @@ -27,6 +29,15 @@
@test lineintegral(f, curve)≈sol rtol=0.5e-2
@test_throws "not supported" surfaceintegral(f, curve)
@test_throws "not supported" volumeintegral(f, curve)

# Check Bezier-specific jacobian bounds
@test_throws DomainError jacobian(curve, [1.1])
end

@testitem "Meshes.Box" setup=[Setup] begin
# Test for currently-unsupported >3D differentials
box4d = Box(Point(zeros(4)...), Point(ones(4))...)
JoshuaLampert marked this conversation as resolved.
Show resolved Hide resolved
@test_throws "not supported" differential(box4d, fill(0.5, 4))
end

@testitem "Meshes.Cone" setup=[Setup] begin
Expand Down
Loading