run_toy_example.sh 1.04 KB
Newer Older
Tilman Steinweg's avatar
Tilman Steinweg 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
Tilman Steinweg's avatar
Tilman Steinweg committed
8
make clean
Florian Wittkamp's avatar
Florian Wittkamp committed
9
make IFOS2D MODEL=../genmod/toy_example_true.c
Tilman Steinweg's avatar
Tilman Steinweg committed
10

Florian Wittkamp's avatar
Florian Wittkamp committed
11
# starting IFOS for forward modeling
Tilman Steinweg's avatar
Tilman Steinweg committed
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 nice -19 ../bin/IFOS2D in_and_out/toy_example/toy_example_FW.json | tee in_and_out/toy_example/toy_example_FW.out
Tilman Steinweg's avatar
Tilman Steinweg committed
16 17 18 19 20

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

Florian Wittkamp's avatar
Florian Wittkamp committed
21
# compiling IFOS
Tilman Steinweg's avatar
Tilman Steinweg committed
22
make clean
Florian Wittkamp's avatar
Florian Wittkamp committed
23
make IFOS2D MODEL=../genmod/toy_example_start.c
Tilman Steinweg's avatar
Tilman Steinweg committed
24

Florian Wittkamp's avatar
Florian Wittkamp committed
25
# starting IFOS
Tilman Steinweg's avatar
Tilman Steinweg committed
26
#lamboot
Florian Wittkamp's avatar
Florian Wittkamp committed
27
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