ESMF是用于耦合天气,气候和相关模式的工具,具有稳定,并行化和可扩展的插值(remapping)包,通常用于生成插值权重。安装前请配置好Netcdf库,以便修改以下两处环境变量。
1.下载解压ESMF-8.0.1
https://earthsystemmodeling.org/download/

2.配置环境变量(需要修改三处路径的名字)
vim ~/.bashrc

ESMF_HOME=/home/yyds/file/tool/esmf-8.0.1
export ESMF_DIR=$ESMF_HOME
export ESMF_COMM=intelmpi
export ESMF_COMPILER=intel
export ESMF_ABI=64
export ESMF_INSTALL_PREFIX=$ESMF_HOME/install
export ESMF_NETCDF_INCLUDE=/home/yyds/Build_WRF/LIBRARIES/netcdf/include
export ESMF_NETCDF_LIBPATH=/home/yyds/Build_WRF/LIBRARIES/netcdf/lib
export ESMF_NETCDF_LIBS="-lnetcdf -lnetcdff"
export ESMF_CXXCOMPILER=mpiicpc
export ESMF_CXXLINKER=mpiicpc
export ESMF_F90COMPILER=mpiifort
export ESMF_F90LINKER=mpiifort

source ~/.bashrc

3.编译(make执行需要十几分钟时间)
cd /home/yyds/file/tool/esmf-8.0.1
make
make install

4.安装成功提示
ESMF installation complete.