Skip to content

Commit 9eed386

Browse files
committed
updates EXAMPLES/ folder (uses more categorization, similar to 3D_Cartesian version)
1 parent 05abdea commit 9eed386

678 files changed

Lines changed: 1847 additions & 674 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,6 @@ jobs:
216216
BUILD: true
217217
- template: .azure-pipelines/test-template.yml
218218
parameters:
219-
workingDirectory: EXAMPLES/simple_topography_and_also_a_simple_fluid_layer/
219+
workingDirectory: EXAMPLES/applications/simple_topography_and_also_a_simple_fluid_layer/
220220

221221

.github/scripts/run_tests.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ cd $dir
4040
#sed -i "s:^NTSTEP_BETWEEN_OUTPUT_INFO .*:NTSTEP_BETWEEN_OUTPUT_INFO = 50:" DATA/Par_file
4141

4242
# specific example setups
43-
if [ "${TESTDIR}" == "EXAMPLES/moving_sources_acoustic" ]; then
43+
if [ "${TESTDIR}" == "EXAMPLES/applications/moving_sources_acoustic" ]; then
4444
sed -i "s:^NSTEP .*:NSTEP = 3000:" DATA/Par_file
4545
fi
46-
if [ "${TESTDIR}" == "EXAMPLES/Industrial_Format_SEP" ]; then
46+
if [ "${TESTDIR}" == "EXAMPLES/real_world/Industrial_Format_SEP" ]; then
4747
sed -i "s:^NPROC .*:NPROC = 2:" DATA/Par_file
4848
fi
49-
if [ "${TESTDIR}" == "EXAMPLES/axisymmetric_case_AXISYM_option" ]; then
49+
if [ "${TESTDIR}" == "EXAMPLES/applications/axisymmetric_examples/axisymmetric_case_AXISYM_option" ]; then
5050
sed -i "s:^NPROC .*:NPROC = 2:" DATA/Par_file
5151
sed -i "s:^NSTEP .*:NSTEP = 1400:" DATA/Par_file
5252
fi

.github/workflows/CI.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ jobs:
562562

563563
- name: Run test
564564
env:
565-
TESTDIR: EXAMPLES/moving_sources_acoustic
565+
TESTDIR: EXAMPLES/applications/moving_sources_acoustic
566566
run: ./.github/scripts/run_tests.sh
567567
shell: bash
568568

@@ -586,7 +586,7 @@ jobs:
586586

587587
- name: Run test
588588
env:
589-
TESTDIR: EXAMPLES/anisotropic_isotropic_model
589+
TESTDIR: EXAMPLES/applications/anisotropy/anisotropic_isotropic_model
590590
run: ./.github/scripts/run_tests.sh
591591
shell: bash
592592

@@ -611,7 +611,7 @@ jobs:
611611

612612
- name: Run test
613613
env:
614-
TESTDIR: EXAMPLES/Industrial_Format_SEP
614+
TESTDIR: EXAMPLES/real_world/Industrial_Format_SEP
615615
run: ./.github/scripts/run_tests.sh
616616
shell: bash
617617

@@ -635,7 +635,7 @@ jobs:
635635

636636
- name: Run test
637637
env:
638-
TESTDIR: EXAMPLES/axisymmetric_case_AXISYM_option
638+
TESTDIR: EXAMPLES/applications/axisymmetric_examples/axisymmetric_case_AXISYM_option
639639
run: ./.github/scripts/run_tests.sh
640640
shell: bash
641641

@@ -659,7 +659,7 @@ jobs:
659659

660660
- name: Run test
661661
env:
662-
TESTDIR: EXAMPLES/simple_topography_and_also_a_simple_fluid_layer
662+
TESTDIR: EXAMPLES/applications/simple_topography_and_also_a_simple_fluid_layer
663663
run: ./.github/scripts/run_tests.sh
664664
shell: bash
665665

@@ -683,7 +683,7 @@ jobs:
683683

