User Tools

Site Tools


esmf-_ubuntu_18.04

This is an old revision of the document!


ESMF Ubuntu 18.04

<code bash> # 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>

esmf-_ubuntu_18.04.1562803122.txt.gz · Last modified: 2020/08/10 02:28 (external edit)