run_toy_example.sh 1.46 KB
Newer Older
tilman.metz's avatar
tilman.metz committed
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
tilman.metz's avatar
tilman.metz committed
9

10 11 12 13 14 15 16 17
#-------------------------------------------------------------------------------------
# Insert the trench "Ettlinger Linie" into the toy_example model 
# in the file ../genmod/toy_example_true_trench.c the size and position can be adjusted
# Either an elliptic trench or a v-shaped trench can be choosen

#make install MODEL=../genmod/toy_example_true_trench.c
#---------------------------------------------------------------------------------------

Florian Wittkamp's avatar
Florian Wittkamp committed
18
# starting IFOS for forward modeling
tilman.metz's avatar
tilman.metz committed
19 20 21
# (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
22
mpirun -np 4 nice -19 ../bin/IFOS2D in_and_out/toy_example/toy_example_FW.json | tee in_and_out/toy_example/toy_example_FW.out
tilman.metz's avatar
tilman.metz committed
23 24 25 26 27

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

Florian Wittkamp's avatar
Florian Wittkamp committed
28
# compiling IFOS
29
make install MODEL=../genmod/toy_example_start.c
tilman.metz's avatar
tilman.metz committed
30

Florian Wittkamp's avatar
Florian Wittkamp committed
31
# starting IFOS
tilman.metz's avatar
tilman.metz committed
32
#lamboot
Florian Wittkamp's avatar
Florian Wittkamp committed
33
mpirun -np 4 nice -19 ../bin/IFOS2D in_and_out/toy_example/toy_example_INV.json | tee in_and_out/toy_example/toy_example_INV.out