run_toy_example_SH.sh 1.11 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 clean
Florian Wittkamp's avatar
Florian Wittkamp committed
9
make IFOS MODEL=../genmod/toy_example_true.c MODEL_EL=../genmod/toy_example_elastic_true.c
10

Florian Wittkamp's avatar
Florian Wittkamp committed
11
# starting IFOS for forward modeling
12 13 14
# (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
15
mpirun -np 4 ../bin/IFOS 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


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

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

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