Skip to content
Closed
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
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "phys/noahmp"]
path = phys/noahmp
url = https://github.com/NCAR/noahmp
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1011,16 +1011,16 @@ chemics :
physics :
@ echo '--------------------------------------'
if [ $(WRF_CHEM) -eq 0 ] ; then \
( cd phys ; $(MAKE) CF2=" " ) ; \
( cd phys ; $(MAKE) submodules ; $(MAKE) CF2=" " ) ; \
else \
( cd phys ; $(MAKE) CF2="$(CHEM_FILES2)" ) ; \
( cd phys ; $(MAKE) submodules ; $(MAKE) CF2="$(CHEM_FILES2)" ) ; \
fi

physics_plus :
if [ $(WRF_PLUS_CORE) -eq 0 ] ; then \
( cd phys ; $(MAKE) PHYS_PLUS=" " PHYS_MP=" " PHYS_BL=" " PHYS_CU=" " ) ; \
( cd phys ; $(MAKE) submodules ; $(MAKE) PHYS_PLUS=" " PHYS_MP=" " PHYS_BL=" " PHYS_CU=" " ) ; \
else \
( cd phys ; $(MAKE) PHYS_PLUS="$(MODS4)" PHYS_MP="$(MODMP)" PHYS_BL="$(MODBL)" PHYS_CU="$(MODCU)" ) ; \
( cd phys ; $(MAKE) submodules ; $(MAKE) PHYS_PLUS="$(MODS4)" PHYS_MP="$(MODMP)" PHYS_BL="$(MODBL)" PHYS_CU="$(MODCU)" ) ; \
fi

wrftlmadj :
Expand Down
3 changes: 3 additions & 0 deletions clean
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ if ( "$arg" == '-a' || "$arg" == '-aa' ) then
/bin/rm -f configure.wrf.backup
/bin/rm -f Registry/Registry.backup
/bin/rm -f run/namelist.input.backup.*
/bin/rm -f phys/module_sf_noahmpdrv.F phys/module_sf_noahmp_glacier.F \
phys/module_sf_noahmp_groundwater.F phys/module_sf_noahmplsm.F \
run/GENPARM.TBL run/MPTABLE.TBL run/SOILPARM.TBL
endif
endif

Expand Down
14 changes: 14 additions & 0 deletions phys/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,20 @@ include ../configure.wrf

non_nmm : $(MODULES) $(FIRE_MODULES) $(WIND_MODULES) $(OBJS) $(DIAGNOSTIC_MODULES_EM)

submodules :
@if [ \( ! -f module_sf_noahmpdrv.F \) -o \( ! -f module_sf_noahmp_glacier.F \) -o \
\( ! -f module_sf_noahmp_groundwater.F \) -o \( ! -f module_sf_noahmplsm.F \) ] ; then \
echo Pulling in NoahMP submodule ; \
( cd .. ; git submodule update --init --recursive ) ; \
ln -sf noahmp/drivers/wrf/module_sf_noahmpdrv.F . ; \
ln -sf noahmp/src/module_sf_noahmp_glacier.F . ; \
ln -sf noahmp/src/module_sf_noahmp_groundwater.F . ; \
ln -sf noahmp/src/module_sf_noahmplsm.F . ; \
( cd ../run ; ln -sf ../phys/noahmp/parameters/* . ) ; \
else \
echo No action required for NoahMP submodule ; \
fi

clean:
@ echo 'use the clean script'

Expand Down
3,075 changes: 0 additions & 3,075 deletions phys/module_sf_noahmp_glacier.F

This file was deleted.

Loading