-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build rdbfmsua.x with a traditional makefile (#57)
This PR: - builds `rdbfmsua.x` with a traditional makefile instead of cmake due to problems with gempak and cmake. The issues are documented in #50 - skips building the above executable if the modulefile for this executable is not found. - only supports wcoss2, hera and orion at the moment where gempak is available. Fixes #54 Co-authored-by: Walter.Kolczynski <[email protected]>
- Loading branch information
1 parent
7cb499a
commit ad6592f
Showing
14 changed files
with
151 additions
and
264 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
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,26 @@ | ||
help([[ | ||
Build environment for GFS utilities on Hera | ||
]]) | ||
|
||
prepend_path("MODULEPATH", "/scratch1/NCEPDEV/nems/role.epic/spack-stack/spack-stack-1.6.0/envs/gsi-addon-dev/install/modulefiles/Core") | ||
|
||
local stack_intel_ver=os.getenv("stack_intel_ver") or "2021.5.0" | ||
local stack_impi_ver=os.getenv("stack_impi_ver") or "2021.5.1" | ||
local cmake_ver=os.getenv("cmake_ver") or "3.23.1" | ||
|
||
load(pathJoin("stack-intel", stack_intel_ver)) | ||
load(pathJoin("stack-intel-oneapi-mpi", stack_impi_ver)) | ||
|
||
local bufr_ver=os.getenv("bufr_ver") or "11.7.0" | ||
local bacio_ver=os.getenv("bacio_ver") or "2.4.1" | ||
local w3emc_ver=os.getenv("w3emc_ver") or "2.10.0" | ||
local gempak_ver=os.getenv("gempak_ver") or "7.4.2" | ||
|
||
load(pathJoin("bufr", bufr_ver)) | ||
load(pathJoin("bacio", bacio_ver)) | ||
load(pathJoin("w3emc", w3emc_ver)) | ||
load(pathJoin("gempak", gempak_ver)) | ||
|
||
setenv("gfortran_ROOT", "/apps/gnu/gcc-9.2.0") | ||
|
||
whatis("Description: GFS utilities environment on Hera with Intel Compilers") |
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,25 @@ | ||
help([[ | ||
Build environment for GFS utilities on Orion | ||
]]) | ||
|
||
prepend_path("MODULEPATH", "/work/noaa/epic/role-epic/spack-stack/orion/spack-stack-1.6.0/envs/gsi-addon-env/install/modulefiles/Core") | ||
|
||
local stack_intel_ver=os.getenv("stack_intel_ver") or "2022.0.2" | ||
local stack_impi_ver=os.getenv("stack_impi_ver") or "2021.5.1" | ||
|
||
load(pathJoin("stack-intel", stack_intel_ver)) | ||
load(pathJoin("stack-intel-oneapi-mpi", stack_impi_ver)) | ||
|
||
local bufr_ver=os.getenv("bufr_ver") or "11.7.0" | ||
local bacio_ver=os.getenv("bacio_ver") or "2.4.1" | ||
local w3emc_ver=os.getenv("w3emc_ver") or "2.10.0" | ||
local gempak_ver=os.getenv("gempak_ver") or "7.5.1" | ||
|
||
load(pathJoin("bufr", bufr_ver)) | ||
load(pathJoin("bacio", bacio_ver)) | ||
load(pathJoin("w3emc", w3emc_ver)) | ||
load(pathJoin("gempak", gempak_ver)) | ||
|
||
setenv("gfortran_ROOT", "/apps/gcc-8/gcc-8.3.0") | ||
|
||
whatis("Description: GFS utilities environment on Orion with Intel Compilers") |
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,25 @@ | ||
help([[ | ||
Build environment for GFS utilities on WCOSS2 | ||
]]) | ||
|
||
local PrgEnv_intel_ver=os.getenv("PrgEnv_intel_ver") or "8.1.0" | ||
local intel_ver=os.getenv("intel_ver") or "19.1.3.304" | ||
local craype_ver=os.getenv("craype_ver") or "2.7.10" | ||
|
||
local bufr_ver=os.getenv("bufr_ver") or "11.7.0" | ||
local bacio_ver=os.getenv("bacio_ver") or "2.4.1" | ||
local w3emc_ver=os.getenv("w3emc_ver") or "2.9.2" | ||
local gempak_ver=os.getenv("gempak_ver") or "7.14.1" | ||
|
||
load(pathJoin("PrgEnv-intel", PrgEnv_intel_ver)) | ||
load(pathJoin("intel", intel_ver)) | ||
load(pathJoin("craype", craype_ver)) | ||
|
||
load(pathJoin("bufr", bufr_ver)) | ||
load(pathJoin("bacio", bacio_ver)) | ||
load(pathJoin("w3emc", w3emc_ver)) | ||
load(pathJoin("gempak", gempak_ver)) | ||
|
||
setenv("gfortran_ROOT", "/opt/cray/pe/gcc/10.3.0/snos") | ||
|
||
whatis("Description: GFS utilities environment on WCOSS2 with Intel Compilers") |
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,19 @@ | ||
SHELL=/bin/sh | ||
|
||
include makefile.${MACHINE_ID}.${COMPILER} | ||
|
||
CMD = rdbfmsua.x | ||
OBJS = rdbfmsua.o | ||
|
||
$(CMD): $(OBJS) | ||
$(FC) $(LDFLAGS) -o $(@) $(OBJS) $(LIBS) | ||
|
||
clean: | ||
-rm -f ${OBJS} | ||
|
||
clobber: clean | ||
-rm -f ${CMD} | ||
|
||
install: | ||
-mv ${CMD} ${PREFIX}/bin/ | ||
|
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 = ifort | ||
FFLAGS = -g -traceback -I${GEMPAK}/include -I${OS_INC} | ||
LIBS = ${BUFR_LIB4} \ | ||
${GEMLIB}/gemlib.a \ | ||
${GEMLIB}/appl.a \ | ||
${GEMLIB}/syslib.a \ | ||
${GEMLIB}/cgemlib.a \ | ||
${GEMLIB}/bridge.a \ | ||
-L${gfrortran_ROOT}/lib64 -lgfortran |
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 = ifort | ||
FFLAGS = -g -traceback -I${GEMPAK}/include -I${OS_INC} | ||
LIBS = ${BUFR_LIB4} \ | ||
${GEMLIB}/gemlib.a \ | ||
${GEMLIB}/appl.a \ | ||
${GEMLIB}/syslib.a \ | ||
${GEMLIB}/cgemlib.a \ | ||
${GEMLIB}/bridge.a \ | ||
-L${gfrortran_ROOT}/lib64 -lgfortran |
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 @@ | ||
FC = ftn | ||
FFLAGS = -g -traceback -I${GEMINC} -I${OS_INC} | ||
LIBS = ${BUFR_LIB4} \ | ||
-L${GEMOLB} -lgemlib -lappl -lsyslib -lcgemlib \ | ||
${GEMOLB}/libbridge.a \ | ||
${gfortran_ROOT}/lib64/libgfortran.a |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.