run_toy_example_ac.sh 1.2 KB
Newer Older
Tilman Steinweg's avatar
Tilman Steinweg committed
1 2 3 4 5 6 7 8 9 10 11 12 13
#!/bin/bash

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

rm model_true/mod_toy_example*
rm model/mod_toy_example*
rm model/toy_example/mod_toy_example*
rm jacobian/toy_example/jac_toy_example*
rm su/toy_example/toy_example*
rm su/measured_data/toy_example*

Florian Wittkamp's avatar
Florian Wittkamp committed
14
# compiling all libraries and  IFOS
Tilman Steinweg's avatar
Tilman Steinweg committed
15
make clean
Florian Wittkamp's avatar
Florian Wittkamp committed
16
make IFOS2D MODEL_AC=../genmod/toy_example_ac_true.c
Tilman Steinweg's avatar
Tilman Steinweg committed
17

Florian Wittkamp's avatar
Florian Wittkamp committed
18
# starting IFOS for forward modeling
Florian Wittkamp's avatar
Florian Wittkamp committed
19
mpirun -np 4 nice -19 ../bin/IFOS2D in_and_out/toy_example/toy_example_ac_FW.json | tee in_and_out/toy_example/toy_example_ac_FW.out
Tilman Steinweg's avatar
Tilman Steinweg committed
20 21 22 23 24

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

Florian Wittkamp's avatar
Florian Wittkamp committed
25
# compiling IFOS
Tilman Steinweg's avatar
Tilman Steinweg committed
26
make clean
Florian Wittkamp's avatar
Florian Wittkamp committed
27
make IFOS2D MODEL_AC=../genmod/toy_example_ac_start.c
Tilman Steinweg's avatar
Tilman Steinweg committed
28

Florian Wittkamp's avatar
Florian Wittkamp committed
29
# starting IFOS
Florian Wittkamp's avatar
Florian Wittkamp committed
30
mpirun -np 4 nice -19 ../bin/IFOS2D in_and_out/toy_example/toy_example_ac_INV.json | tee in_and_out/toy_example/toy_example_ac_INV.out
Tilman Steinweg's avatar
Tilman Steinweg committed
31 32 33

make clean

34 35 36
rm jacobian/toy_example/*toy_example*.*.*.*
rm model/*.bin.*.*
rm model/toy_example/*.bin.*.*
37
rm *.bin.*.*