Compilation and Installation
Procedure
- Use PuTTY to log in to the server as the root user.
- Decompress the ARPS installation package.
cd /path/to/ARPS tar -xvf arps5.3.4.tar.gz
- Go to the directory generated after the decompression.
cd arps5.3.4
- Edit the makearps file.
sed -i '259s/ifort/gfortran/g' makearps sed -i '3254s/-ffree-form/-ffree-form -Wno-argument-mismatch/g' makearps
- Perform the first compilation.
./makearps -io hdf arps
- After an error is reported, edit the module_precision.f90 file.
- Open the module_precision.f90 file.
vi src/arps/module_precision.f90
- type 34dd to delete the comments of the first 34 lines.
- Press Esc, type :wq!, and press Enter to save the settings and exit.
- Open the module_precision.f90 file.
- Edit the Makefile file.
sed -i '501s/-$(RM)/\#-$(RM)/g' src/arps/Makefile sed -i '502s/$(CPP)/\#$(CPP)/g' src/arps/Makefile
- Perform the second compilation.
./makearps -io hdf arps
- After an error is reported, edit the module_mp_wsm6.f90 file.
- Open the module_mp_wsm6.f90 file.
vi src/arps/module_mp_wsm6.f90
- type 35dd to delete the comments of the first 35 lines.
- Press Esc, type :wq!, and press Enter to save the settings and exit.
- Open the module_mp_wsm6.f90 file.
- Edit the Makefile file.
sed -i '599s/-$(RM)/\#-$(RM)/g' src/arps/Makefile sed -i '600s/$(CPP)/\#$(CPP)/g' src/arps/Makefile
- Perform the third compilation.
./makearps -io hdf arps
- After an error is reported, edit the lnxlib3d.f90 file.
- Open the lnxlib3d.f90 file.
vi src/arps/lnxlib3d.f90
- type 50dd to delete the comments of the first 50 lines.
- Press Esc, type :wq!, and press Enter to save the settings and exit.
- Open the lnxlib3d.f90 file.
- Edit the Makefile file.
sed -i '464s/$(CPP)/\#$(CPP)/g' src/arps/Makefile
- Compile the ARPS serial main program.
./makearps -io hdf arps
- Compile the ARPS parallel main program.
./makearps -io hdf arps_mpi
- 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
Parent topic: ARPS 5.3.4 Porting Guide (CentOS 7.6)