initial upload
This commit is contained in:
29
examples/eg1_seismic_tomography/run_this_example.sh
Normal file
29
examples/eg1_seismic_tomography/run_this_example.sh
Normal file
@@ -0,0 +1,29 @@
|
||||
#!/bin/bash
|
||||
|
||||
|
||||
# Step 1: Generate necessary input files
|
||||
python prepare_input_files.py
|
||||
|
||||
# Step 2: Run forward modeling
|
||||
# for WSL
|
||||
# mpirun -n 8 --allow-run-as-root --oversubscribe ../../build/bin/TOMOATT -i 3_input_params/input_params_signal.yaml
|
||||
# # for Linux
|
||||
# mpirun -n 8 ../../build/bin/TOMOATT -i 3_input_params/input_params_signal.yaml
|
||||
# for conda install
|
||||
mpirun -n 8 TOMOATT -i 3_input_params/input_params_signal.yaml
|
||||
|
||||
|
||||
# Step 3: Assign data noise to the observational data
|
||||
python assign_gaussian_noise.py
|
||||
|
||||
# Step 4: Do inversion
|
||||
# for WSL
|
||||
# mpirun -n 8 --allow-run-as-root --oversubscribe ../../build/bin/TOMOATT -i 3_input_params/input_params_inv.yaml
|
||||
# # for Linux
|
||||
# mpirun -n 8 ../../build/bin/TOMOATT -i 3_input_params/input_params_inv.yaml
|
||||
# for conda install
|
||||
mpirun -n 8 TOMOATT -i 3_input_params/input_params_inv.yaml
|
||||
|
||||
|
||||
# Step 5 (Optional): Plot the results
|
||||
python plot_output.py
|
||||
Reference in New Issue
Block a user