|
29 | 29 | # supports_autoenzyme(::Type{<:Any}) |
30 | 30 | @test MeshIntegrals.supports_autoenzyme(Nothing) == false |
31 | 31 |
|
| 32 | + # Check currency of supports_autoenzyme status |
| 33 | + curve = BezierCurve([Point(t, 0) for t in range(-π, π, length = 361)]) |
| 34 | + @test_throws "proven readonly" jacobian(curve, (0.5,), AutoEnzyme()) |
| 35 | + cyl = Cylinder(Point(0, 0, 0), Point(0, 0, 1), 2.0) |
| 36 | + @test_throws "jl_get_builtin_fptr" jacobian(cyl, (0.5, 0.5, 0.5), AutoEnzyme()) |
| 37 | + cylsurf = CylinderSurface(Point(0, 0, 0), Point(0, 0, 1), 2.0) |
| 38 | + @test_throws "jl_get_builtin_fptr" jacobian(cylsurf, (0.5, 0.5), AutoEnzyme()) |
| 39 | + |
32 | 40 | # _default_diff_method -- using type or instance, Enzyme-supported combination |
33 | 41 | let sphere = Sphere(Point(0, 0, 0), 1.0) |
34 | 42 | @test _default_diff_method(Meshes.Sphere, Float64) isa AutoEnzyme |
|
56 | 64 | box = Box(Point(0, 0), Point(1, 1)) |
57 | 65 | @test_throws ArgumentError jacobian(box, zeros(3), FiniteDifference()) |
58 | 66 | @test_throws ArgumentError jacobian(box, zeros(3), AutoEnzyme()) |
59 | | - |
60 | | - # Check currency of supports_autoenzyme status |
61 | | - curve = BezierCurve([Point(t, 0) for t in range(-π, π, length = 361)]) |
62 | | - @test_throws "readonly" MeshIntegrals.jacobian(curve, (0.5,), AutoEnzyme()) |
63 | 67 | end |
64 | 68 |
|
65 | 69 | @testitem "_ParametricGeometry" setup=[Utils] begin |
|
0 commit comments