Rate This Document
Findability
Accuracy
Completeness
Readability

Compilation and Installation

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Decompress the ARPS installation package.
    cd /path/to/ARPS
    tar -xvf arps5.3.4.tar.gz
  3. Go to the directory generated after the decompression.
    cd arps5.3.4
  4. Edit the makearps file.
    sed -i '259s/ifort/gfortran/g' makearps
    sed -i '3254s/-ffree-form/-ffree-form -Wno-argument-mismatch/g' makearps
  5. Perform the first compilation.
    ./makearps -io hdf  arps
  6. After an error is reported, edit the module_precision.f90 file.
    1. Open the module_precision.f90 file.
      vi src/arps/module_precision.f90
    2. type 34dd to delete the comments of the first 34 lines.
    3. Press Esc, type :wq!, and press Enter to save the settings and exit.
  7. Edit the Makefile file.
    sed -i '501s/-$(RM)/\#-$(RM)/g' src/arps/Makefile
    sed -i '502s/$(CPP)/\#$(CPP)/g' src/arps/Makefile
  8. Perform the second compilation.
    ./makearps -io hdf  arps
  9. After an error is reported, edit the module_mp_wsm6.f90 file.
    1. Open the module_mp_wsm6.f90 file.
      vi src/arps/module_mp_wsm6.f90
    2. type 35dd to delete the comments of the first 35 lines.
    3. Press Esc, type :wq!, and press Enter to save the settings and exit.
  10. Edit the Makefile file.
    sed -i '599s/-$(RM)/\#-$(RM)/g' src/arps/Makefile
    sed -i '600s/$(CPP)/\#$(CPP)/g' src/arps/Makefile
  11. Perform the third compilation.
    ./makearps -io hdf  arps
  12. After an error is reported, edit the lnxlib3d.f90 file.
    1. Open the lnxlib3d.f90 file.
      vi src/arps/lnxlib3d.f90
    2. type 50dd to delete the comments of the first 50 lines.
    3. Press Esc, type :wq!, and press Enter to save the settings and exit.
  13. Edit the Makefile file.
    sed -i '464s/$(CPP)/\#$(CPP)/g' src/arps/Makefile
  14. Compile the ARPS serial main program.
    ./makearps -io hdf  arps
  15. Compile the ARPS parallel main program.
    ./makearps -io hdf  arps_mpi
  16. Check whether an executable file is generated.
    ll /path/to/ARPS/arps5.3.4/bin

    If the following information is displayed, the executable file is generated:

    -rwxr-xr-x 1 root root 4609344 Jun 25 17:12 arps
    -rwxr-xr-x 1 root root 4659672 Jun 25 17:21 arps_mpi