Skip to content

Commit fa2f4fc

Browse files
author
G. Dylan Dickerson
committed
Move MPAS-O,SI Makefile mods to Depends files
These rules for MPAS-Ocean and MPAS-SeaIce are better handled in the Depends.* files for each compiler than in cime:CIME/Tools/Makefile.
1 parent 1fd1e60 commit fa2f4fc

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

machines/Depends.gnu

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,12 @@ mo_fluxes_broadband_kernels.o
1414

1515
$(RRTMGP_OBJS): %.o: %.F90
1616
$(FC) -c $(INCLDIR) $(INCS) $(FFLAGS) $(FREEFLAGS) -fno-openmp $<
17+
18+
ifeq ($(COMP_NAME),mpassi)
19+
# mpas seaice files that can't compile with optimization using gnu
20+
MPASSI_NOOPT_OBJS=\
21+
ice_shortwave.o
22+
23+
$(MPASSI_NOOPT_OBJS): %.o : %.F90
24+
$(FC) -c $(FPPFLAGS) $(INCLDIR) $(INCS) $(FREEFLAGS) $(FFLAGS) $(FFLAGS_NOOPT) $<
25+
endif

machines/Depends.nvhpc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,12 @@ ifeq ($(DEBUG),FALSE)
174174
$(FC) -c $(INCLDIR) $(INCS) $(FFLAGS) $(FREEFLAGS) $(OPENACC_GPU_FLAGS) $<
175175
$(CLUBB_OBJS): %.o: %.F90
176176
$(FC) -c $(INCLDIR) $(INCS) $(FFLAGS) $(FREEFLAGS) $(OPENACC_GPU_FLAGS) $<
177+
178+
ifeq ($(COMP_NAME),mpaso)
179+
# mpas ocean files need gpuflags
180+
FFLAGS +=$(GPUFLAGS)
181+
endif
182+
177183
else
178184
$(REDUCED_ERRORCHKS_IN_DEBUG): %.o: %.F90
179185
$(FC) -c $(INCLDIR) $(INCS) $(FFLAGS) $(FREEFLAGS) -Mnobounds -Ktrap=none -Knoieee $<

0 commit comments

Comments
 (0)