Skip to content

Commit

Permalink
Add module search paths to support compilation of Noah-MP code with n…
Browse files Browse the repository at this point in the history
…vfortran

The nvfortran compiler requires paths of modules that are used indirectly to be
present in the module search path provided with the -I... option. To support
compilation of Noah-MP code in MPAS-Atmosphere with the nvfortran compiler, this
commit (1) adds Noah-MP source directories to FCINCLUDES, and (2) adds the path
to the esmf_time_f90 code when compiling Noah-MP code.
  • Loading branch information
mgduda committed Jun 21, 2024
1 parent 8ecc35d commit c740150
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/core_atmosphere/build_options.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ PWD=$(shell pwd)
EXE_NAME=atmosphere_model
NAMELIST_SUFFIX=atmosphere
override CPPFLAGS += -DCORE_ATMOSPHERE
FCINCLUDES += -I$(PWD)/src/core_atmosphere/physics/physics_noahmp/drivers/mpas \
-I$(PWD)/src/core_atmosphere/physics/physics_noahmp/utility \
-I$(PWD)/src/core_atmosphere/physics/physics_noahmp/src

report_builds:
@echo "CORE=atmosphere"
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,5 @@ clean:
$(RM) *.i

.F90.o:
$(FC) $(CPPFLAGS) $(COREDEF) $(FFLAGS) -c $*.F90 $(CPPINCLUDES) $(FCINCLUDES) -I. -I../../utility -I../../src -I../../../../../framework
$(FC) $(CPPFLAGS) $(COREDEF) $(FFLAGS) -c $*.F90 $(CPPINCLUDES) $(FCINCLUDES) -I. -I../../utility -I../../src -I../../../../../framework -I../../../../../external/esmf_time_f90

0 comments on commit c740150

Please # to comment.