User Tools

Site Tools


esmf-_ubuntu_18.04

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

esmf-_ubuntu_18.04 [2019/07/11 00:09]
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.1.0r and chown to yourself 
-# 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 
-# Some part modified k2patel, July 2019 
- 
-PYTHONBIN=/​usr/​bin/​ 
-CUSTOMINSTALLDIR=/​opt/​esmf-7.1.0r 
- 
-#​------------------ 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 - 
-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_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.txt ยท Last modified: 2020/08/10 02:35 (external edit)