This shows you the differences between two versions of the page.
esmf-_ubuntu_18.04 [2019/07/11 00:00] k2patel |
esmf-_ubuntu_18.04 [2020/08/10 02:35] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== ESMF Ubuntu 18.04 ====== | ||
- | |||
- | <code> | ||
- | # installing ESMF on Ubuntu Linux | ||
- | # pre-req : gfortran, netcdf, openmpi, python3 | ||
- | # first mkdir /opt/esmf/7.0.0 and chown to yourself | ||
- | # you also need a copy of esmf_7_0_0_src.tar | ||
- | # Raphael Dussin, July 2016 | ||
- | |||
- | PYTHONBIN=/opt/Anaconda3/4.1.1/bin/ | ||
- | CUSTOMINSTALLDIR=/opt/esmf/7.1.0beta | ||
- | |||
- | #------------------ installing the ESMF libraries --------------- | ||
- | git archive --remote=git://git.code.sf.net/p/esmf/esmf --format=tar --prefix=esmf/ ESMF_7_1_0_beta_snapshot_06 | tar -xf - | ||
- | cd esmf | ||
- | |||
- | export ESMF_DIR=$( pwd ) | ||
- | export ESMF_INSTALL_PREFIX=$CUSTOMINSTALLDIR | ||
- | export ESMF_COMM=openmpi | ||
- | export ESMF_NETCDF=split | ||
- | export ESMF_NETCDF_INCLUDE=/usr/include | ||
- | export ESMF_NETCDF_LIBPATH=/usr/lib | ||
- | export ESMF_NETCDF_LIBS="-lnetcdff -lnetcdf" | ||
- | |||
- | make | ||
- | make install | ||
- | |||
- | # At this point you should have ESMF installed | ||
- | #------------------ installing the python3 wrapper --------------- | ||
- | |||
- | cd src/addon/ESMPy | ||
- | $PYTHONBIN/python setup.py build --ESMFMKFILE=$CUSTOMINSTALLDIR/lib/libO/Linux.gfortran.64.openmpi.default/esmf.mk install | ||
- | </code> | ||