Table of Contents
- Overview
- Introduction
- Part I: Setting up SPECFEM3D_GLOBE
- Part II: Continental-scale Simulations
- Part III: Visualization
- Part IV: Adjoint Simulations (Bonus)
- Further Work
- Resources
Part II: Continental-scale Simulations
This second part of the tutorial will take you through the steps that are needed to run a continental-scale simulation with SPECFEM3D_GLOBE. The steps we need to take are the following:
- Prepare the Data and Parameters
- Generate a Mesh for the Continental Model
- Run the Solver
Run the Solver
After editing the parameter files and generating the mesh, we are ready to run the solver itself. Before we do this, we will go through the following checklist to make sure that we have gone through all the preceeding steps correctly:
- Edited the parameter files.
- Recompiled the source code if any parameter in the
Par_file
was changed. - Generated the model mesh and checked the output for success.
If all of these steps have been covered, we can go on to run the solver.
The solver is run with the executable xspecfem3D
on the cluster. Similar to the
meshing routine, we need to send our job to the cluster’s job scheduler. The
script we use for this task is the submit_solver
script:
#!/bin/bash
#SBATCH -N 4
#SBATCH --ntasks-per-node=36
#SBATCH -t 00:30:00
#SBATCH -p pReserved
# load appropriate compilers/libraries
module load intel/16.0.4
# change directory to build (e.g. /p/lscratchh/vaaland1/specfem3d_globe/)
cd path/to/specfem3d_globe
srun -n 144 ./bin/xspecfem3D
NOTE: As in the previous section, we need to modify this file such that path/to/specfem3d_globe
is the path to the current working directory (e.g. /p/lscratchh/vaaland1/specfem3d_globe/
).
We submit the job by typing in the command line
sbatch submit_solver
and monitor the job by typing squeue
.
The solver should take ~8 minutes to finish. Once the job is done, the
results can be found in the OUTPUT_FILES/
folder. Check the
OUTPUT_FILES/output_solver.txt
file to make sure that the solver ran
successfully.
In this section, we have looked at how to run the solver for our continental-scale simulation.
In the next section we move on to Part III of the tutorial, and look at how to visualize the simulation output.