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

Compiling and Installing MiniDFT

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Run the following commands to decompress the MiniDFT installation package:
    tar -xzvf MiniDFT-MiniDFT-1.1.1.tar.gz
  3. Run the following command to switch to the directory generated after the package is decompressed:
    cd MiniDFT-MiniDFT-1.1.1/src
  4. Run the following commands to modify the Makefile file:
    1. Open Makefile.
      vi Makefile
    2. Press i to enter the insert mode and modify the file as follows:
      FFTW_INCL = -I/path/to/FFTW/include
      FFTW_LIBS   = /path/to/SCALAPACK/libscalapack.a -Wl,--start-group /path/to/FFTW /lib/libfftw3.a /path/to/FFTW/lib/libfftw3_threads.a /path/to/OPENBLAS/lib/libopenblas.a -Wl,--end-group
      
      OPENBLAS_INC = -I/path/to/OPENBLAS/include
      OPENBLAS_LIB = /path/to/OPENBLAS/lib
      
      SCALAPACK_LIBS = /path/to/SCALAPACK/libscalapack.a
      
      CC = mpicc
      
      CFLAGS = -D__FFTW3 -D_para11e1 -D_SCALAPACK
      
      FC = mpifort
      FFLAGS = -cpp -no-pie
      
      LD = mpifort
      
      DFLAGS    += -D__OPENMP
      
      FFLAGS    += -fopenmp
      LDFLAGS   += -fopenmp
      
      include Makefile.base
    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  5. Run the following commands to perform compilation and installation:
    make