我要评分
获取效率
正确性
完整性
易理解

Compiling and Installing SPECFEM3D GLOBE

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Run the following command to create a main program installation directory:
    mkdir -p /path/to/SPECFEM3D_GLOBE
  3. 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
  4. 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
  5. Run the following command to generate a configuration file:
    ./configure --enable-openmp FC=mpif90 MPIFC=mpif90 CC=mpicc MPICC=mpicc
  6. Run the following command to modify the Par_file file:
    1. Open Par_file.
      vi DATA/Par_file
    2. 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
    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  7. Run the following command to perform compilation.
    make -j