684684
- name: Run test
685685
env:
686-
TESTDIR: EXAMPLES/simple_topography_and_also_a_simple_fluid_layer
686+
TESTDIR: EXAMPLES/applications/simple_topography_and_also_a_simple_fluid_layer
687687
run: ./.github/scripts/run_tests.sh
688688
shell: bash
689689

@@ -708,7 +708,7 @@ jobs:
708708

709709
- name: Run test
710710
env:
711-
TESTDIR: EXAMPLES/tomographic_ocean_model
711+
TESTDIR: EXAMPLES/applications/ocean_acoustics/tomographic_ocean_model
712712
run: ./.github/scripts/run_tests.sh
713713
shell: bash
714714

@@ -732,7 +732,7 @@ jobs:
732732

733733
- name: Run test
734734
env:
735-
TESTDIR: EXAMPLES/Marmousi2
735+
TESTDIR: EXAMPLES/real_world/Marmousi2
736736
run: ./.github/scripts/run_tests.sh
737737
shell: bash
738738

@@ -756,7 +756,7 @@ jobs:
756756

757757
- name: Run test
758758
env:
759-
TESTDIR: EXAMPLES/Gmsh_example_Stacey_MPI
759+
TESTDIR: EXAMPLES/applications/meshing/Gmsh_example_Stacey_MPI
760760
run: ./.github/scripts/run_tests.sh
761761
shell: bash
762762

.travis/run_tests.sh

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -19,29 +19,29 @@ echo
1919
# chooses example directory
2020
case "$TESTDIR" in
2121
0) dir=./ ;;
22-
1) dir=EXAMPLES/simple_topography_and_also_a_simple_fluid_layer/ ;;
23-
2) dir=EXAMPLES/semi_infinite_homogeneous/ ;;
24-
3) dir=EXAMPLES/Gmsh_example_Stacey_MPI/ ;;
22+
1) dir=EXAMPLES/applications/simple_topography_and_also_a_simple_fluid_layer/ ;;
23+
2) dir=EXAMPLES/benchmarks/semi_infinite_homogeneous/ ;;
24+
3) dir=EXAMPLES/applications/meshing/Gmsh_example_Stacey_MPI/ ;;
2525
4) dir=EXAMPLES/reproducible_study/Tromp2005_kernel/ ;;
2626
5) dir=EXAMPLES/reproducible_study/Morency2008_poroelastic_acoustic/ ;;
2727
6) dir=EXAMPLES/reproducible_study/Tromp2010_noise_uniform/ ;;
28-
7) dir=EXAMPLES/axisymmetric_case_AXISYM_option/ ;;
29-
8) dir=EXAMPLES/simple_topography_and_also_a_simple_fluid_layer/ ;;
30-
9) dir=EXAMPLES/Industrial_Format_SEP/ ;;
31-
10) dir=EXAMPLES/Rayleigh_wave_no_crack/ ;;
32-
11) dir=EXAMPLES/Rayleigh_wave_with_crack/ ;;
28+
7) dir=EXAMPLES/applications/axisymmetric_examples/axisymmetric_case_AXISYM_option/ ;;
29+
8) dir=EXAMPLES/applications/simple_topography_and_also_a_simple_fluid_layer/ ;;
30+
9) dir=EXAMPLES/real_world/Industrial_Format_SEP/ ;;
31+
10) dir=EXAMPLES/applications/Rayleigh_wave_no_crack/ ;;
32+
11) dir=EXAMPLES/applications/Rayleigh_wave_with_crack/ ;;
3333
12) dir=EXAMPLES/reproducible_study/Tape2007/ ;;
3434
13) dir=EXAMPLES/check_absolute_amplitude_of_pressure_source_seismograms_acoustic/ ;;
3535
14) dir=EXAMPLES/check_absolute_amplitude_of_force_source_seismograms_elastic/ ;;
3636
15) dir=EXAMPLES/check_absolute_amplitude_of_force_source_seismograms_viscoelastic/ ;;
3737
16) dir=EXAMPLES/reproducible_study/Komatitsch2000_fluid_solid/fluid_solid_external_mesh/ ;;
3838
17) dir=EXAMPLES/reproducible_study/Morency2008_poroelastic_semi_infinite_homogeneous/ ;;
39-
18) dir=EXAMPLES/initial_mode_LDDRK/ ;;
40-
19) dir=EXAMPLES/moving_sources_acoustic/ ;;
41-
20) dir=EXAMPLES/anisotropic_isotropic_model/ ;;
42-
21) dir=EXAMPLES/infinite_homogeneous_moment_tensor_vertical_dip_slip/ ;;
43-
22) dir=EXAMPLES/Marmousi2/ ;;
44-
*) dir=EXAMPLES/simple_topography_and_also_a_simple_fluid_layer/ ;;
39+
18) dir=EXAMPLES/applications/initial_mode_LDDRK/ ;;
40+
19) dir=EXAMPLES/applications/moving_sources_acoustic/ ;;
41+
20) dir=EXAMPLES/applications/anisotropy/anisotropic_isotropic_model/ ;;
42+
21) dir=EXAMPLES/benchmarks/infinite_homogeneous_moment_tensor_vertical_dip_slip/ ;;
43+
22) dir=EXAMPLES/real_world/Marmousi2/ ;;
44+
*) dir=EXAMPLES/applications/simple_topography_and_also_a_simple_fluid_layer/ ;;
4545
esac
4646

