This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
esmf-_ubuntu_18.04 [2019/07/10 23:58] k2patel created |
esmf-_ubuntu_18.04 [2020/08/10 02:35] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== ESMF Ubuntu 18.04 ====== | ====== ESMF Ubuntu 18.04 ====== | ||
- | <code bash> | + | |
+ | <code> | ||
# installing ESMF on Ubuntu Linux | # installing ESMF on Ubuntu Linux | ||
# pre-req : gfortran, netcdf, openmpi, python3 | # pre-req : gfortran, netcdf, openmpi, python3 | ||
- | # first mkdir /opt/esmf/7.0.0 and chown to yourself | + | # first mkdir /opt/esmf/7.1.0r and chown to yourself |
- | # you also need a copy of esmf_7_0_0_src.tar | + | # you also need a copy of esmf v7.1.0r |
+ | # https://sourceforge.net/code-snapshots/git/e/es/esmf/esmf.git/esmf-esmf-e3ac95b2e25a36d6cbfa68ed93eb1645fea29fcd.zip | ||
+ | # unzip esmf-esmf-e3ac95b2e25a36d6cbfa68ed93eb1645fea29fcd.zip | ||
+ | # mv esmf-esmf-e3ac95b2e25a36d6cbfa68ed93eb1645fea29fcd /opt/esmf-7.1.0r | ||
# Raphael Dussin, July 2016 | # Raphael Dussin, July 2016 | ||
+ | # Some part modified k2patel, July 2019 | ||
- | PYTHONBIN=/opt/Anaconda3/4.1.1/bin/ | + | PYTHONBIN=/usr/bin/ |
- | CUSTOMINSTALLDIR=/opt/esmf/7.1.0beta | + | CUSTOMINSTALLDIR=/opt/esmf-7.1.0r |
#------------------ installing the ESMF libraries --------------- | #------------------ 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 - | + | #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 | + | wget https://sourceforge.net/code-snapshots/git/e/es/esmf/esmf.git/esmf-esmf-e3ac95b2e25a36d6cbfa68ed93eb1645fea29fcd.zip |
+ | unzip esmf-esmf-e3ac95b2e25a36d6cbfa68ed93eb1645fea29fcd.zip | ||
+ | mv esmf-esmf-e3ac95b2e25a36d6cbfa68ed93eb1645fea29fcd /opt/esmf-7.1.0r | ||
+ | cd /opt/esmf-7.1.0r | ||
export ESMF_DIR=$( pwd ) | export ESMF_DIR=$( pwd ) | ||
Line 30: | Line 38: | ||
cd src/addon/ESMPy | cd src/addon/ESMPy | ||
$PYTHONBIN/python setup.py build --ESMFMKFILE=$CUSTOMINSTALLDIR/lib/libO/Linux.gfortran.64.openmpi.default/esmf.mk install | $PYTHONBIN/python setup.py build --ESMFMKFILE=$CUSTOMINSTALLDIR/lib/libO/Linux.gfortran.64.openmpi.default/esmf.mk install | ||
- | <code> | + | </code> |