run_toy_example_SH.sh 1.13 KB
Newer Older
1 2 3 4 5 6 7
#!/bin/bash

###############################################################
#  running forward modeling for calculation of observed data  #
###############################################################

# compiling all libraries and  DENISE
8
make clean
Florian Wittkamp's avatar
Florian Wittkamp committed
9
make denise MODEL=../genmod/toy_example_true.c MODEL_EL=../genmod/toy_example_elastic_true.c
10

11 12 13 14
# starting DENISE for forward modeling
# (depending on the MPI package you maybe have to adjust the following programme call, 
#  e.g. when using openMPI you do not have to use the 'lamboot' command)
#lamboot
15
mpirun -np 4 ../bin/denise in_and_out/toy_example/toy_example_FW_SH.json | tee in_and_out/toy_example/toy_example_FW_SH.out
16 17 18 19 20 21 22 23


###############################################################
#                    running the inversion                    #
###############################################################

# compiling DENISE
make clean
Florian Wittkamp's avatar
Florian Wittkamp committed
24
make denise MODEL=../genmod/toy_example_start.c MODEL_EL=../genmod/toy_example_elastic_start.c
25 26 27

# starting DENISE
#lamboot
28
mpirun -np 4 ../bin/denise in_and_out/toy_example/toy_example_INV_SH.json | tee in_and_out/toy_example/toy_example_INV_SH.out