4747
# info
@@ -241,9 +241,9 @@ if [ "$TESTCOV" == "1" ] && [ "$TESTID" == "0" ]; then
241241
## testing infinite_homogeneous_moment_tensor_vertical_dip_slip example
242242
##
243243
echo "##################################################################"
244-
echo "EXAMPLES/infinite_homogeneous_moment_tensor_vertical_dip_slip/"
244+
echo "EXAMPLES/benchmarks/infinite_homogeneous_moment_tensor_vertical_dip_slip/"
245245
echo
246-
cd EXAMPLES/infinite_homogeneous_moment_tensor_vertical_dip_slip/
246+
cd EXAMPLES/benchmarks/infinite_homogeneous_moment_tensor_vertical_dip_slip/
247247
sed -i "s:^NSTEP .*:NSTEP = 10:" DATA/Par_file
248248
./run_this_example.sh
249249
if [[ $? -ne 0 ]]; then exit 1; fi
@@ -259,9 +259,9 @@ if [ "$TESTCOV" == "1" ] && [ "$TESTID" == "1" ]; then
259259
## testing example with pml (longer testing only together with mpi and code coverage)
260260
##
261261
echo "##################################################################"
262-
echo "EXAMPLES/semi_infinite_homogeneous/"
262+
echo "EXAMPLES/benchmarks/semi_infinite_homogeneous/"
263263
echo
264-
cd EXAMPLES/semi_infinite_homogeneous/
264+
cd EXAMPLES/benchmarks/semi_infinite_homogeneous/
265265
sed -i "s:^NPROC .*:NPROC = 2:" DATA/Par_file
266266
sed -i "s:^NSTEP .*:NSTEP = 500:" DATA/Par_file
267267
./run_this_example.sh
@@ -277,9 +277,9 @@ if [ "$TESTCOV" == "1" ] && [ "$TESTID" == "1" ]; then
277277
## testing external mesher example with mpi and stacey
278278
##
279279
echo "##################################################################"
280-
echo "EXAMPLES/Gmsh_example_Stacey_MPI/"
280+
echo "EXAMPLES/applications/meshing/Gmsh_example_Stacey_MPI/"
281281
echo
282-
cd EXAMPLES/Gmsh_example_Stacey_MPI/
282+
cd EXAMPLES/applications/meshing/Gmsh_example_Stacey_MPI/
283283
sed -i "s:^NSTEP .*:NSTEP = 500:" DATA/Par_file
284284
./run_this_example.sh
285285
if [[ $? -ne 0 ]]; then exit 1; fi
@@ -333,9 +333,9 @@ if [ "$TESTCOV" == "1" ] && [ "$TESTID" == "1" ]; then
333333
## testing plane wave example
334334
##
335335
echo "##################################################################"
336-
echo "EXAMPLES/Rayleigh_wave_no_crack/"
336+
echo "EXAMPLES/applications/Rayleigh_wave_no_crack/"
337337
echo
338-
cd EXAMPLES/Rayleigh_wave_no_crack/
338+
cd EXAMPLES/applications/Rayleigh_wave_no_crack/
339339
sed -i "s:^NSTEP .*:NSTEP = 10:" DATA/Par_file
340340
# coarser resolution
341341
sed -i "s:60:15:g" DATA/Par_file
@@ -372,9 +372,9 @@ if [ "$TESTCOV" == "1" ] && [ "$TESTID" == "1" ]; then
372372
## testing fluid solid w/ external mesh
373373
##
374374
echo "##################################################################"
375-
echo "EXAMPLES/initial_mode_LDDRK"
375+
echo "EXAMPLES/applications/initial_mode_LDDRK"
376376
echo
377-
cd EXAMPLES/initial_mode_LDDRK
377+
cd EXAMPLES/applications/initial_mode_LDDRK
378378
sed -i "s:^NSTEP .*:NSTEP = 10:" DATA/Par_file
379379
./run_this_example.sh
380380
if [[ $? -ne 0 ]]; then exit 1; fi
@@ -409,9 +409,9 @@ if [ "$TESTCOV" == "1" ] && [ "$TESTID" == "1" ]; then
409409
## Marmousi2
410410
##
411411
echo "##################################################################"
412-
echo "EXAMPLES/Marmousi2"
412+
echo "EXAMPLES/real_world/Marmousi2"
413413
echo
414-
cd EXAMPLES/Marmousi2
414+
cd EXAMPLES/real_world/Marmousi2
415415
sed -i "s:^NSTEP .*:NSTEP = 10:" DATA/Par_file
416416
./run_this_example.sh
417417
if [[ $? -ne 0 ]]; then exit 1; fi
@@ -433,9 +433,9 @@ if [ "$TESTCOV" == "1" ] && [ "$TESTID" == "1" ]; then
433433
## moving sources
434434
##
435435
echo "##################################################################"
436-
echo "EXAMPLES/moving_sources_acoustic/"
436+
echo "EXAMPLES/applications/moving_sources_acoustic/"
437437
echo
438-
cd EXAMPLES/moving_sources_acoustic/
438+
cd EXAMPLES/applications/moving_sources_acoustic/
439439
sed -i "s:^NSTEP .*:NSTEP = 10:" DATA/Par_file
440440
./run_this_example.sh
441441
if [[ $? -ne 0 ]]; then exit 1; fi
@@ -450,9 +450,9 @@ if [ "$TESTCOV" == "1" ] && [ "$TESTID" == "1" ]; then
450450
## anisotropy
451451
##
452452
echo "##################################################################"
453-
echo "EXAMPLES/anisotropic_isotropic_model/"
453+
echo "EXAMPLES/applications/anisotropy/anisotropic_isotropic_model/"
454454
echo
455-
cd EXAMPLES/anisotropic_isotropic_model/
455+
cd EXAMPLES/applications/anisotropy/anisotropic_isotropic_model/
456456
sed -i "s:^NSTEP .*:NSTEP = 10:" DATA/Par_file
457457
./run_this_example.sh
458458
if [[ $? -ne 0 ]]; then exit 1; fi
@@ -467,9 +467,9 @@ if [ "$TESTCOV" == "1" ] && [ "$TESTID" == "1" ]; then
467467
## testing MPI, SEP example
468468
##
469469
echo "##################################################################"
470-
echo "EXAMPLES/Industrial_Format_SEP/"
470+
echo "EXAMPLES/real_world/Industrial_Format_SEP/"
471471
echo
472-
cd EXAMPLES/Industrial_Format_SEP/
472+
cd EXAMPLES/real_world/Industrial_Format_SEP/
473473
sed -i "s:^NSTEP .*:NSTEP = 10:" DATA/Par_file
474474
./run_this_example.sh
475475
if [[ $? -ne 0 ]]; then exit 1; fi
@@ -484,9 +484,9 @@ if [ "$TESTCOV" == "1" ] && [ "$TESTID" == "1" ]; then
484484
## testing axisymmetric example
485485
##
486486
echo "##################################################################"
487-
echo "EXAMPLES/axisymmetric_case_AXISYM_option/"
487+
echo "EXAMPLES/applications/axisymmetric_examples/axisymmetric_case_AXISYM_option/"
488488
echo
489-
cd EXAMPLES/axisymmetric_case_AXISYM_option/
489+
cd EXAMPLES/applications/axisymmetric_examples/axisymmetric_case_AXISYM_option/
490490
sed -i "s:^NPROC .*:NPROC = 2:" DATA/Par_file
491491
sed -i "s:^NSTEP .*:NSTEP = 10:" DATA/Par_file
492492
./run_this_example.sh
@@ -504,9 +504,9 @@ if [ "$TESTCOV" == "1" ] && [ "$TESTID" == "0" ]; then
504504
## testing PML & MPI example
505505
##
506506
echo "##################################################################"
507-
echo "EXAMPLES/simple_topography_and_also_a_simple_fluid_layer/"
507+
echo "EXAMPLES/applications/simple_topography_and_also_a_simple_fluid_layer/"
508508
echo
509-
cd EXAMPLES/simple_topography_and_also_a_simple_fluid_layer/
509+
cd EXAMPLES/applications/simple_topography_and_also_a_simple_fluid_layer/
510510
sed -i "s:^NSTEP .*:NSTEP = 10:" DATA/Par_file
511511
./run_this_example.sh
512512
if [[ $? -ne 0 ]]; then exit 1; fi
@@ -521,9 +521,9 @@ if [ "$TESTCOV" == "1" ] && [ "$TESTID" == "0" ]; then
521521
## testing tomographic_ocean_model example
522522
##
523523
echo "##################################################################"
524-
echo "EXAMPLES/tomographic_ocean_model/"
524+
echo "EXAMPLES/applications/ocean_acoustics/tomographic_ocean_model/"
525525
echo
526-
cd EXAMPLES/tomographic_ocean_model/
526+
cd EXAMPLES/applications/ocean_acoustics/tomographic_ocean_model/
527527
sed -i "s:^NSTEP .*:NSTEP = 10:" DATA/Par_file
528528
./run_this_example.sh
529529
if [[ $? -ne 0 ]]; then exit 1; fi

