-
Notifications
You must be signed in to change notification settings - Fork 131
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 #4 from dabail10/master
Added machine support for NCAR's cheyenne machine.
- Loading branch information
Showing
3 changed files
with
109 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
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,67 @@ | ||
#============================================================================== | ||
# Makefile macros for "yellowstone" an NCAR Linux Cluster | ||
#============================================================================== | ||
# For use with intel compiler | ||
#============================================================================== | ||
|
||
CPP := fpp | ||
CPPDEFS := -DFORTRANUNDERSCORE -DNO_R16 -DHAVE_F2008_CONTIGUOUS -DLINUX -DCPRINTEL ${CICE_CPPDEFS} | ||
CFLAGS := -c -O2 -fp-model precise -xHost | ||
|
||
FIXEDFLAGS := -132 | ||
FREEFLAGS := -FR | ||
FFLAGS := -O2 -fp-model precise -convert big_endian -assume byterecl -ftz -traceback -xHost | ||
FFLAGS_NOOPT:= -O0 | ||
|
||
ifeq ($(CICE_COMMDIR), mpi) | ||
FC := mpif90 | ||
else | ||
FC := ifort | ||
endif | ||
|
||
MPICC:= mpicc | ||
|
||
MPIFC:= mpif90 | ||
LD:= $(MPIFC) | ||
|
||
NETCDF_PATH := $(NETCDF) | ||
|
||
PIO_CONFIG_OPTS:= --enable-filesystem-hints=gpfs | ||
|
||
#PNETCDF_PATH := $(PNETCDF) | ||
PNETCDF_PATH := /glade/u/apps/ch/opt/pio/2.2/mpt/2.15f/intel/17.0.1/lib | ||
|
||
INCLDIR := $(INCLDIR) | ||
|
||
LIB_NETCDF := $(NETCDF_PATH)/lib | ||
LIB_PNETCDF := $(PNETCDF_PATH)/lib | ||
LIB_MPI := $(IMPILIBDIR) | ||
|
||
SLIBS := -L$(LIB_NETCDF) -lnetcdf -lnetcdff -L$(LIB_PNETCDF) -lpnetcdf -lgptl | ||
|
||
SCC:= icc | ||
|
||
SFC:= ifort | ||
|
||
ifeq ($(compile_threaded), true) | ||
LDFLAGS += -openmp | ||
CFLAGS += -openmp | ||
FFLAGS += -openmp | ||
endif | ||
|
||
ifeq ($(DITTO), yes) | ||
CPPDEFS := $(CPPDEFS) -DREPRODUCIBLE | ||
endif | ||
|
||
### if using parallel I/O, load all 3 libraries. PIO must be first! | ||
ifeq ($(IO_TYPE), pio) | ||
PIO_PATH:=/glade/u/apps/ch/opt/pio/2.2/mpt/2.15f/intel/17.0.1/lib | ||
INCLDIR += -I/glade/u/apps/ch/opt/pio/2.2/mpt/2.15f/intel/17.0.1/include | ||
SLIBS := $(SLIBS) -L$(PIO_PATH) -lpiof | ||
|
||
CPPDEFS := $(CPPDEFS) -Dncdf | ||
endif | ||
|
||
ifeq ($(IO_TYPE), netcdf) | ||
CPPDEFS := $(CPPDEFS) -Dncdf | ||
endif |
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,23 @@ | ||
#!/bin/csh -f | ||
|
||
source /glade/u/apps/ch/opt/lmod/7.2.1/lmod/7.2.1/init/csh | ||
|
||
module purge | ||
module load ncarenv/1.1 | ||
module load intel/17.0.1 | ||
module load mpt/2.15f | ||
module load ncarcompilers/0.4.1 | ||
module load pio/2.2.0 | ||
|
||
setenv CICE_MACHINE_ENVNAME cheyenne | ||
setenv CICE_MACHINE_WKDIR /glade/scratch/$user/CICE_RUNS | ||
setenv CICE_MACHINE_INPUTDATA /glade/p/work/dbailey/atm/gx3v2m/NCAR_bulk | ||
setenv CICE_MACHINE_SUBMIT "qsub" | ||
setenv CICE_MACHINE_TPNODE 36 | ||
setenv CICE_MACHINE_ACCT P0000000 | ||
setenv CICE_MACHINE_BLDTHRDS 1 | ||
|
||
if (-e ~/.cice_proj) then | ||
set account_name = `head -1 ~/.cice_proj` | ||
setenv CICE_ACCT ${account_name} | ||
endif |