使用的版本为7.1.4;需注意的一点是:PGI的版本号与license的版本号应该一致;
A:将WRFV3.1目录中的PGI7.1.4文件夹直接复制到/home/zzzfff1100;
B:进入到PGI7.1.4目录,解压PGI7.1.4(tar -zxvf pgi*****);
C:#./install
按回车到100%,选accept;ACML选项选no;1;路径/home/zzzfff1100/pgi,填写一些基本信息;read-only选n。
D:把pgilinux-714.tar.gz-license.dat复制到/home/zzzfff1100/pgi下,并重命名为license.dat;
E:设置环境变量,在/home/zzzfff1100/.bashrc(隐藏文件,用vi命令编辑)设置环境变量如下:
# set for PGI
export PGI=/home/zzzfff1100/pgi
export MPI=/home/zzzfff1100/pgi/linux86-/7.1/mpi/mpich
export PATH=$PGI/linux86-/7.1/binMPI/binPATH
export MANPATH=$PGI/linux86-/7.1/man
export LM_LICENSE_FILE=$PGI/license.dat
#source .bashrc;
F:#which pgf90,可显示PGI安装路径;
#pgf90,显示warnning –No files to process,则大概表示已安装成功;
另外为确保无误,可编个小程序试着运行下,如下:
#cd /home/zzzfff1100
#vi a.f90
Write(*,*)’This is the test program’
End
#pgf90 a.f90
可生成a.out可执行文件
#./a.out
看结果可知道PGI是否完全安装成功;
2.netCDF4.0安装
A:解压并进入到安装目录;
B:#./configure --prefix=/home/zzzfff1100/netcdf FC=pgf90
#make check
#make install
C:.bashrc文件中环境变量的设置如下:
# set for netcdf
export NETCDF=/home/zzzfff1100/netcdf
export PATH=$NETCDF/binPATH
export LIBPATH=$NETCDF/libPATH
export INCPATH=$NETCDF/includePATH
export FC=$PGI/linux86-/7.1/bin/pgf90
export WRFIO_NCD_LARGE_FILE_SUPPORT=1
D:source .bashrc
3.Install the WRF3.1
A: 解压并进入到安装目录
#./configure
Choose the option of 1 (PGI compiler with gcc, serial, depending on your linux system)
B: choose 1 (basic) for the nesting option
C: #./compile
D:#./compile em_real
After the compliation, it will has real.exe and wrf.exe in the -/run folder or -/test/em_real
4.the installation of WPS3.1
A: 解压并进入到安装目录
B: #./comfigure
Choose the option of 5 ( pc linux x86_ PGI 5.2 or higher, serial)
Show the message of “configure success”
C ./compile
If it has the follow three files of “geogrid.exe, metgrid.exe, ungrid.exe”, then the WPS was successfully installed;
5. installation of ARWpost
#./configure
Choose the option of 1(PGI without vis5d option)
#./compile
If it has ARWpost.exe in the folder, then it’s successes.
6. installation of grads_linux
Untar the file and copy it to the folder =/home/zzzfff1100/grads
Set the environment variability in the .bashrc file, as follow:
export GADDIR=/home/zzzfff1100/grads/data
export GASCRP=/home/zzzfff1100/grads/lib
export PATH=.ROOT/binPGI/linux86-/7.1/binNETCDF/binPATH=/home/zzzfff1100/grads/bin
#gradsc
Choose the option of no to see whether the grads for linux was successfully installed.下载本文