Commit 6726b3df authored by William Gustafson's avatar William Gustafson
Browse files

Initial WRF code from NCAR v3.7.0 released 17-Apr-2015.

parent 640a392f

Too many changes to show.

To preserve performance only 109 of 109+ files are displayed.
commit_notes
*.[ao]
*~
# Top level Makefile for wrf system
LN = ln -s
MAKE = make -i -r
MV = /bin/mv
RM = /bin/rm -f
CHEM_FILES = ../chem/module_aerosols_sorgam.o \
../chem/module_gocart_aerosols.o \
../chem/module_mosaic_driver.o \
../chem/module_input_tracer.o \
../chem/module_aerosols_soa_vbs.o
CHEM_FILES2 = ../chem/module_data_mosaic_asect.o
deflt :
@ echo Please compile the code using ./compile
include ./configure.wrf
EM_MODULE_DIR = -I../dyn_em
EM_MODULES = $(EM_MODULE_DIR)
DA_WRFVAR_MODULES = $(INCLUDE_MODULES)
DA_WRFVAR_MODULES_2 = $(INC_MOD_WRFVAR)
DA_CONVERTOR_MOD_DIR = -I../var/convertor -p../var/convertor
DA_CONVERTOR_MODULES = $(DA_CONVERTOR_MOD_DIR) $(INCLUDE_MODULES)
#### 3.d. add macros to specify the modules for this core
#EXP_MODULE_DIR = -I../dyn_exp
#EXP_MODULES = $(EXP_MODULE_DIR)
NMM_MODULE_DIR = -I../dyn_nmm
NMM_MODULES = $(NMM_MODULE_DIR)
ALL_MODULES = \
$(EM_MODULE_DIR) \
$(NMM_MODULES) \
$(EXP_MODULES) \
$(INCLUDE_MODULES)
configcheck:
@echo " "
@echo "============================================================================================== "
@echo " "
@echo "The following indicate the compilers selected to build the WRF system"
@echo " "
@echo "Serial Fortran compiler (mostly for tool generation):"
@echo which SFC
@which `echo $(SFC) | cut -d " " -f1`
@echo " "
@echo "Serial C compiler (mostly for tool generation):"
@echo which SCC
@which `echo $(SCC) | cut -d " " -f1`
@echo " "
@echo "Fortran compiler for the model source code:"
@echo which FC
@if command -v timex > /dev/null 2>&1; then \
which `echo $(FC) | cut -d " " -f2` ; \
echo "Will use 'timex' to report timing information" ; \
elif command -v time > /dev/null 2>&1; then \
which `echo $(FC) | cut -d " " -f2` ; \
echo "Will use 'time' to report timing information" ; \
else \
which `echo $(FC) | cut -d " " -f1` ; \
fi
@echo " "
@echo "C compiler for the model source code:"
@echo which CC
@which `echo $(CC) | cut -d " " -f1`
@echo " "
@echo "============================================================================================== "
@echo " "
@if [ "$(A2DCASE)" -a "$(DMPARALLEL)" ] ; then \
echo "------------------------------------------------------------------------------" ; \
echo "WRF CONFIGURATION ERROR " ; \
echo "The $(A2DCASE) case requires a build for only single domain. " ; \
echo "The $(A2DCASE) case cannot be used on distributed memory parallel systems. " ; \
echo "Only 3D WRF cases will run with the options that you selected. " ; \
echo "Please choose a different case, or rerun configure and choose a different set of options." ; \
echo "------------------------------------------------------------------------------" ; \
exit 2 ; \
fi
framework_only : configcheck
$(MAKE) MODULE_DIRS="$(ALL_MODULES)" ext
$(MAKE) MODULE_DIRS="$(ALL_MODULES)" toolsdir
/bin/rm -f main/libwrflib.a main/libwrflib.lib
$(MAKE) MODULE_DIRS="$(ALL_MODULES)" framework
$(MAKE) MODULE_DIRS="$(ALL_MODULES)" shared
wrf : framework_only
$(MAKE) MODULE_DIRS="$(ALL_MODULES)" physics
if [ $(WRF_CHEM) -eq 1 ] ; then $(MAKE) MODULE_DIRS="$(ALL_MODULES)" chemics ; fi
if [ $(WRF_EM_CORE) -eq 1 ] ; then $(MAKE) MODULE_DIRS="$(ALL_MODULES)" em_core ; fi
if [ $(WRF_NMM_CORE) -eq 1 ] ; then $(MAKE) MODULE_DIRS="$(ALL_MODULES)" nmm_core ; fi
if [ $(WRF_EXP_CORE) -eq 1 ] ; then $(MAKE) MODULE_DIRS="$(ALL_MODULES)" exp_core ; fi
if [ $(WRF_HYDRO) -eq 1 ] ; then $(MAKE) MODULE_DIRS="$(ALL_MODULES)" wrf_hydro ; fi
( cd main ; $(MAKE) MODULE_DIRS="$(ALL_MODULES)" SOLVER=em em_wrf )
( cd run ; /bin/rm -f wrf.exe ; ln -s ../main/wrf.exe . )
if [ $(ESMF_COUPLING) -eq 1 ] ; then \
( cd main ; $(MAKE) MODULE_DIRS="$(ALL_MODULES)" SOLVER=em em_wrf_SST_ESMF ) ; \
fi
@echo "build started: $(START_OF_COMPILE)"
@echo "build completed:" `date`
all_wrfvar :
$(MAKE) MODULE_DIRS="$(DA_WRFVAR_MODULES)" ext
$(MAKE) MODULE_DIRS="$(DA_WRFVAR_MODULES)" toolsdir
if [ $(CRTM) ] ; then \
(cd var/external/crtm_2.1.3; \
export ABI_CRTM="${ABI_CRTM}"; . configure/$(SFC_CRTM).setup; $(MAKE) $(J) ) ; \
fi
if [ $(BUFR) ] ; then \
(cd var/external/bufr; \
$(MAKE) $(J) FC="$(SFC)" CC="$(SCC)" CPP="$(CPP)" CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" FFLAGS="$(FCDEBUG) $(FORMAT_FIXED)" RANLIB="$(RANLIB)" AR="$(AR)" ARFLAGS="$(ARFLAGS)" ) ; \
fi
### Use 'make' to avoid '-i -r' above:
if [ $(WAVELET) ] ; then \
( cd var/external/wavelet; \
make CC="$(SC99) -DNOUNDERSCORE" RM="$(RM)" libWavelet.a; \
make FC="$(FC)" RM="$(RM)" lib_wavelet.a ) ; \
fi
# ( cd var/build; touch depend.txt; make links; make depend; $(MAKE) $(J) all_wrfvar )
( cd var/build; make depend; $(MAKE) $(J) all_wrfvar )
( cd var/obsproc; $(MAKE) $(J) BUFR_CPP="$(BUFR_CPP)" )
@echo "build started: $(START_OF_COMPILE)"
@echo "build completed:" `date`
### 3.a. rules to build the framework and then the experimental core
exp_wrf : configcheck
$(MAKE) MODULE_DIRS="$(ALL_MODULES)" ext
$(MAKE) MODULE_DIRS="$(ALL_MODULES)" toolsdir
$(MAKE) MODULE_DIRS="$(ALL_MODULES)" framework
$(MAKE) MODULE_DIRS="$(ALL_MODULES)" shared
( cd main ; $(MAKE) MODULE_DIRS="$(ALL_MODULES)" SOLVER=exp exp_wrf )
nmm_wrf : wrf
# Eulerian mass coordinate initializations
em_fire : wrf
@/bin/rm -f ideal.exe > /dev/null 2>&1
@/bin/rm -f wrf.exe > /dev/null 2>&1
@ echo '--------------------------------------'
( cd main ; $(MAKE) MODULE_DIRS="$(ALL_MODULES)" SOLVER=em IDEAL_CASE=fire em_ideal )
( cd test/em_fire ; /bin/rm -f wrf.exe ; ln -s ../../main/wrf.exe . )
( cd test/em_fire ; /bin/rm -f ideal.exe ; ln -s ../../main/ideal.exe . )
( cd test/em_fire ; /bin/rm -f README.namelist ; ln -s ../../run/README.namelist . )
( cd test/em_fire ; /bin/sh create_links.sh )
( cd run ; /bin/rm -f ideal.exe ; ln -s ../main/ideal.exe . )
( cd run ; if test -f namelist.input ; then \
/bin/cp -f namelist.input namelist.input.backup ; fi ; \
/bin/rm -f namelist.input ; cp ../test/em_fire/namelist.input . )
( cd run ; /bin/rm -f input_sounding ; ln -s ../test/em_fire/input_sounding . )
@echo "build started: $(START_OF_COMPILE)"
@echo "build completed:" `date`
em_quarter_ss : wrf
@/bin/rm -f ideal.exe > /dev/null 2>&1
@/bin/rm -f wrf.exe > /dev/null 2>&1
@ echo '--------------------------------------'
( cd main ; $(MAKE) MODULE_DIRS="$(ALL_MODULES)" SOLVER=em IDEAL_CASE=quarter_ss em_ideal )
( cd test/em_quarter_ss ; /bin/rm -f wrf.exe ; ln -s ../../main/wrf.exe . )
( cd test/em_quarter_ss ; /bin/rm -f ideal.exe ; ln -s ../../main/ideal.exe . )
( cd test/em_quarter_ss ; /bin/rm -f README.namelist ; ln -s ../../run/README.namelist . )
( cd test/em_quarter_ss ; /bin/rm -f bulkdens.asc_s_0_03_0_9 ; ln -s ../../run/bulkdens.asc_s_0_03_0_9 . )
( cd test/em_quarter_ss ; /bin/rm -f bulkradii.asc_s_0_03_0_9 ; ln -s ../../run/bulkradii.asc_s_0_03_0_9 . )
( cd test/em_quarter_ss ; /bin/rm -f capacity.asc ; ln -s ../../run/capacity.asc . )
( cd test/em_quarter_ss ; /bin/rm -f coeff_p.asc ; ln -s ../../run/coeff_p.asc . )
( cd test/em_quarter_ss ; /bin/rm -f coeff_q.asc ; ln -s ../../run/coeff_q.asc . )
( cd test/em_quarter_ss ; /bin/rm -f constants.asc ; ln -s ../../run/constants.asc . )
( cd test/em_quarter_ss ; /bin/rm -f kernels.asc_s_0_03_0_9 ; ln -s ../../run/kernels.asc_s_0_03_0_9 . )
( cd test/em_quarter_ss ; /bin/rm -f kernels_z.asc ; ln -s ../../run/kernels_z.asc . )
( cd test/em_quarter_ss ; /bin/rm -f masses.asc ; ln -s ../../run/masses.asc . )
( cd test/em_quarter_ss ; /bin/rm -f termvels.asc ; ln -s ../../run/termvels.asc . )
( cd run ; /bin/rm -f ideal.exe ; ln -s ../main/ideal.exe . )
( cd run ; if test -f namelist.input ; then \
/bin/cp -f namelist.input namelist.input.backup ; fi ; \
/bin/rm -f namelist.input ; cp ../test/em_quarter_ss/namelist.input . )
( cd run ; /bin/rm -f input_sounding ; ln -s ../test/em_quarter_ss/input_sounding . )
@echo " "
@echo "=========================================================================="
@echo "build started: $(START_OF_COMPILE)"
@echo "build completed:" `date`
@if test -e main/wrf.exe -a -e main/ideal.exe ; then \
echo " " ; \
echo "---> Executables successfully built <---" ; \
echo " " ; \
ls -l main/*.exe ; \
echo " " ; \
echo "==========================================================================" ; \
echo " " ; \
else \
echo " " ; \
echo "---> Problems building executables, look for errors in the build log <---" ; \
echo " " ; \
echo "==========================================================================" ; \
echo " " ; \
fi
em_squall2d_x : wrf
@/bin/rm -f ideal.exe > /dev/null 2>&1
@/bin/rm -f wrf.exe > /dev/null 2>&1
@ echo '--------------------------------------'
( cd main ; $(MAKE) MODULE_DIRS="$(ALL_MODULES)" SOLVER=em IDEAL_CASE=squall2d_x em_ideal )
( cd test/em_squall2d_x ; /bin/rm -f wrf.exe ; ln -s ../../main/wrf.exe . )
( cd test/em_squall2d_x ; /bin/rm -f ideal.exe ; ln -s ../../main/ideal.exe . )
( cd test/em_squall2d_x ; /bin/rm -f README.namelist ; ln -s ../../run/README.namelist . )
( cd run ; /bin/rm -f ideal.exe ; ln -s ../main/ideal.exe . )
( cd run ; if test -f namelist.input ; then \
/bin/cp -f namelist.input namelist.input.backup ; fi ; \
/bin/rm -f namelist.input ; cp ../test/em_squall2d_x/namelist.input . )
( cd run ; /bin/rm -f input_sounding ; ln -s ../test/em_squall2d_x/input_sounding . )
@echo "build started: $(START_OF_COMPILE)"
@echo "build completed:" `date`
@echo " "
@echo "=========================================================================="
@echo "build started: $(START_OF_COMPILE)"
@echo "build completed:" `date`
@if test -e main/wrf.exe -a -e main/ideal.exe ; then \
echo " " ; \
echo "---> Executables successfully built <---" ; \
echo " " ; \
ls -l main/*.exe ; \
echo " " ; \
echo "==========================================================================" ; \
echo " " ; \
else \
echo " " ; \
echo "---> Problems building executables, look for errors in the build log <---" ; \
echo " " ; \
echo "==========================================================================" ; \
echo " " ; \
fi
em_squall2d_y : wrf
@/bin/rm -f ideal.exe > /dev/null 2>&1
@/bin/rm -f wrf.exe > /dev/null 2>&1
@ echo '--------------------------------------'
( cd main ; $(MAKE) MODULE_DIRS="$(ALL_MODULES)" SOLVER=em IDEAL_CASE=squall2d_y em_ideal )
( cd test/em_squall2d_y ; /bin/rm -f wrf.exe ; ln -s ../../main/wrf.exe . )
( cd test/em_squall2d_y ; /bin/rm -f ideal.exe ; ln -s ../../main/ideal.exe . )
( cd test/em_squall2d_y ; /bin/rm -f README.namelist ; ln -s ../../run/README.namelist . )
( cd run ; /bin/rm -f ideal.exe ; ln -s ../main/ideal.exe . )
( cd run ; if test -f namelist.input ; then \
/bin/cp -f namelist.input namelist.input.backup ; fi ; \
/bin/rm -f namelist.input ; cp ../test/em_squall2d_y/namelist.input . )
( cd run ; /bin/rm -f input_sounding ; ln -s ../test/em_squall2d_y/input_sounding . )
@echo " "
@echo "=========================================================================="
@echo "build started: $(START_OF_COMPILE)"
@echo "build completed:" `date`
@if test -e main/wrf.exe -a -e main/ideal.exe ; then \
echo " " ; \
echo "---> Executables successfully built <---" ; \
echo " " ; \
ls -l main/*.exe ; \
echo " " ; \
echo "==========================================================================" ; \
echo " " ; \
else \
echo " " ; \
echo "---> Problems building executables, look for errors in the build log <---" ; \
echo " " ; \
echo "==========================================================================" ; \
echo " " ; \
fi
em_b_wave : wrf
@/bin/rm -f ideal.exe > /dev/null 2>&1
@/bin/rm -f wrf.exe > /dev/null 2>&1
@ echo '--------------------------------------'
( cd main ; $(MAKE) MODULE_DIRS="$(ALL_MODULES)" SOLVER=em IDEAL_CASE=b_wave em_ideal )
( cd test/em_b_wave ; /bin/rm -f wrf.exe ; ln -s ../../main/wrf.exe . )
( cd test/em_b_wave ; /bin/rm -f ideal.exe ; ln -s ../../main/ideal.exe . )
( cd test/em_b_wave ; /bin/rm -f README.namelist ; ln -s ../../run/README.namelist . )
( cd run ; /bin/rm -f ideal.exe ; ln -s ../main/ideal.exe . )
( cd run ; if test -f namelist.input ; then \
/bin/cp -f namelist.input namelist.input.backup ; fi ; \
/bin/rm -f namelist.input ; cp ../test/em_b_wave/namelist.input . )
( cd run ; /bin/rm -f input_jet ; ln -s ../test/em_b_wave/input_jet . )
@echo " "
@echo "=========================================================================="
@echo "build started: $(START_OF_COMPILE)"
@echo "build completed:" `date`
@if test -e main/wrf.exe -a -e main/ideal.exe ; then \
echo " " ; \
echo "---> Executables successfully built <---" ; \
echo " " ; \
ls -l main/*.exe ; \
echo " " ; \
echo "==========================================================================" ; \
echo " " ; \
else \
echo " " ; \
echo "---> Problems building executables, look for errors in the build log <---" ; \
echo " " ; \
echo "==========================================================================" ; \
echo " " ; \
fi
em_les : wrf
@/bin/rm -f ideal.exe > /dev/null 2>&1
@/bin/rm -f wrf.exe > /dev/null 2>&1
@ echo '--------------------------------------'
( cd main ; $(MAKE) MODULE_DIRS="$(ALL_MODULES)" SOLVER=em IDEAL_CASE=les em_ideal )
( cd test/em_les ; /bin/rm -f wrf.exe ; ln -s ../../main/wrf.exe . )
( cd test/em_les ; /bin/rm -f ideal.exe ; ln -s ../../main/ideal.exe . )
( cd test/em_les ; /bin/rm -f README.namelist ; ln -s ../../run/README.namelist . )
( cd run ; /bin/rm -f ideal.exe ; ln -s ../main/ideal.exe . )
( cd run ; if test -f namelist.input ; then \
/bin/cp -f namelist.input namelist.input.backup ; fi ; \
/bin/rm -f namelist.input ; cp ../test/em_les/namelist.input . )
( cd run ; /bin/rm -f input_sounding ; ln -s ../test/em_les/input_sounding . )
@echo " "
@echo "=========================================================================="
@echo "build started: $(START_OF_COMPILE)"
@echo "build completed:" `date`
@if test -e main/wrf.exe -a -e main/ideal.exe ; then \
echo " " ; \
echo "---> Executables successfully built <---" ; \
echo " " ; \
ls -l main/*.exe ; \
echo " " ; \
echo "==========================================================================" ; \
echo " " ; \
else \
echo " " ; \
echo "---> Problems building executables, look for errors in the build log <---" ; \
echo " " ; \
echo "==========================================================================" ; \
echo " " ; \
fi
em_seabreeze2d_x : wrf
@/bin/rm -f ideal.exe > /dev/null 2>&1
@/bin/rm -f wrf.exe > /dev/null 2>&1
@ echo '--------------------------------------'
( cd main ; $(MAKE) MODULE_DIRS="$(ALL_MODULES)" SOLVER=em IDEAL_CASE=seabreeze2d_x em_ideal )
( cd test/em_seabreeze2d_x ; /bin/rm -f wrf.exe ; ln -s ../../main/wrf.exe . )
( cd test/em_seabreeze2d_x ; /bin/rm -f ideal.exe ; ln -s ../../main/ideal.exe . )
( cd test/em_seabreeze2d_x ; /bin/rm -f README.namelist ; ln -s ../../run/README.namelist . )
( cd run ; /bin/rm -f ideal.exe ; ln -s ../main/ideal.exe . )
( cd run ; if test -f namelist.input ; then \
/bin/cp -f namelist.input namelist.input.backup ; fi ; \
/bin/rm -f namelist.input ; cp ../test/em_seabreeze2d_x/namelist.input . )
( cd run ; /bin/rm -f input_sounding ; ln -s ../test/em_seabreeze2d_x/input_sounding . )
@echo " "
@echo "=========================================================================="
@echo "build started: $(START_OF_COMPILE)"
@echo "build completed:" `date`
@if test -e main/wrf.exe -a -e main/ideal.exe ; then \
echo " " ; \
echo "---> Executables successfully built <---" ; \
echo " " ; \
ls -l main/*.exe ; \
echo " " ; \
echo "==========================================================================" ; \
echo " " ; \
else \
echo " " ; \
echo "---> Problems building executables, look for errors in the build log <---" ; \
echo " " ; \
echo "==========================================================================" ; \
echo " " ; \
fi
em_convrad : wrf
@ echo '--------------------------------------'
( cd main ; $(MAKE) MODULE_DIRS="$(ALL_MODULES)" SOLVER=em IDEAL_CASE=convrad em_ideal )
( cd test/em_convrad ; /bin/rm -f wrf.exe ; ln -s ../../main/wrf.exe . )
( cd test/em_convrad ; /bin/rm -f ideal.exe ; ln -s ../../main/ideal.exe . )
( cd test/em_convrad ; /bin/rm -f README.namelist ; ln -s ../../run/README.namelist . )
( cd run ; /bin/rm -f ideal.exe ; ln -s ../main/ideal.exe . )
( cd run ; if test -f namelist.input ; then \
/bin/cp -f namelist.input namelist.input.backup ; fi ; \
/bin/rm -f namelist.input ; cp ../test/em_convrad/namelist.input . )
( cd run ; /bin/rm -f input_sounding ; ln -s ../test/em_convrad/input_sounding . )
@echo "build started: $(START_OF_COMPILE)"
@echo "build completed:" `date`
em_tropical_cyclone : wrf
@/bin/rm -f ideal.exe > /dev/null 2>&1
@/bin/rm -f wrf.exe > /dev/null 2>&1
@ echo '--------------------------------------'
( cd main ; $(MAKE) MODULE_DIRS="$(ALL_MODULES)" SOLVER=em IDEAL_CASE=tropical_cyclone em_ideal )
( cd test/em_tropical_cyclone ; /bin/rm -f wrf.exe ; ln -s ../../main/wrf.exe . )
( cd test/em_tropical_cyclone ; /bin/rm -f ideal.exe ; ln -s ../../main/ideal.exe . )
( cd test/em_tropical_cyclone ; /bin/rm -f README.namelist ; ln -s ../../run/README.namelist . )
( cd run ; /bin/rm -f ideal.exe ; ln -s ../main/ideal.exe . )
( cd run ; if test -f namelist.input ; then \
/bin/cp -f namelist.input namelist.input.backup ; fi ; \
/bin/rm -f namelist.input ; cp ../test/em_tropical_cyclone/namelist.input . )
( cd run ; /bin/rm -f input_sounding ; ln -s ../test/em_tropical_cyclone/input_sounding . )
@echo " "
@echo "=========================================================================="
@echo "build started: $(START_OF_COMPILE)"
@echo "build completed:" `date`
@if test -e main/wrf.exe -a -e main/ideal.exe ; then \
echo " " ; \
echo "---> Executables successfully built <---" ; \
echo " " ; \
ls -l main/*.exe ; \
echo " " ; \
echo "==========================================================================" ; \
echo " " ; \
else \
echo " " ; \
echo "---> Problems building executables, look for errors in the build log <---" ; \
echo " " ; \
echo "==========================================================================" ; \
echo " " ; \
fi
em_scm_xy : wrf
@/bin/rm -f ideal.exe > /dev/null 2>&1
@/bin/rm -f wrf.exe > /dev/null 2>&1
@ echo '--------------------------------------'
( cd main ; $(MAKE) MODULE_DIRS="$(ALL_MODULES)" SOLVER=em IDEAL_CASE=scm_xy em_ideal )
( cd test/em_scm_xy ; /bin/rm -f wrf.exe ; ln -s ../../main/wrf.exe . )
( cd test/em_scm_xy ; /bin/rm -f ideal.exe ; ln -s ../../main/ideal.exe . )
( cd test/em_scm_xy ; /bin/rm -f README.namelist ; ln -s ../../run/README.namelist . )
( cd run ; /bin/rm -f ideal.exe ; ln -s ../main/ideal.exe . )
( cd run ; if test -f namelist.input ; then \
/bin/cp -f namelist.input namelist.input.backup ; fi ; \
/bin/rm -f namelist.input ; cp ../test/em_scm_xy/namelist.input . )
( cd run ; /bin/rm -f input_sounding ; ln -s ../test/em_scm_xy/input_sounding . )
@echo " "
@echo "=========================================================================="
@echo "build started: $(START_OF_COMPILE)"
@echo "build completed:" `date`
@if test -e main/wrf.exe -a -e main/ideal.exe ; then \
echo " " ; \
echo "---> Executables successfully built <---" ; \
echo " " ; \
ls -l main/*.exe ; \
echo " " ; \
echo "==========================================================================" ; \
echo " " ; \
else \
echo " " ; \
echo "---> Problems building executables, look for errors in the build log <---" ; \
echo " " ; \
echo "==========================================================================" ; \
echo " " ; \
fi
convert_em : framework_only
if [ $(WRF_CONVERT) -eq 1 ] ; then \
( cd main ; $(MAKE) MODULE_DIRS="$(ALL_MODULES)" convert_em ) ; \
fi
# Link wrf.exe and wrf_SST_ESMF.exe into
# test/em_esmf_exp when ESMF_COUPLING is set. wrf.exe
# can be used for stand-alone testing in this case.
# wrf_SST_ESMF.exe is a coupled application. Note that make
# target $(SOLVER)_wrf_SST_ESMF builds wrf_SST_ESMF.exe.
em_real : wrf
@/bin/rm -f real.exe > /dev/null 2>&1
@/bin/rm -f tc.exe > /dev/null 2>&1
@/bin/rm -f ndown.exe > /dev/null 2>&1
@/bin/rm -f wrf.exe > /dev/null 2>&1
@ echo '--------------------------------------'
( cd main ; $(MAKE) MODULE_DIRS="$(ALL_MODULES)" SOLVER=em IDEAL_CASE=real em_real )
( cd test/em_real ; /bin/rm -f wrf.exe ; ln -s ../../main/wrf.exe . )
if [ $(ESMF_COUPLING) -eq 1 ] ; then \
( cd main ; $(MAKE) MODULE_DIRS="$(ALL_MODULES)" SOLVER=em IDEAL_CASE=real em_wrf_SST_ESMF ) ; \
( cd test/em_esmf_exp ; /bin/rm -f wrf.exe ; ln -s ../../main/wrf.exe . ) ; \
( cd test/em_esmf_exp ; /bin/rm -f wrf_SST_ESMF.exe ; ln -s ../../main/wrf_SST_ESMF.exe . ) ; \
( cd test/em_esmf_exp ; /bin/rm -f real.exe ; ln -s ../../main/real.exe . ) ; \
( cd test/em_esmf_exp ; /bin/rm -f README.namelist ; ln -s ../../run/README.namelist . ) ; \
( cd test/em_esmf_exp ; /bin/rm -f ETAMPNEW_DATA.expanded_rain ETAMPNEW_DATA RRTM_DATA RRTMG_LW_DATA RRTMG_SW_DATA ; \
ln -sf ../../run/ETAMPNEW_DATA . ; \
ln -sf ../../run/ETAMPNEW_DATA.expanded_rain . ; \
ln -sf ../../run/RRTM_DATA . ; \
ln -sf ../../run/RRTMG_LW_DATA . ; \
ln -sf ../../run/RRTMG_SW_DATA . ; \
ln -sf ../../run/CAM_ABS_DATA . ; \
ln -sf ../../run/CAM_AEROPT_DATA . ; \
ln -sf ../../run/CAMtr_volume_mixing_ratio.RCP4.5 . ; \
ln -sf ../../run/CAMtr_volume_mixing_ratio.RCP6 . ; \
ln -sf ../../run/CAMtr_volume_mixing_ratio.RCP8.5 CAMtr_volume_mixing_ratio ; \
ln -sf ../../run/CAMtr_volume_mixing_ratio.A1B . ; \
ln -sf ../../run/CAMtr_volume_mixing_ratio.A2 . ; \
ln -sf ../../run/CLM_ALB_ICE_DFS_DATA . ; \
ln -sf ../../run/CLM_ALB_ICE_DRC_DATA . ; \
ln -sf ../../run/CLM_ASM_ICE_DFS_DATA . ; \
ln -sf ../../run/CLM_ASM_ICE_DRC_DATA . ; \
ln -sf ../../run/CLM_DRDSDT0_DATA . ; \
ln -sf ../../run/CLM_EXT_ICE_DFS_DATA . ; \
ln -sf ../../run/CLM_EXT_ICE_DRC_DATA . ; \
ln -sf ../../run/CLM_KAPPA_DATA . ; \
ln -sf ../../run/CLM_TAU_DATA . ; \
ln -sf ../../run/ozone.formatted . ; \
ln -sf ../../run/ozone_lat.formatted . ; \
ln -sf ../../run/ozone_plev.formatted . ; \
ln -sf ../../run/aerosol.formatted . ; \
ln -sf ../../run/aerosol_lat.formatted . ; \
ln -sf ../../run/aerosol_lon.formatted . ; \
ln -sf ../../run/aerosol_plev.formatted . ; \
ln -sf ../../run/CCN_ACTIVATE.BIN . ; \
if [ $(RWORDSIZE) -eq 8 ] ; then \
ln -sf ../../run/ETAMPNEW_DATA_DBL ETAMPNEW_DATA ; \
ln -sf ../../run/ETAMPNEW_DATA.expanded_rain_DBL ETAMPNEW_DATA.expanded_rain ; \
ln -sf ../../run/RRTM_DATA_DBL RRTM_DATA ; \
ln -sf ../../run/RRTMG_LW_DATA_DBL RRTMG_LW_DATA ; \
ln -sf ../../run/RRTMG_SW_DATA_DBL RRTMG_SW_DATA ; \
fi ) ; \
( cd test/em_esmf_exp ; /bin/rm -f GENPARM.TBL ; ln -s ../../run/GENPARM.TBL . ) ; \
( cd test/em_esmf_exp ; /bin/rm -f LANDUSE.TBL ; ln -s ../../run/LANDUSE.TBL . ) ; \
( cd test/em_esmf_exp ; /bin/rm -f SOILPARM.TBL ; ln -s ../../run/SOILPARM.TBL . ) ; \
( cd test/em_esmf_exp ; /bin/rm -f URBPARM.TBL ; ln -s ../../run/URBPARM.TBL . ) ; \
( cd test/em_esmf_exp ; /bin/rm -f VEGPARM.TBL ; ln -s ../../run/VEGPARM.TBL . ) ; \
( cd test/em_esmf_exp ; /bin/rm -f MPTABLE.TBL ; ln -s ../../run/MPTABLE.TBL . ) ; \
( cd test/em_esmf_exp ; /bin/rm -f tr49t67 ; ln -s ../../run/tr49t67 . ) ; \
( cd test/em_esmf_exp ; /bin/rm -f tr49t85 ; ln -s ../../run/tr49t85 . ) ; \
( cd test/em_esmf_exp ; /bin/rm -f tr67t85 ; ln -s ../../run/tr67t85 . ) ; \
( cd test/em_esmf_exp ; /bin/rm -f gribmap.txt ; ln -s ../../run/gribmap.txt . ) ; \
( cd test/em_esmf_exp ; /bin/rm -f grib2map.tbl ; ln -s ../../run/grib2map.tbl . ) ; \
fi
( cd test/em_real ; /bin/rm -f real.exe ; ln -s ../../main/real.exe . )
( cd test/em_real ; /bin/rm -f tc.exe ; ln -s ../../main/tc.exe . )
( cd test/em_real ; /bin/rm -f ndown.exe ; ln -s ../../main/ndown.exe . )
#TEMPORARILY REMOVED ( cd test/em_real ; /bin/rm -f nup.exe ; ln -s ../../main/nup.exe . )
( cd test/em_real ; /bin/rm -f README.namelist ; ln -s ../../run/README.namelist . )
( cd test/em_real ; /bin/rm -f ETAMPNEW_DATA.expanded_rain ETAMPNEW_DATA RRTM_DATA RRTMG_LW_DATA RRTMG_SW_DATA ; \
ln -sf ../../run/ETAMPNEW_DATA . ; \
ln -sf ../../run/ETAMPNEW_DATA.expanded_rain . ; \
ln -sf ../../run/RRTM_DATA . ; \
ln -sf ../../run/RRTMG_LW_DATA . ; \
ln -sf ../../run/RRTMG_SW_DATA . ; \
ln -sf ../../run/CAM_ABS_DATA . ; \
ln -sf ../../run/CAM_AEROPT_DATA . ; \
ln -sf ../../run/CAMtr_volume_mixing_ratio.RCP4.5 . ; \
ln -sf ../../run/CAMtr_volume_mixing_ratio.RCP6 . ; \
ln -sf ../../run/CAMtr_volume_mixing_ratio.RCP8.5 CAMtr_volume_mixing_ratio ; \
ln -sf ../../run/CAMtr_volume_mixing_ratio.A1B . ; \
ln -sf ../../run/CAMtr_volume_mixing_ratio.A2 . ; \
ln -sf ../../run/CLM_ALB_ICE_DFS_DATA . ; \
ln -sf ../../run/CLM_ALB_ICE_DRC_DATA . ; \
ln -sf ../../run/CLM_ASM_ICE_DFS_DATA . ; \
ln -sf ../../run/CLM_ASM_ICE_DRC_DATA . ; \
ln -sf ../../run/CLM_DRDSDT0_DATA . ; \
ln -sf ../../run/CLM_EXT_ICE_DFS_DATA . ; \
ln -sf ../../run/CLM_EXT_ICE_DRC_DATA . ; \
ln -sf ../../run/CLM_KAPPA_DATA . ; \
ln -sf ../../run/CLM_TAU_DATA . ; \
ln -sf ../../run/ozone.formatted . ; \
ln -sf ../../run/ozone_lat.formatted . ; \
ln -sf ../../run/ozone_plev.formatted . ; \
ln -sf ../../run/aerosol.formatted . ; \
ln -sf ../../run/aerosol_lat.formatted . ; \
ln -sf ../../run/aerosol_lon.formatted . ; \
ln -sf ../../run/aerosol_plev.formatted . ; \
ln -sf ../../run/capacity.asc . ; \
ln -sf ../../run/coeff_p.asc . ; \
ln -sf ../../run/coeff_q.asc . ; \
ln -sf ../../run/constants.asc . ; \
ln -sf ../../run/masses.asc . ; \
ln -sf ../../run/termvels.asc . ; \
ln -sf ../../run/kernels.asc_s_0_03_0_9 . ; \
ln -sf ../../run/kernels_z.asc . ; \
ln -sf ../../run/bulkdens.asc_s_0_03_0_9 . ; \
ln -sf ../../run/bulkradii.asc_s_0_03_0_9 . ; \
ln -sf ../../run/CCN_ACTIVATE.BIN . ; \
if [ $(RWORDSIZE) -eq 8 ] ; then \
ln -sf ../../run/ETAMPNEW_DATA_DBL ETAMPNEW_DATA ; \
ln -sf ../../run/ETAMPNEW_DATA.expanded_rain_DBL ETAMPNEW_DATA.expanded_rain ; \
ln -sf ../../run/RRTM_DATA_DBL RRTM_DATA ; \
ln -sf ../../run/RRTMG_LW_DATA_DBL RRTMG_LW_DATA ; \
ln -sf ../../run/RRTMG_SW_DATA_DBL RRTMG_SW_DATA ; \
fi )
( cd test/em_real ; /bin/rm -f GENPARM.TBL ; ln -s ../../run/GENPARM.TBL . )