-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add mpas2esmf - A Fortran utility for generating SCRIP and ESMF files
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
Showing
4 changed files
with
821 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
mpas2esmf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
Oops, something went wrong.