Building ESMF with NETCDF and compiling GEOS-5

From GEOS-5
Jump to navigation Jump to search

Overview

ESMF can be built with NETCDF. This may be useful for a couple reasons. The first is that ESMF claims to have native IO routines now. Secondly when defining an ESMF_Mesh object the user can provide a NETCDF file with the description. ESMF must be built with NETCDF to read such files. ESMF requires the NETCDF C++ library. As of ESMF 5_3 and 6_1 this is the legacy NETCDF C++ library. ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-cxx-4.2.tar.gz

Building ESMF with NETCDF

Building GEOS5

Once you have built a baselibs with NETCDF C++ and ESMF properly linked to NETCDF you will need to make a some changes to successfully compile GEOS5. First you will need to point g5_modules to the new baselibs. Next you will need to modify Config/ESMA_base.mk. First you will need to add

Next you will need to change LIB_SDF to