Skip to content

Commit

Permalink
Merge pull request #128 from JulieSchramm/community_develop
Browse files Browse the repository at this point in the history
- Modify Externals.cfg to use head of NCAR/UFS_UTILS dtc/develop branch
  • Loading branch information
gsketefian committed Nov 6, 2019
2 parents beb9777 + 1dd4e09 commit e33699c
Show file tree
Hide file tree
Showing 10 changed files with 121 additions and 2 deletions.
3 changes: 1 addition & 2 deletions Externals.cfg
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
[ufs_utils_develop]
branch = dtc/develop
protocol = git
repo_url = https://github.com/NCAR/UFS_UTILS
#Working hash of develop branch
hash = 4643e2c
local_path = sorc/UFS_UTILS_develop
required = True

Expand Down
10 changes: 10 additions & 0 deletions modulefiles/regional_workflow/global_equiv_resol.cheyenne
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#%Module#####################################################
## Module file for regional_grid
#############################################################
module purge
module load ncarenv/1.3
module load intel/18.0.5
module load ncarcompilers/0.5.0
module load netcdf/4.6.3
# No hdf5 loaded since netcdf and hdf5 reside together on cheyenne

10 changes: 10 additions & 0 deletions modulefiles/regional_workflow/mosaic_file.cheyenne
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#%Module#####################################################
## Module file for regional_grid
#############################################################
module purge
module load ncarenv/1.3
module load intel/18.0.5
module load ncarcompilers/0.5.0
module load impi/2018.4.274
module load netcdf/4.6.3
# No hdf5 loaded since netcdf and hdf5 reside together on cheyenne
10 changes: 10 additions & 0 deletions modulefiles/regional_workflow/regional_grid.cheyenne
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#%Module#####################################################
## Module file for regional_grid
#############################################################
module purge
module load ncarenv/1.3
module load intel/18.0.5
module load ncarcompilers/0.5.0
module load impi/2018.4.274
module load netcdf/4.6.3
# No hdf5 loaded since netcdf and hdf5 reside together on cheyenne
1 change: 1 addition & 0 deletions sorc/build_global_equiv_resol.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ elif [ $platform = "hera" ]; then
elif [ $platform = "cheyenne" ]; then
NETCDF_DIR=$NETCDF
HDF5_DIR=$NETCDF #HDF5 resides with NETCDF on Cheyenne
export HDF5=$NETCDF #HDF5 used in Makefile_cheyenne
elif [ $platform = "jet" ]; then
HDF5_DIR=$HDF5
NETCDF_DIR=$NETCDF4
Expand Down
1 change: 1 addition & 0 deletions sorc/build_mosaic_file.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ elif [ $platform = "hera" ]; then
elif [ $platform = "cheyenne" ]; then
NETCDF_DIR=$NETCDF
HDF5_DIR=$NETCDF #HDF5 resides with NETCDF on Cheyenne
export HDF5=$NETCDF #HDF5 used in Makefile_cheyenne
elif [ $platform = "jet" ]; then
HDF5_DIR=$HDF5
NETCDF_DIR=$NETCDF4
Expand Down
1 change: 1 addition & 0 deletions sorc/build_regional_grid.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ elif [ $platform = "hera" ]; then
elif [ $platform = "cheyenne" ]; then
NETCDF_DIR=$NETCDF
HDF5_DIR=$NETCDF #HDF5 resides with NETCDF on Cheyenne
export HDF5=$NETCDF #HDF5 used in Makefile_cheyenne
elif [ $platform = "jet" ]; then
HDF5_DIR=$HDF5
NETCDF_DIR=$NETCDF
Expand Down
29 changes: 29 additions & 0 deletions sorc/global_equiv_resol.fd/Makefile_cheyenne
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
SHELL := bash

MAKEFLAGS += --warn-undefined-variables

INC = -I${NETCDF}/include

LIBS = ${NETCDF}/lib/libnetcdff.a ${NETCDF}/lib/libnetcdf.a \
${HDF5}/lib/libhdf5_hl.a ${HDF5}/lib/libhdf5.a ${NETCDF}/lib/libsz.a -lz

FC = ifort
FFLAGS = -g -O2 $(INC)

EXEC = global_equiv_resol

.PHONY: all
all : $(EXEC)

$(EXEC): global_equiv_resol.o $(LIBS)
$(FC) $(FFLAGS) -o $@ $^

.SUFFIXES:
.SUFFIXES: .f90 .o

.f90.o:
$(FC) $(FFLAGS) -c $<

.PHONY: clean
clean:
rm -f *.o *.mod $(EXEC)
29 changes: 29 additions & 0 deletions sorc/mosaic_file.fd/Makefile_cheyenne
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
SHELL := bash

MAKEFLAGS += --warn-undefined-variables

INC = -I${NETCDF}/include

LIBS = ${NETCDF}/lib/libnetcdff.a ${NETCDF}/lib/libnetcdf.a \
${HDF5}/lib/libhdf5_hl.a ${HDF5}/lib/libhdf5.a ${NETCDF}/lib/libsz.a -lz

FC = ifort
FFLAGS = -g -O2 $(INC)

EXEC = mosaic_file

.PHONY: all
all : $(EXEC)

$(EXEC): mosaic_file.o $(LIBS)
$(FC) $(FFLAGS) -o $@ $^

.SUFFIXES:
.SUFFIXES: .f90 .o

.f90.o:
$(FC) $(FFLAGS) -c $<

.PHONY: clean
clean:
rm -f *.o *.mod $(EXEC)
29 changes: 29 additions & 0 deletions sorc/regional_grid.fd/Makefile_cheyenne
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
SHELL := bash

MAKEFLAGS += --warn-undefined-variables

INC = -I${NETCDF}/include

LIBS = ${NETCDF}/lib/libnetcdff.a ${NETCDF}/lib/libnetcdf.a \
${HDF5}/lib/libhdf5_hl.a ${HDF5}/lib/libhdf5.a ${NETCDF}/lib/libsz.a -lz

FC = ifort
FFLAGS = -g -O2 $(INC)

REGIONAL_GRID = regional_grid

.PHONY: all
all : $(REGIONAL_GRID)

$(REGIONAL_GRID): pkind.o pietc.o pmat.o pmat4.o pmat5.o psym2.o gen_schmidt.o hgrid_ak.o regional_grid.o $(LIBS)
$(FC) $(FFLAGS) -o $@ $^

.SUFFIXES:
.SUFFIXES: .f90 .o

.f90.o:
$(FC) $(FFLAGS) -c $<

.PHONY: clean
clean:
rm -f *.o *.mod $(REGIONAL_GRID)

0 comments on commit e33699c

Please sign in to comment.