Skip to content

Commit

Permalink
Update SHiELD_build per Rusty's comments
Browse files Browse the repository at this point in the history
  • Loading branch information
spencerkclark committed Oct 4, 2023
1 parent dcbbd86 commit 842c1a0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,18 +59,18 @@ ENV SHiELD_LD=mpif90
ENV SUBMODULE_DIR=/SHiELD
COPY submodules ${SUBMODULE_DIR}/

# Build FMS, NCEPlibs, and SHiELD using SHiELD_build
# FMS_CPPDEFS needed to address https://github.com/NOAA-GFDL/FMS/issues/426 and
# to build FMS with the -fPIC flag, which is required for the wrapper.
# Build FMS, NCEPlibs, and SHiELD using SHiELD_build with position independent
# code FMS_CPPDEFS is needed to address
# https://github.com/NOAA-GFDL/FMS/issues/426
RUN cd ${SUBMODULE_DIR}/SHiELD_build/Build && \
FMS_CPPDEFS="-DHAVE_GETTID -fPIC" \
FMS_CPPDEFS="-DHAVE_GETTID" \
FC=${SHiELD_FC} \
CC=${SHiELD_CC} \
CXX=${SHiELD_CXX} \
LD=${SHiELD_LD} \
TEMPLATE=site/gnu.mk \
AVX_LEVEL=-march=native \
./COMPILE shield_wrapper 64bit gnu
./COMPILE shield 64bit gnu pic

COPY requirements.txt /tmp
RUN \
Expand All @@ -92,7 +92,7 @@ RUN make -C wrapper \
CXX=${SHiELD_CXX} \
LD=${SHiELD_LD} \
LDSHARED="${SHiELD_CC} -shared" \
FPIC=Y \
PIC=Y \
OPENMP=Y \
AVX=Y \
build install
Expand Down
2 changes: 1 addition & 1 deletion submodules/SHiELD_build
Submodule SHiELD_build updated 56 files
+6 −1 Build/BUILDlibfms
+5 −4 Build/BUILDnceplibs
+12 −10 Build/COMPILE
+11 −2 Build/mk_scripts/MAKE_libFMS
+19 −18 Build/mk_scripts/mk_make
+17 −19 Build/mk_scripts/mk_makefile
+2 −20 Build/mk_scripts/mk_paths
+0 −15 RTS/CI/C128r20.solo.superC
+0 −15 RTS/CI/C128r3.solo.TC
+0 −15 RTS/CI/C128r3.solo.TC.d1
+0 −15 RTS/CI/C128r3.solo.TC.h6
+0 −15 RTS/CI/C128r3.solo.TC.tr8
+0 −15 RTS/CI/C192.sw.BLvortex
+0 −15 RTS/CI/C192.sw.BTwave
+0 −15 RTS/CI/C192.sw.modon
+0 −15 RTS/CI/C256r20.solo.superC
+0 −15 RTS/CI/C384.sw.BLvortex
+0 −15 RTS/CI/C384.sw.BTwave
+0 −15 RTS/CI/C512r20.solo.superC
+0 −15 RTS/CI/C768.sw.BTwave
+0 −15 RTS/CI/C96.solo.BCdry
+0 −15 RTS/CI/C96.solo.BCdry.hyd
+0 −15 RTS/CI/C96.solo.BCmoist
+0 −15 RTS/CI/C96.solo.BCmoist.hyd
+0 −15 RTS/CI/C96.solo.BCmoist.hyd.d3
+0 −15 RTS/CI/C96.solo.BCmoist.nhK
+0 −15 RTS/CI/C96.solo.mtn_rest
+0 −15 RTS/CI/C96.solo.mtn_rest.hyd
+0 −15 RTS/CI/C96.solo.mtn_rest.hyd.diff2
+0 −15 RTS/CI/C96.solo.mtn_rest.nonmono.diff2
+0 −15 RTS/CI/C96.sw.BLvortex
+0 −15 RTS/CI/C96.sw.BTwave
+0 −15 RTS/CI/C96.sw.RHwave
+0 −15 RTS/CI/C96.sw.modon
+0 −15 RTS/CI/d96_1k.solo.mtn_rest_shear
+0 −15 RTS/CI/d96_1k.solo.mtn_rest_shear.olddamp
+0 −15 RTS/CI/d96_1k.solo.mtn_schar
+0 −15 RTS/CI/d96_1k.solo.mtn_schar.mono
+0 −15 RTS/CI/d96_2k.solo.bubble
+0 −15 RTS/CI/d96_2k.solo.bubble.n0
+0 −15 RTS/CI/d96_2k.solo.bubble.nhK
+0 −15 RTS/CI/d96_500m.solo.mtn_schar
+0 −2 RTS/GAEA_RTS/C3072_res.csh
+0 −2 RTS/GAEA_RTS/C384.csh
+0 −2 RTS/GAEA_RTS/C48_res.csh
+0 −2 RTS/GAEA_RTS/C48_test.csh
+0 −2 RTS/GAEA_RTS/C48n4.csh
+0 −2 RTS/GAEA_RTS/C768.csh
+1 −3 RTS/GAEA_RTS/C768r15n3.csh
+0 −2 RTS/GAEA_RTS/Regional3km.csh
+6 −4 site/gnu.mk
+6 −4 site/intel.mk
+6 −4 site/nvhpc.mk
+1 −0 tables/data_table.yaml
+53 −0 tables/field_table_6species.yaml
+71 −0 tables/field_table_6species_tke_clock.yaml
2 changes: 1 addition & 1 deletion wrapper/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ CC ?= mpicc
CXX ?= mpicxx
LD ?= mpif90

ARTIFACTS=$(SHIELD_BUILD)/Build/exec/shield_wrapper_nh.prod.64bit.gnu
ARTIFACTS=$(SHIELD_BUILD)/Build/exec/shield_nh.prod.64bit.gnu
FMS_64BIT=$(SHIELD_BUILD)/Build/libFMS/gnu/64bit
FFLAGS += -I$(ARTIFACTS) -I$(FMS_64BIT)
MPI_FLAGS=`$(FC) -show | sed 's/\(-I[^ ]*\|^[^ ]*\)//g'`
Expand Down

0 comments on commit 842c1a0

Please sign in to comment.