Skip to content

Commit

Permalink
next attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
boriskaus committed May 24, 2024
1 parent 77ba53f commit 8f644bc
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions test/test_examples.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ using Test
const testing = true
@testset "examples in /scripts" begin


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

# Strength envelop example
@testset "StrengthEnvelop" begin
clean_directory()
include("../scripts/StrengthEnvelop.jl")
data,time = read_LaMEM_timestep(model,last=true);
@test time 0.09834706
@test sum(data.fields.velocity[3][:,:,:]) 14.305277f0 rtol=1e-4 # check Vz
end


# Subduction example
if !Sys.iswindows()
Expand All @@ -29,13 +39,4 @@ const testing = true
end


# Strength envelop example
@testset "StrengthEnvelop" begin
clean_directory()
include("../scripts/StrengthEnvelop.jl")
data,time = read_LaMEM_timestep(model,last=true);
@test time 0.09834706
@test sum(data.fields.velocity[3][:,:,:]) 14.305277f0 rtol=1e-4 # check Vz
end

end

0 comments on commit 8f644bc

Please sign in to comment.