Skip to content

Commit

Permalink
Mesher test for all internal models
Browse files Browse the repository at this point in the history
  • Loading branch information
sstaehler committed Jan 3, 2021
1 parent 3e3398b commit 616925a
Show file tree
Hide file tree
Showing 8 changed files with 272 additions and 304 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ SOLVER/inparam_source
SOLVER/STATIONS

*.gcno
*.gcda
__pycache__
.idea/
MESHER/gitversion.h
Makefile
Expand Down
1 change: 1 addition & 0 deletions TESTING/submit.py
77 changes: 0 additions & 77 deletions TESTING/test_axisem.py

This file was deleted.

6 changes: 4 additions & 2 deletions TESTING/test_debug.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
#!/bin/bash
set -ev

./TESTING/test_mesher.py

cp $TEST_DIR/TEST04_anelastic_anisotropic/inparam_basic .
./submit.py TEST04 $TEST_DIR/TEST04_anelastic_anisotropic/model.bm 100.0 --jobtype local --ntheta 4
./submit.py TEST04 $TEST_DIR/TEST04_anelastic_anisotropic/model.bm 100.0 --job_type local --ntheta 4

cp $TEST_DIR/inparam_basic_el .
./submit.py test_prem_iso_el prem_iso 100.0 --jobtype local --ntheta 4
./submit.py test_prem_iso_el prem_iso 100.0 --job_type local --ntheta 4
8 changes: 4 additions & 4 deletions TESTING/test_external.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
set -ev

cp $TEST_DIR/TEST01_elastic_isotropic/inparam_basic .
./submit.py TEST01 $TEST_DIR/TEST01_elastic_isotropic/model.bm 80.0 --jobtype local --ntheta 4
./submit.py TEST01 $TEST_DIR/TEST01_elastic_isotropic/model.bm 80.0 --job_type local --ntheta 4

cp $TEST_DIR/TEST02_elastic_anisotropic/inparam_basic .
./submit.py TEST02 $TEST_DIR/TEST02_elastic_anisotropic/model.bm 80.0 --jobtype local --ntheta 4
./submit.py TEST02 $TEST_DIR/TEST02_elastic_anisotropic/model.bm 80.0 --job_type local --ntheta 4

cp $TEST_DIR/TEST03_anelastic_isotropic/inparam_basic .
./submit.py TEST03 $TEST_DIR/TEST03_anelastic_isotropic/model.bm 80.0 --jobtype local --ntheta 4
./submit.py TEST03 $TEST_DIR/TEST03_anelastic_isotropic/model.bm 80.0 --job_type local --ntheta 4

cp $TEST_DIR/TEST04_anelastic_anisotropic/inparam_basic .
./submit.py TEST04 $TEST_DIR/TEST04_anelastic_anisotropic/model.bm 80.0 --jobtype local --ntheta 4
./submit.py TEST04 $TEST_DIR/TEST04_anelastic_anisotropic/model.bm 80.0 --job_type local --ntheta 4
16 changes: 9 additions & 7 deletions TESTING/test_internal.sh
Original file line number Diff line number Diff line change
@@ -1,25 +1,27 @@
#!/bin/bash
set -ev

./TESTING/test_mesher.py

cp $TEST_DIR/inparam_basic_anel .
./submit.py test_prem_iso_anel prem_iso 80.0 --jobtype local --ntheta 4
./submit.py test_prem_iso_anel prem_iso 80.0 --job_type local --ntheta 4

cp $TEST_DIR/inparam_basic_anel .
./submit.py test_prem_ani_anel prem_ani 80.0 --jobtype local --ntheta 4
./submit.py test_prem_ani_anel prem_ani 80.0 --job_type local --ntheta 4

cp $TEST_DIR/inparam_basic_el .
./submit.py test_prem_iso_el prem_iso 80.0 --jobtype local --ntheta 4
./submit.py test_prem_iso_el prem_iso 80.0 --job_type local --ntheta 4

cp $TEST_DIR/inparam_basic_el .
./submit.py test_prem_ani_el prem_ani 80.0 --jobtype local --ntheta 4
./submit.py test_prem_ani_el prem_ani 80.0 --job_type local --ntheta 4

cp $TEST_DIR/inparam_basic_el .
./submit.py test_iasp91 iasp91 80.0 --jobtype local --ntheta 4
./submit.py test_iasp91 iasp91 80.0 --job_type local --ntheta 4

cp $TEST_DIR/inparam_basic_anel .
./submit.py test_ak135f_anel ak135f 80.0 --jobtype local --ntheta 4
./submit.py test_ak135f_anel ak135f 80.0 --job_type local --ntheta 4

cp $TEST_DIR/inparam_basic_el .
./submit.py test_ak135f_el ak135f 80.0 --jobtype local --ntheta 4
./submit.py test_ak135f_el ak135f 80.0 --job_type local --ntheta 4


24 changes: 24 additions & 0 deletions TESTING/test_mesher.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/usr/bin/env python
# coding: utf-8
"""
Test all internal meshes of AxiSEM
Author: Simon Stähler, ETH Zürich
"""


from submit import int_models, run_axisem

def test_mesher(modelname):
job_name = 'testmesher' + modelname

run_axisem(job_name=job_name,
mesh_file=modelname,
mesh_period=20.,
mesher_only=True,
ntheta=16)



if __name__=='__main__':
for model in int_models:
test_mesher(model)
Loading

0 comments on commit 616925a

Please sign in to comment.