Compiling and Installing SPECFEM3D GLOBE
Procedure
- Use PuTTY to log in to the server as the root user.
- Run the following command to create a main program installation directory:
mkdir -p /path/to/SPECFEM3D_GLOBE
- Run the following commands to decompress the source code package and go to the source code directory:
cd /path/to/SPECFEM3D_GLOBE tar -xvf v7.0.0.tar.gz cd specfem3d_globe-7.0.0
- Run the following commands to load environment variables:
export PATH=/path/to/GNU/bin:/path/to/OPENMPI/bin:$PATH export LD_LIBRARY_PATH=/path/to/GNU/lib64:/path/to/OPENMPI/lib: $LD_LIBRARY_PATH
- Run the following command to generate a configuration file:
./configure --enable-openmp FC=mpif90 MPIFC=mpif90 CC=mpicc MPICC=mpicc
- Run the following command to modify the Par_file file:
- Open Par_file.
vi DATA/Par_file
- Press i to enter the insert mode and modify lines 23 and 24 of the file.Before the modification:
NPROC_XI = 2 NPROC_ETA = 2
After the modification:NPROC_XI = 8 NPROC_ETA = 8
- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open Par_file.
- Run the following command to perform compilation.
make -j
Parent topic: SPECFEM3D GLOBE 7.0.0 Porting Guide (CentOS 7.6)