Skip to content

Commit

Permalink
Add mpas2esmf - A Fortran utility for generating SCRIP and ESMF files
Browse files Browse the repository at this point in the history
This commit adds a new Fortran utility that can be used for creating SCRIP and
ESMF files from MPAS grids. Currently, this tool is used to generate SCRIP
files for MPAS-Atmosphere in CESM.
  • Loading branch information
MiCurry committed May 18, 2021
1 parent d88210a commit ea76e6e
Show file tree
Hide file tree
Showing 4 changed files with 821 additions and 0 deletions.
1 change: 1 addition & 0 deletions mesh_tools/mpas2esmf/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mpas2esmf
9 changes: 9 additions & 0 deletions mesh_tools/mpas2esmf/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FC = $(shell nc-config --fc)
FCINCLUDES = $(shell nc-config --fflags)
FCLIBS = $(shell nc-config --flibs)

all: mpas2esmf.f90
$(FC) -o mpas2esmf mpas2esmf.f90 ${FCINCLUDES} ${FCLIBS}

clean:
rm -f mpas2esmf read_mesh.mod write_desc.mod
9 changes: 9 additions & 0 deletions mesh_tools/mpas2esmf/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# mpas2esmf

This tool generates ESMF and SCRIP files from an MPAS grid file. To avoid
complications with CESM/CAM infrastructure tools, this tool should only be ran
on grids that have a `sphere_radius = 1`.

To build, ensure `nc-config` is in your $PATH and call `make`.

By default, the ESMF and SCRIP NetCDF files created are 64BIT offset format.
Loading

0 comments on commit ea76e6e

Please sign in to comment.