-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #255 from sit23/sh_fix
Fix for Sh > 2.* issue, and new environment files and template for running on maths2 (Exeter). Also fixing bug that stopped the automated tests from working. This seems to also have been related to sh, but with the ubuntu system that github actions is running on not liking `sh.cd`.
- Loading branch information
Showing
5 changed files
with
54 additions
and
11 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,6 @@ | ||
echo loadmodules for maths2 machines | ||
|
||
export F90=mpiifort | ||
export CC=mpiicc | ||
|
||
export GFDL_MKMF_TEMPLATE=maths2 |
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
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
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,28 @@ | ||
# template for the Intel fortran compiler | ||
# typical use with mkmf | ||
# mkmf -t template.ifc -c"-Duse_libMPI -Duse_netCDF" path_names /usr/local/include | ||
CPPFLAGS = `nc-config --cflags` | ||
NETCDF_LIBS = `nc-config --libs` | ||
|
||
# FFLAGS: | ||
# -fpp: Use the fortran preprocessor | ||
# -stack_temps: Put temporary runtime arrays on the stack, not heap. | ||
# -safe_cray_ptr: Cray pointers don't alias other variables. | ||
# -ftz: Denormal numbers are flushed to zero. | ||
# -assume byterecl: Specifies the units for the OPEN statement as bytes. | ||
# -shared-intel: Load intel libraries dynamically | ||
# -i4: 4 byte integers | ||
# -r8: 8 byte reals | ||
# -g: Generate symbolic debugging info in code | ||
# -O2: Level 2 speed optimisations | ||
# -diag-disable 6843: | ||
# This suppresses the warning: `warning #6843: A dummy argument with an explicit INTENT(OUT) declaration is not given an explicit value.` of which | ||
# there are a lot of instances in the GFDL codebase. | ||
FFLAGS = $(CPPFLAGS) -fpp -stack_temps -safe_cray_ptr -ftz -assume byterecl -shared-intel -i4 -r8 -g -O2 -diag-disable 6843 -mcmodel large | ||
#FFLAGS = $(CPPFLAGS) -fltconsistency -stack_temps -safe_cray_ptr -ftz -shared-intel -assume byterecl -g -O0 -i4 -r8 -check -warn -warn noerrors -debug variable_locations -inline_debug_info -traceback | ||
FC = $(F90) | ||
LD = $(F90) $(NETCDF_LIBS) | ||
#CC = mpicc | ||
|
||
LDFLAGS = -lnetcdff -lnetcdf -lmpi -shared-intel -lhdf5_hl -lhdf5 -lm -lz -lsz -lbz2 -lxml2 -lcurl | ||
CFLAGS = -D__IFC |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
sh | ||
jinja2 | ||
git+git://github.com/marshallward/f90nml.git#egg=f90nml | ||
f90nml | ||
numpy | ||
pandas | ||
xarray | ||
tqdm | ||
tqdm |