DATA/Par_file

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ nbmodels = 4
304304
4 1 2200.d0 2200.d0 1343.375d0 0 0 9999 9999 0 0 0 0 0 0
305305

306306
# file containing interfaces for internal mesh
307-
interfacesfile = ../EXAMPLES/simple_topography_and_also_a_simple_fluid_layer/DATA/interfaces_simple_topo_curved.dat
307+
interfacesfile = ../EXAMPLES/applications/simple_topography_and_also_a_simple_fluid_layer/DATA/interfaces_simple_topo_curved.dat
308308

309309
# geometry of the model (origin lower-left corner = 0,0) and mesh description
310310
xmin = 0.d0 # abscissa of left side of the model

EXAMPLES/README.md

Lines changed: 11 additions & 2 deletions

EXAMPLES/Rayleigh_wave_no_crack_simpler_way_to_generate_the_wave/README

Lines changed: 0 additions & 3 deletions
This file was deleted.
File renamed without changes.
File renamed without changes.

EXAMPLES/Rayleigh_wave_no_crack/DATA/interfaces_Rayleigh_flat.dat renamed to EXAMPLES/applications/Rayleigh_wave_no_crack/DATA/interfaces_Rayleigh_flat.dat

File renamed without changes.

0 commit comments

Comments
 (0)