Skip to content

Commit

Permalink
Move jacobian tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeingold committed Dec 5, 2024
1 parent fefd490 commit 438193e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
8 changes: 0 additions & 8 deletions test/combinations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,6 @@ end
# Package and run tests
testable = TestableGeometry(integrand, curve, solution)
runtests(testable, SupportStatus(:line); rtol=0.5e-2)

# TODO move this to Differentiation testitem
# Check Bezier-specific jacobian bounds
@test_throws DomainError jacobian(curve, [1.1])
end

@testitem "Meshes.Box 1D" setup=[Combinations] begin
Expand Down Expand Up @@ -188,10 +184,6 @@ end
# Package and run tests
testable = TestableGeometry(integrand, box, solution)
runtests(testable, SupportStatus(:surface); rtol=1e-6)

# TODO move this to Differentiation testitem
# Test jacobian with wrong number of parametric coordinates
@test_throws ArgumentError jacobian(box, zeros(3))
end

@testitem "Meshes.Box 3D" setup=[Combinations] begin
Expand Down
6 changes: 5 additions & 1 deletion test/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
@test _ones(Float32, 2) == (1.0f0, 1.0f0)
end

@testitem "DifferentiationMethod" setup=[Setup] begin
@testitem "Differentiation" setup=[Setup] begin
using MeshIntegrals: _default_diff_method

# _default_diff_method
Expand All @@ -29,6 +29,10 @@ end

# FiniteDifference
@test FiniteDifference().ε 1e-6

# Test jacobian with wrong number of parametric coordinates
box = Box(Point(0, 0), Point(a, a))
@test_throws ArgumentError jacobian(box, zeros(3))
end

@testitem "_ParametricGeometry" setup=[Setup] begin
Expand Down

0 comments on commit 438193e

Please sign in to comment.