File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 289289
290290 # Package and run tests
291291 testable = TestableGeometry (integrand, grid, solution)
292- runtests (testable)
292+ runtests (testable; rtol = 1e-6 )
293293end
294294
295295@testitem " Meshes.Circle" setup= [Combinations] begin
@@ -651,21 +651,21 @@ end
651651@testitem " Meshes.RegularGrid" setup= [Combinations] begin
652652 # Geometry
653653 a = π
654- start = Point (0 , 0 , 0 )
655- finish = Point (a, a, a )
656- dims = (4 , 4 , 4 )
654+ start = Point (0 , 0 )
655+ finish = Point (a, a)
656+ dims = (4 , 4 )
657657 grid = RegularGrid (start, finish, dims = dims)
658658
659659 # Integrand & Solution
660660 function integrand (p:: Meshes.Point )
661- x₁, x₂, x₃ = ustrip .(to (p))
662- (√ (a^ 2 - x₁^ 2 ) + √ (a^ 2 - x₂^ 2 ) + √ (a ^ 2 - x₃ ^ 2 ) ) * u " A"
661+ x₁, x₂ = ustrip .(to (p))
662+ (√ (a^ 2 - x₁^ 2 ) + √ (a^ 2 - x₂^ 2 )) * u " A"
663663 end
664- solution = 3 a ^ 2 * (π * a^ 2 / 4 ) * u " A*m^3 "
664+ solution = 2 a * (π * a^ 2 / 4 ) * u " A*m^2 "
665665
666666 # Package and run tests
667667 testable = TestableGeometry (integrand, grid, solution)
668- runtests (testable)
668+ runtests (testable; rtol = 1e-6 )
669669end
670670
671671@testitem " Meshes.Ring" setup= [Combinations] begin
You can’t perform that action at this time.
0 commit comments