Skip to content

Commit

Permalink
update tests (only test examples for now)
Browse files Browse the repository at this point in the history
  • Loading branch information
boriskaus committed Apr 21, 2024
1 parent af69120 commit 9804f8d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 18 deletions.
16 changes: 8 additions & 8 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
using Test
using LaMEM

include("test_julia_setups.jl")
include("runLaMEM.jl")
include("read_timestep.jl")
include("run_lamem_save_grid_test.jl")
include("mesh_refinement_test.jl")
include("read_logfile.jl")
include("test_compression.jl")
include("test_GeoParams_integration.jl")
#include("test_julia_setups.jl")
#include("runLaMEM.jl")
#include("read_timestep.jl")
#include("run_lamem_save_grid_test.jl")
#include("mesh_refinement_test.jl")
#include("read_logfile.jl")
#include("test_compression.jl")
#include("test_GeoParams_integration.jl")
include("test_examples.jl")

if !Sys.iswindows()
Expand Down
13 changes: 3 additions & 10 deletions test/test_examples.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,19 @@ using Test

@testset "examples in /scripts" begin

testing = true

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

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

# 3D subduction example
@testset "Subduction3D" begin
testing = true
clean_directory()
include("../scripts/Subduction3D.jl")
data,time = read_LaMEM_timestep(model,last=true);
Expand All @@ -33,6 +25,7 @@ using Test

# Strength envelop example
@testset "StrengthEnvelop" begin
testing = true
clean_directory()
include("../scripts/StrengthEnvelop.jl")
data,time = read_LaMEM_timestep(model,last=true);
Expand Down

0 comments on commit 9804f8d

Please sign in to comment.