Inversion test
This is an example for inversion calculation with small grid.
-
Run all cells of
make_test_model.ipynbor python scriptmake_test_mode.pyfor creating necessary input files:- source, receiver file (src_rec_test.dat)
- true model (test_model_true.h5)
- initial model (test_model_init.h5)
-
then run TOMOATT forward with
input_params_pre.ymlfor calculating the true arrival times at the stations. The calculated travel time at the stations is saved in the filesrc_rec_test_out.dat
Following command will run the forward simulation with the true model
mpirun --oversubscribe -n 8 ../../build/bin/TOMOATT -i input_params_pre.yml
Volumetric output data is saved in the file OUTPUT_FILES/out_data_sim_0.h5.
This file may be visualized by paraview with opening the index file OUTPUT_FILES/out_data_sim_0.xmf.
- run TOMOATT in inversion mode with
input_params.yml, by the command
mpirun --oversubscribe -n 8 ../../build/bin/TOMOATT -i input_params.yml
The volumetric output data is again saved in the file OUTPUT_FILES/out_data_sim_0.h5.
- The final output data is stored in OUTPUT_FILES/final_model.h5. This file may be visualized by e.g. check_3d_out.ipynb
