run_toy_example.sh 1.02 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
8
make install MODEL=../genmod/toy_example_true.c
Tilman Steinweg's avatar
Tilman Steinweg committed
9

Florian Wittkamp's avatar
Florian Wittkamp committed
10
# starting IFOS for forward modeling
Tilman Steinweg's avatar
Tilman Steinweg committed
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 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
15 16 17 18 19

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

Florian Wittkamp's avatar
Florian Wittkamp committed
20
# compiling IFOS
21
make install MODEL=../genmod/toy_example_start.c
Tilman Steinweg's avatar
Tilman Steinweg committed
22

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