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

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

Florian Wittkamp's avatar
Florian Wittkamp committed
7
# compiling all libraries and  IFOS
8
make install MODEL=../genmod/toy_example_true.c MODEL_EL=../genmod/toy_example_elastic_true.c
9

Florian Wittkamp's avatar
Florian Wittkamp committed
10
# starting IFOS for forward modeling
11 12 13
# (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
Florian Wittkamp's avatar
Florian Wittkamp committed
14
mpirun -np 4 ../bin/IFOS2D in_and_out/toy_example/toy_example_FW_SH.json | tee in_and_out/toy_example/toy_example_FW_SH.out
15 16 17 18 19 20


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

Florian Wittkamp's avatar
Florian Wittkamp committed
21
# compiling IFOS
22
make install MODEL=../genmod/toy_example_start.c MODEL_EL=../genmod/toy_example_elastic_start.c
23

Florian Wittkamp's avatar
Florian Wittkamp committed
24
# starting IFOS
25
#lamboot
Florian Wittkamp's avatar
Florian Wittkamp committed
26
mpirun -np 4 ../bin/IFOS2D in_and_out/toy_example/toy_example_INV_SH.json | tee in_and_out/toy_example/toy_example_INV_SH.out