Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lanl_cice/bld/Macros.Linux.NEMS.cheyenne
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ FFLAGS_DEBUG := -g -O0 -fp-model precise -convert big_endian -assume byterecl -f
FFLAGS_OPT := -O2 -fp-model precise -convert big_endian -assume byterecl -ftz -traceback -xHost -I$(NETCDF)/include
FFLAGS_NOOPT:= -O0

ifdef DEBUG
FFLAGS += $(FFLAGS_DEBUG)
ifeq ($(DEBUG),Y)
FFLAGS += $(FFLAGS_DEBUG)
else
FFLAGS += $(FFLAGS_OPT)
FFLAGS += $(FFLAGS_OPT)
endif

ifeq ($(COMMDIR), mpi)
Expand Down
8 changes: 3 additions & 5 deletions lanl_cice/bld/Macros.Linux.NEMS.hera
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
# For use with intel compiler with IntelMPI
#==============================================================================

DEBUG=

CPP := fpp
CPPDEFS := -DFORTRANUNDERSCORE -DNO_R16 -DHAVE_F2008_CONTIGUOUS -DLINUX -DCPRINTEL -DCICE_NEMS
CFLAGS := -c -O2 -fp-model precise -xHost
Expand All @@ -22,10 +20,10 @@ else
FC := ifort
endif

ifdef DEBUG
FFLAGS += $(FFLAGS_DEBUG)
ifeq ($(DEBUG),Y)
FFLAGS += $(FFLAGS_DEBUG)
else
FFLAGS += $(FFLAGS_OPT)
FFLAGS += $(FFLAGS_OPT)
endif

MPICC:= mpiicc
Expand Down
12 changes: 12 additions & 0 deletions lanl_cice/comp_ice.backend
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,21 @@ else
cc -o makdep $CBLD/makdep.c
endif

# Build in debug mode. If DEBUG=Y, enable DEBUG compilation. This
# flag is set in ${ROOTDIR}/coupledFV3_MOM6_CICE_debug.appBuilder file.
if (! $?DEBUG) then
set DEBUG = N
else
if ($DEBUG != "Y") then
set DEBUG = N
endif
endif
echo "CICE comp_ice.backend ... DEBUG=${DEBUG}"

gmake VPFILE=Filepath EXEC=$EXEDIR/cice \
NXGLOB=$NXGLOB NYGLOB=$NYGLOB \
BLCKX=$BLCKX BLCKY=$BLCKY MXBLCKS=$MXBLCKS \
DEBUG=$DEBUG \
-f $CBLD/Makefile MACFILE=$CBLD/Macros.$ARCH

cd ..
Expand Down