Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
boriskaus committed May 24, 2024
1 parent c3d4b6d commit 77ba53f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
2 changes: 1 addition & 1 deletion scripts/TM_Subduction_example.jl
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ model.Solver = Solver( SolverType = "multigrid",
try testing == true
curdir = pwd()
pkg_dir = pkgdir(LaMEM)
cd(joinpath(pkg_dir,"test"))
cd(joinpath(pkg_dir))

# if we run this as part of the test suite, use fewer timesteps
if !Sys.iswindows()
Expand Down
27 changes: 14 additions & 13 deletions test/test_examples.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,6 @@ using Test
const testing = true
@testset "examples in /scripts" begin


# Subduction example
#if !Sys.iswindows()
# @testset "TM_Subduction_example" begin
# clean_directory()
# include("../scripts/TM_Subduction_example.jl")
# data,time = read_LaMEM_timestep(model,last=true);
# @test time ≈ 0.0021
# @test sum(data.fields.velocity[3][:,:,:]) ≈ 420.10352f0 rtol=1e-4 # check Vz
# end
#
#end

# 3D subduction example
if !Sys.iswindows()
@testset "Subduction3D" begin
Expand All @@ -28,6 +15,20 @@ const testing = true
end
end


# Subduction example
if !Sys.iswindows()
@testset "TM_Subduction_example" begin
clean_directory()
include("../scripts/TM_Subduction_example.jl")
data,time = read_LaMEM_timestep(model,last=true);
@test time 0.0021
@test sum(data.fields.velocity[3][:,:,:]) 420.10352f0 rtol=1e-4 # check Vz
end

end


# Strength envelop example
@testset "StrengthEnvelop" begin
clean_directory()
Expand Down

0 comments on commit 77ba53f

Please sign in to comment.