Skip to content

Commit

Permalink
Make the print for submodule conditionally appearing in the compile l…
Browse files Browse the repository at this point in the history
…og file (#1716)

TYPE: no impact, text only

KEYWORDS: print, submodule status

SOURCE: internal

DESCRIPTION OF CHANGES:
Problem:
Currently when we compile, the section of the submodule status check from top-level Makefile always appears in the log file, which can be confusing to users.

Solution:
Add @ in front of 'if', and this will only print the appropriate message according to the situation.

LIST OF MODIFIED FILES: 
M     Makefile

TESTS CONDUCTED: 
1. Do mods fix problem? Yes, on a test compilation on Cheyenne.
2. The Jenkins tests are all passing.
  • Loading branch information
weiwangncar committed Apr 18, 2022
1 parent 30e7350 commit 999afd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ framework_only : configcheck

wrf : framework_only
$(MAKE) MODULE_DIRS="$(ALL_MODULES)" physics
if [ \( ! -f run/MPTABLE.TBL \) -o \
@if [ \( ! -f run/MPTABLE.TBL \) -o \
\( ! -f phys/module_sf_noahmpdrv.F \) -o \
\( ! -f phys/module_sf_noahmp_glacier.F \) -o \
\( ! -f phys/module_sf_noahmp_groundwater.F \) -o \
Expand Down

0 comments on commit 999afd3

Please sign in to comment.