Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
95f9ac3
Merge pull request #1 from NOAA-EMC/develop
DeniseWorthen Oct 4, 2019
39b5e91
Merge pull request #2 from NOAA-EMC/develop
DeniseWorthen Nov 23, 2019
eb563f4
Merge pull request #5 from NOAA-EMC/develop
DeniseWorthen Jan 1, 2020
fbfb3df
remove ice-ocean merge in prep_atm
DeniseWorthen Jan 11, 2020
584c900
Merge pull request #8 from NOAA-EMC/develop
DeniseWorthen Jan 16, 2020
a50e0d9
Merge branch 'develop' into feature/nomerge2atm
DeniseWorthen Jan 16, 2020
7110838
remove atm-ocn in prep_atm;remove associated FBs
DeniseWorthen Jan 27, 2020
8e4187e
comment vs ifdef
DeniseWorthen Jan 27, 2020
c3fe0c1
remove unnecessary prep_atm merges
DeniseWorthen Jan 27, 2020
ca2677c
remove custom merges in prep_atm which are not needed when
DeniseWorthen Jan 31, 2020
8327230
Merge remote-tracking branch 'origin/feature/remove_unused' into feat…
DeniseWorthen Feb 3, 2020
42075ce
move sum(weights) into datm part of loop; add wgtp01 for netLW
DeniseWorthen Feb 3, 2020
a7daedf
remove unused code in prep_atm
DeniseWorthen Feb 4, 2020
42aae56
Merge remote-tracking branch 'origin/feature/aofluxes' into feature/c…
DeniseWorthen Feb 4, 2020
793b2e4
use RWFields_tile for mediator dumps
DeniseWorthen Feb 5, 2020
c030896
clean up commented out code used for testing
DeniseWorthen Feb 6, 2020
c8a3c1b
add print statement of slow and fast counters for field dumping
DeniseWorthen Feb 7, 2020
6acefa8
more PET log info printout
DeniseWorthen Feb 7, 2020
d3ad0c5
add ability to write mediator a-o fluxes to file with statewrite_flag
DeniseWorthen Feb 9, 2020
5923739
return statewrite flags to their default setting
DeniseWorthen Feb 10, 2020
fd0cd69
mediator aborts if a required mediator restart
DeniseWorthen Feb 16, 2020
16cc11a
add condition of 'not coldstart' to mediator abort
DeniseWorthen Feb 16, 2020
101d109
change sw field names from cice
DeniseWorthen Feb 16, 2020
8defb2f
Merge pull request #15 from DeniseWorthen/feature/changefldnamescice
DeniseWorthen Feb 19, 2020
48debb8
Add capablilty to build the CMEPS mediator in place of the
DeniseWorthen Feb 26, 2020
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
4 changes: 4 additions & 0 deletions src/GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ $(foreach COMP,$(COMP_LINK_ORDER),$(eval $(call comp_template,$(COMP))))

CPPFLAGS += $(DEP_FRONTS)

ifneq (,$(findstring CMEPS,$(COMPONENTS)))
CPPFLAGS += -DCMEPS
endif

TARGET = ../exe/NEMS.x

ifneq (,$(findstring MACOSX,$(CPPDEFS)))
Expand Down
7 changes: 7 additions & 0 deletions src/incmake/component_CICE.mk
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,20 @@ NEMS_GRID?=T126_mx5
$(call require_dir,$(CICE_SRCDIR),CICE source directory)
$(call require_dir,$(ROOTDIR)/CICE_CAP,CICE cap directory)

ifneq (,$(findstring CMEPS,$(COMPONENTS)))
CPPCMEPS = -DCMEPS
else
CPPCMEPS =
endif

CICE_ALL_OPTS=\
COMP_SRCDIR=$(CICE_SRCDIR) \
COMP_BINDIR=$(CICE_BINDIR) \
SITE="NEMS.$(MACHINE_ID)" \
SYSTEM_USERDIR="$(CICE_SRCDIR)" \
SRCDIR="$(CICE_SRCDIR)" \
EXEDIR="$(CICE_SRCDIR)" \
CPPCMEPS="$(CPPCMEPS)" \
NEMS_GRID="$(NEMS_GRID)"

########################################################################
Expand Down
47 changes: 47 additions & 0 deletions src/incmake/component_CMEPS.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Location of the ESMF makefile fragment for this component:
cmeps_mk = $(CMEPS_BINDIR)/cmeps.mk
all_component_mk_files+=$(cmeps_mk)

# Location of source code and installation
CMEPS_SRCDIR?=$(ROOTDIR)/CMEPS
CMEPS_BINDIR?=$(ROOTDIR)/CMEPS_INSTALL

# Make sure the expected directories exist and are non-empty:
$(call require_dir,$(CMEPS_SRCDIR),CMEPS source directory)

ifndef CONFIGURE_NEMS_FILE
$(error CONFIGURE_NEMS_FILE not set.)
endif

include $(CONFIGURE_NEMS_FILE)

# Rule for building this component:
build_CMEPS: $(cmeps_mk)

CMEPS_ALL_OPTS=\
COMP_SRCDIR="$(CMEPS_SRCDIR)" \
COMP_BINDIR="$(CMEPS_BINDIR)" \
MACHINE_ID="$(MACHINE_ID)" \
FC="$(FC)" \
CC="$(CC)" \
CXX="$(CXX)"

$(cmeps_mk): configure
$(MODULE_LOGIC) ; export $(CMEPS_ALL_OPTS) ; \
set -e ; \
$(MODULE_LOGIC) ; cd $(CMEPS_SRCDIR) ; \
exec $(MAKE) $(CMEPS_ALL_OPTS) \
"INSTALLDIR=$(CMEPS_BINDIR)" install
test -d "$(CMEPS_BINDIR)"
test -s "$(cmeps_mk)"

# Rule for cleaning the SRCDIR and BINDIR:
clean_CMEPS:
$(MODULE_LOGIC) ; export $(CMEPS_ALL_OPTS) ; \
set -e ; \
cd $(CMEPS_SRCDIR) ; \
exec $(MAKE) clean

distclean_CMEPS: clean_CMEPS
rm -rf $(CMEPS_BINDIR)
rm -f $(cmeps_mk)
7 changes: 7 additions & 0 deletions src/incmake/component_MOM6.mk
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,17 @@ $(call require_dir,$(MOM6_SRCDIR),MOM6 source directory)
# Rule for building this component:
build_MOM6: $(mom6_mk)

ifneq (,$(findstring CMEPS,$(COMPONENTS)))
CPPCMEPS = -DCMEPS
else
CPPCMEPS =
endif

MOM6_ALL_OPTS=\
COMP_SRCDIR="$(MOM6_SRCDIR)" \
COMP_BINDIR="$(MOM6_BINDIR)" \
FMS_BINDIR="$(FMS_BINDIR)" \
CPPCMEPS="$(CPPCMEPS)" \
MACHINE_ID="$(FULL_MACHINE_ID)"

# Workaround: if MOM6 is built twice, it fails because files in
Expand Down
Loading