CMAQ编译和安装

准备工作

  • 预装基础环境,可配置YUM源(mirrors.tuna.tsinghua.edu.cn),简单省事。
$ yum install gcc.x86_64 -y
$ yum install gcc-gfortran.x86_64 –y
$ yum install gcc-c++.x86_64
$ yum install openmpi.x86_64 –y (本文使用mpich)
  • 下载各种所需安装包
# Download CMAQ source code and scripts
$ wget ftp://ftp.unc.edu/pub/cmas/SOFTWARE2/MODELS/CMAQ/5.0.1/CMAQv5.0.1.tar.gz

# Download CMAQ benchmark input data files
$ wget ftp://ftp.unc.edu/pub/cmas/SOFTWARE2/MODELS/CMAQ/5.0.1/DATA.CMAQv5.0.1.tar.gz
# CMAQ benchmark output data:
$ wget ftp://ftp.unc.edu/pub/cmas/SOFTWARE2/MODELS/CMAQ/5.0.1/DATA_REF.CMAQv5.0.1.tar.gz
# HDF5,can be ignore
$ wget ftp://ftp.hdfgroup.org/HDF5/current/src/hdf5-1.8.12.tar.gz
# zlib
$ wget http://zlib.net/zlib-1.2.8.tar.gz
# netcdf
$ wget ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-4.3.1.1.tar.gz
# netcdf-fortran
$ wget https://www.unidata.ucar.edu/downloads/netcdf/ftp/netcdf-fortran-4.2.tar.gz
# ioapi
$ wget http://www.baronams.com/products/ioapi/ioapi-3.1.tar.gz
# mpich
$ wget http://www.mpich.org/static/downloads/3.1/mpich-3.1.tar.gz
# pvm3,can be igore
$ wget http://www.netlib.org/pvm3/pvm3.4.6.tgz

继续阅读