Skip to content

Commit

Permalink
switch back to atol
Browse files Browse the repository at this point in the history
  • Loading branch information
aelligp committed Feb 23, 2024
1 parent 8d93e4d commit d71fe57
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion test/test_VanKeken.jl
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,6 @@ end
@suppress begin
iters, Urms = VanKeken2D()
@test passed = iters.err_evo1[end] < 1e-4
@test maximum(Urms) 0.006467433778939805 rtol=1e-4
@test maximum(Urms) 0.006467433778939805 atol=1e-4
end
end
4 changes: 2 additions & 2 deletions test/test_diffusion2D.jl
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ end
nx=32;
ny=32;
thermal = diffusion_2D(nx = nx, ny = ny)
@test thermal.T[Int(ceil(size(thermal.T)[1]/2)), Int(ceil(size(thermal.T)[2]/2))] 1823.6076461523571 rtol=1e-1
@test thermal.Tc[Int(ceil(size(thermal.Tc)[1]/2)), Int(ceil(size(thermal.Tc)[2]/2))] 1828.3169386441218 rtol=1e-1
@test thermal.T[Int(ceil(size(thermal.T)[1]/2)), Int(ceil(size(thermal.T)[2]/2))] 1823.6076461523571 atol=1e-1
@test thermal.Tc[Int(ceil(size(thermal.Tc)[1]/2)), Int(ceil(size(thermal.Tc)[2]/2))] 1828.3169386441218 atol=1e-1
end
end
4 changes: 2 additions & 2 deletions test/test_diffusion2D_multiphase.jl
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ end
nx=32;
ny=32;
thermal = diffusion_2D(nx = nx, ny = ny)
@test thermal.T[Int(ceil(size(thermal.T)[1]/2)), Int(ceil(size(thermal.T)[2]/2))] 1819.2297931741878 rtol=1e-1
@test thermal.Tc[Int(ceil(size(thermal.Tc)[1]/2)), Int(ceil(size(thermal.Tc)[2]/2))] 1824.3532934301472 rtol=1e-1
@test thermal.T[Int(ceil(size(thermal.T)[1]/2)), Int(ceil(size(thermal.T)[2]/2))] 1819.2297931741878 atol=1e-1
@test thermal.Tc[Int(ceil(size(thermal.Tc)[1]/2)), Int(ceil(size(thermal.Tc)[2]/2))] 1824.3532934301472 atol=1e-1
end
end
4 changes: 2 additions & 2 deletions test/test_diffusion3D.jl
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ end
ny=32;
nz=32;
thermal = diffusion_3D(nx = nx, ny = ny, nz = nz)
@test thermal.T[Int(ceil(nx/2)), Int(ceil(ny/2)), Int(ceil(nz/2))] 1805.5689770363524 rtol=1e-3
@test thermal.Tc[Int(ceil(nx/2)), Int(ceil(ny/2)), Int(ceil(nz/2))] 1804.7216858558063 rtol=1e-3
@test thermal.T[Int(ceil(nx/2)), Int(ceil(ny/2)), Int(ceil(nz/2))] 1805.5689770363524 atol=1e-3
@test thermal.Tc[Int(ceil(nx/2)), Int(ceil(ny/2)), Int(ceil(nz/2))] 1804.7216858558063 atol=1e-3
end
end
4 changes: 2 additions & 2 deletions test/test_shearband2D.jl
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ end
@suppress begin
iters, τII, sol = ShearBand2D()
@test passed = iters.err_evo1[end] < 1e-6
@test τII[end] 1.4170633311147924 rtol = 1e-6
@test sol[end] 1.939605233155363 rtol = 1e-6
@test τII[end] 1.4170633311147924 atol = 1e-6
@test sol[end] 1.939605233155363 atol = 1e-6
end

end
4 changes: 2 additions & 2 deletions test/test_shearband2D_softening.jl
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ end
@suppress begin
iters, τII, sol = ShearBand2D()
@test passed = iters.err_evo1[end] < 1e-6
@test τII[end] 1.4835946498759345 rtol = 1e-6
@test sol[end] 1.942550720691521 rtol = 1e-6
@test τII[end] 1.4835946498759345 atol = 1e-6
@test sol[end] 1.942550720691521 atol = 1e-6
end
end
2 changes: 1 addition & 1 deletion test/test_sinking_block.jl
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,6 @@ end
@suppress begin
iters, velocity = Sinking_Block2D()
@test passed = iters.err_evo1[end] < 1e-5
@test maximum(velocity) 4.841885609356093e-10 rtol = 1e-6
@test maximum(velocity) 4.841885609356093e-10 atol = 1e-6
end
end

0 comments on commit d71fe57

Please sign in to comment.