1 # Top level Makefile for wrf system
7 CHEM_FILES
= ..
/chem
/module_aerosols_sorgam.o \
8 ..
/chem
/module_gocart_aerosols.o \
9 ..
/chem
/module_mosaic_driver.o \
10 ..
/chem
/module_input_tracer.o \
11 ..
/chem
/module_aerosols_soa_vbs.o
12 CHEM_FILES2
= ..
/chem
/module_data_mosaic_asect.o
14 # these files are needed to compile 'phys' in wrfplus mode
15 MODS4
= ..
/wrftladj
/module_mp_mkessler.o ..
/wrftladj
/module_mp_nconvp.o \
16 ..
/wrftladj
/module_bl_surface_drag.o ..
/wrftladj
/module_cu_du.o
17 MODMP
= ..
/wrftladj
/module_mp_mkessler.o ..
/wrftladj
/module_mp_nconvp.o
18 MODBL
= ..
/wrftladj
/module_bl_surface_drag.o
19 MODCU
= ..
/wrftladj
/module_cu_du.o
21 # this file is needed to compile module_integrate.F and module_cpl.F under frame in wrfplus mode
22 MODLL
= ..
/wrftladj
/module_linked_list2.o ..
/share
/module_model_constants.o
24 # these 2 file are needed to compile mediation_integrate.F under share in wrfplus mode
25 MODPT
= ..
/dyn_em
/module_bc_em.o ..
/wrftladj
/mediation_pertmod_io.o
28 @ echo Please compile the code using .
/compile
30 include .
/configure.wrf
32 EM_MODULE_DIR
= -I..
/dyn_em
33 EM_MODULES
= $(EM_MODULE_DIR
)
35 DA_WRFVAR_MODULES
= $(INCLUDE_MODULES
)
36 DA_WRFVAR_MODULES_2
= $(INC_MOD_WRFVAR
)
38 DA_CONVERTOR_MOD_DIR
= -I..
/var
/convertor
-p..
/var
/convertor
39 DA_CONVERTOR_MODULES
= $(DA_CONVERTOR_MOD_DIR
) $(INCLUDE_MODULES
)
42 #### 3.d. add macros to specify the modules for this core
50 @echo
"============================================================================================== "
52 @echo
"The following indicate the compilers selected to build the WRF system"
54 @echo
"Serial Fortran compiler (mostly for tool generation):"
56 @which
`echo $(SFC) | cut -d " " -f1`
58 @echo
"Serial C compiler (mostly for tool generation):"
60 @which
`echo $(SCC) | cut -d " " -f1`
62 @echo
"Fortran compiler for the model source code:"
64 @if command
-v timex
> /dev
/null
2>&1; then \
65 which
`echo $(FC) | cut -d " " -f2` ; \
66 echo
"Will use 'timex' to report timing information" ; \
67 elif command
-v time
> /dev
/null
2>&1; then \
68 which
`echo $(FC) | cut -d " " -f2` ; \
69 echo
"Will use 'time' to report timing information" ; \
71 which
`echo $(FC) | cut -d " " -f1` ; \
74 @echo
"C compiler for the model source code:"
76 @which
`echo $(CC) | cut -d " " -f1`
78 @echo
"============================================================================================== "
80 @if
[ "$(A2DCASE)" -a
"$(DMPARALLEL)" ] ; then \
81 echo
"------------------------------------------------------------------------------" ; \
82 echo
"WRF CONFIGURATION ERROR " ; \
83 echo
"The $(A2DCASE) case requires a build for only single domain. " ; \
84 echo
"The $(A2DCASE) case cannot be used on distributed memory parallel systems. " ; \
85 echo
"Only 3D WRF cases will run with the options that you selected. " ; \
86 echo
"Please choose a different case, or rerun configure and choose a different set of options." ; \
87 echo
"------------------------------------------------------------------------------" ; \
90 @if
[ "$(A1DCASE)" -a
"$(DMPARALLEL)" ] ; then \
91 echo
"------------------------------------------------------------------------------" ; \
92 echo
"WRF CONFIGURATION ERROR " ; \
93 echo
"The $(A1DCASE) case requires a build for only single domain. " ; \
94 echo
"The $(A1DCASE) case cannot be used on distributed memory parallel systems. " ; \
95 echo
"Only 3D WRF cases will run with the options that you selected. " ; \
96 echo
"Please choose a different case, or rerun configure and choose a different set of options." ; \
97 echo
"------------------------------------------------------------------------------" ; \
102 framework_only
: configcheck
103 $(MAKE
) MODULE_DIRS
="$(ALL_MODULES)" ext
104 $(MAKE
) MODULE_DIRS
="$(ALL_MODULES)" toolsdir
105 /bin
/rm -f main
/libwrflib.a main
/libwrflib.lib
106 $(MAKE
) MODULE_DIRS
="$(ALL_MODULES)" framework
107 $(MAKE
) MODULE_DIRS
="$(ALL_MODULES)" shared
110 $(MAKE
) MODULE_DIRS
="$(ALL_MODULES)" physics
111 @if
[ \
( ! -f run
/MPTABLE.TBL \
) -o \
112 \
( ! -f phys
/module_sf_noahmpdrv.F \
) -o \
113 \
( ! -f phys
/module_sf_noahmp_glacier.F \
) -o \
114 \
( ! -f phys
/module_sf_noahmp_groundwater.F \
) -o \
115 \
( ! -f phys
/module_sf_noahmplsm.F \
) ] ; then \
117 echo
"------------------------------------------------------------------------------" ; \
118 echo
"Error Error Error NoahMP submodule files not populating WRF directories" ; \
119 echo
"------------------------------------------------------------------------------" ; \
123 echo
"------------------------------------------------------------------------------" ; \
124 echo
"NoahMP submodule files populating WRF directories" ; \
125 echo
"------------------------------------------------------------------------------" ; \
127 if
[ $(WRF_CHEM
) -eq
1 ] ; then
$(MAKE
) MODULE_DIRS
="$(ALL_MODULES)" chemics
; fi
128 if
[ $(WRF_EM_CORE
) -eq
1 ] ; then
$(MAKE
) MODULE_DIRS
="$(ALL_MODULES)" em_core
; fi
129 if
[ $(WRF_HYDRO
) -eq
1 ] ; then
$(MAKE
) MODULE_DIRS
="$(ALL_MODULES)" wrf_hydro
; fi
130 ( cd main
; $(MAKE
) RLFLAGS
="$(RLFLAGS)" MODULE_DIRS
="$(ALL_MODULES)" SOLVER
=em em_wrf
)
131 ( cd run
; /bin
/rm -f wrf.exe
; ln
-s ..
/main
/wrf.exe .
)
132 if
[ $(ESMF_COUPLING
) -eq
1 ] ; then \
133 ( cd main
; $(MAKE
) RLFLAGS
="$(RLFLAGS)" MODULE_DIRS
="$(ALL_MODULES)" SOLVER
=em em_wrf_SST_ESMF
) ; \
135 @echo
"build started: $(START_OF_COMPILE)"
136 @echo
"build completed:" `date`
138 wrfplus
: configcheck
139 @
/bin
/rm -f real.exe
> /dev
/null
2>&1
140 @
/bin
/rm -f tc.exe
> /dev
/null
2>&1
141 @
/bin
/rm -f ndown.exe
> /dev
/null
2>&1
142 @
/bin
/rm -f wrf.exe
> /dev
/null
2>&1
143 @ echo
'--------------------------------------'
144 $(MAKE
) MODULE_DIRS
="$(ALL_MODULES)" ext
145 $(MAKE
) MODULE_DIRS
="$(ALL_MODULES)" toolsdir
146 /bin
/rm -f main
/libwrflib.a main
/libwrflib.lib
147 $(MAKE
) MODULE_DIRS
="$(ALL_MODULES)" framework_plus
148 $(MAKE
) MODULE_DIRS
="$(ALL_MODULES)" shared
149 $(MAKE
) MODULE_DIRS
="$(ALL_MODULES)" physics_plus
150 $(MAKE
) MODULE_DIRS
="$(ALL_MODULES)" em_core
151 $(MAKE
) MODULE_DIRS
="$(ALL_MODULES)" wrftlmadj
152 ( cd main
; $(MAKE
) RLFLAGS
="$(RLFLAGS)" MODULE_DIRS
="$(ALL_MODULES)" SOLVER
=em em_wrfplus
)
153 ( cd run
; /bin
/rm -f
*.exe
; ln
-s ..
/main
/*.exe .
)
154 @echo
"build started: $(START_OF_COMPILE)"
155 @echo
"build completed:" `date`
158 $(MAKE
) MODULE_DIRS
="$(DA_WRFVAR_MODULES)" ext
159 $(MAKE
) MODULE_DIRS
="$(DA_WRFVAR_MODULES)" toolsdir
160 if
[ $(CRTM
) -ne
0 ] ; then \
161 (cd var
/external
/crtm_2.3
.0; $(MAKE
) $(J
)) ; \
163 if
[ $(BUFR
) ] ; then \
164 (cd var
/external
/bufr
; \
165 $(MAKE
) $(J
) FC
="$(SFC)" CC
="$(SCC)" CPP
="$(CPP)" CPPFLAGS
="$(CPPFLAGS)" CFLAGS
="$(CFLAGS)" FFLAGS
="$(FCOPTIM) $(FORMAT_FIXED) $(FCCOMPAT)" RANLIB
="$(RANLIB)" AR
="$(AR)" ARFLAGS
="$(ARFLAGS)" ) ; \
167 ### Use 'make' to avoid '-i -r' above:
168 if
[ $(WAVELET
) ] ; then \
169 ( cd var
/external
/wavelet
; \
170 make CC
="$(SC99) -DNOUNDERSCORE" RM
="$(RM)" libWavelet.a
; \
171 make FC
="$(FC)" RM
="$(RM)" lib_wavelet.a
) ; \
173 # ( cd var/build; touch depend.txt; make links; make depend; $(MAKE) $(J) all_wrfvar )
174 ( cd var
/build
; make depend
; $(MAKE
) $(J
) all_wrfvar
)
175 ( cd var
/obsproc
; $(MAKE
) $(J
) BUFR_CPP
="$(BUFR_CPP)" )
176 @echo
"build started: $(START_OF_COMPILE)"
177 @echo
"build completed:" `date`
180 $(MAKE
) MODULE_DIRS
="$(DA_WRFVAR_MODULES)" ext
181 $(MAKE
) MODULE_DIRS
="$(DA_WRFVAR_MODULES)" toolsdir
182 ( cd var
/build
; make depend
; $(MAKE
) $(J
) gen_be
)
183 @echo
"build started: $(START_OF_COMPILE)"
184 @echo
"build completed:" `date`
187 # Eulerian mass coordinate initializations
190 @
/bin
/rm -f ideal.exe
> /dev
/null
2>&1
191 @
/bin
/rm -f wrf.exe
> /dev
/null
2>&1
192 @ echo
'--------------------------------------'
193 ( cd main
; $(MAKE
) RLFLAGS
="$(RLFLAGS)" MODULE_DIRS
="$(ALL_MODULES)" SOLVER
=em IDEAL_CASE
=fire em_ideal
)
194 ( cd
test/em_fire
; /bin
/rm -f wrf.exe
; ln
-s ..
/..
/main
/wrf.exe .
)
195 ( cd
test/em_fire
; /bin
/rm -f ideal.exe
; ln
-s ..
/..
/main
/ideal.exe .
)
196 ( cd
test/em_fire
; /bin
/rm -f README.namelist
; ln
-s ..
/..
/run
/README.namelist .
)
197 ( cd
test/em_fire
; /bin
/sh create_links.sh
)
198 ( cd run
; /bin
/rm -f ideal.exe
; ln
-s ..
/main
/ideal.exe .
)
199 ( cd run
; if
test -f namelist.input
; then \
200 /bin
/cp
-f namelist.input namelist.input.backup.
`date +%Y-%m-%d_%H_%M_%S` ; fi
; \
201 /bin
/rm -f namelist.input
; cp ..
/test/em_fire
/namelist.input .
)
202 ( cd run
; /bin
/rm -f input_sounding
; ln
-s ..
/test/em_fire
/input_sounding .
)
204 @echo
"=========================================================================="
205 @echo
"build started: $(START_OF_COMPILE)"
206 @echo
"build completed:" `date`
207 @if
test -e main
/wrf.exe
-a
-e main
/ideal.exe
; then \
209 echo
"---> Executables successfully built <---" ; \
213 echo
"==========================================================================" ; \
217 echo
"---> Problems building executables, look for errors in the build log <---" ; \
219 echo
"==========================================================================" ; \
224 @
/bin
/rm -f ideal.exe
> /dev
/null
2>&1
225 @
/bin
/rm -f wrf.exe
> /dev
/null
2>&1
226 @ echo
'--------------------------------------'
227 ( cd main
; $(MAKE
) RLFLAGS
="$(RLFLAGS)" MODULE_DIRS
="$(ALL_MODULES)" SOLVER
=em IDEAL_CASE
=ideal em_ideal
)
228 ( cd
test/em_quarter_ss
; /bin
/rm -f wrf.exe
; ln
-s ..
/..
/main
/wrf.exe .
)
229 ( cd
test/em_quarter_ss
; /bin
/rm -f ideal.exe
; ln
-s ..
/..
/main
/ideal.exe .
)
230 ( cd
test/em_quarter_ss
; /bin
/rm -f README.namelist
; ln
-s ..
/..
/run
/README.namelist .
)
231 ( 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 .
)
232 ( 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 .
)
233 ( cd
test/em_quarter_ss
; /bin
/rm -f capacity.asc
; ln
-s ..
/..
/run
/capacity.asc .
)
234 ( cd
test/em_quarter_ss
; /bin
/rm -f coeff_p.asc
; ln
-s ..
/..
/run
/coeff_p.asc .
)
235 ( cd
test/em_quarter_ss
; /bin
/rm -f coeff_q.asc
; ln
-s ..
/..
/run
/coeff_q.asc .
)
236 ( cd
test/em_quarter_ss
; /bin
/rm -f constants.asc
; ln
-s ..
/..
/run
/constants.asc .
)
237 ( 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 .
)
238 ( cd
test/em_quarter_ss
; /bin
/rm -f kernels_z.asc
; ln
-s ..
/..
/run
/kernels_z.asc .
)
239 ( cd
test/em_quarter_ss
; /bin
/rm -f masses.asc
; ln
-s ..
/..
/run
/masses.asc .
)
240 ( cd
test/em_quarter_ss
; /bin
/rm -f termvels.asc
; ln
-s ..
/..
/run
/termvels.asc .
)
241 ( cd run
; /bin
/rm -f ideal.exe
; ln
-s ..
/main
/ideal.exe .
)
242 ( cd run
; if
test -f namelist.input
; then \
243 /bin
/cp
-f namelist.input namelist.input.backup.
`date +%Y-%m-%d_%H_%M_%S` ; fi
; \
244 /bin
/rm -f namelist.input
; cp ..
/test/em_quarter_ss
/namelist.input .
)
245 ( cd run
; /bin
/rm -f input_sounding
; ln
-s ..
/test/em_quarter_ss
/input_sounding .
)
247 @echo
"=========================================================================="
248 @echo
"build started: $(START_OF_COMPILE)"
249 @echo
"build completed:" `date`
250 @if
test -e main
/wrf.exe
-a
-e main
/ideal.exe
; then \
252 echo
"---> Executables successfully built <---" ; \
256 echo
"==========================================================================" ; \
260 echo
"---> Problems building executables, look for errors in the build log <---" ; \
262 echo
"==========================================================================" ; \
267 @
/bin
/rm -f ideal.exe
> /dev
/null
2>&1
268 @
/bin
/rm -f wrf.exe
> /dev
/null
2>&1
269 @ echo
'--------------------------------------'
270 ( cd main
; $(MAKE
) RLFLAGS
="$(RLFLAGS)" MODULE_DIRS
="$(ALL_MODULES)" SOLVER
=em IDEAL_CASE
=ideal em_ideal
)
271 ( cd
test/em_squall2d_x
; /bin
/rm -f wrf.exe
; ln
-s ..
/..
/main
/wrf.exe .
)
272 ( cd
test/em_squall2d_x
; /bin
/rm -f ideal.exe
; ln
-s ..
/..
/main
/ideal.exe .
)
273 ( cd
test/em_squall2d_x
; /bin
/rm -f README.namelist
; ln
-s ..
/..
/run
/README.namelist .
)
274 ( cd run
; /bin
/rm -f ideal.exe
; ln
-s ..
/main
/ideal.exe .
)
275 ( cd run
; if
test -f namelist.input
; then \
276 /bin
/cp
-f namelist.input namelist.input.backup.
`date +%Y-%m-%d_%H_%M_%S` ; fi
; \
277 /bin
/rm -f namelist.input
; cp ..
/test/em_squall2d_x
/namelist.input .
)
278 ( cd run
; /bin
/rm -f input_sounding
; ln
-s ..
/test/em_squall2d_x
/input_sounding .
)
279 @echo
"build started: $(START_OF_COMPILE)"
280 @echo
"build completed:" `date`
282 @echo
"=========================================================================="
283 @echo
"build started: $(START_OF_COMPILE)"
284 @echo
"build completed:" `date`
285 @if
test -e main
/wrf.exe
-a
-e main
/ideal.exe
; then \
287 echo
"---> Executables successfully built <---" ; \
291 echo
"==========================================================================" ; \
295 echo
"---> Problems building executables, look for errors in the build log <---" ; \
297 echo
"==========================================================================" ; \
302 @
/bin
/rm -f ideal.exe
> /dev
/null
2>&1
303 @
/bin
/rm -f wrf.exe
> /dev
/null
2>&1
304 @ echo
'--------------------------------------'
305 ( cd main
; $(MAKE
) RLFLAGS
="$(RLFLAGS)" MODULE_DIRS
="$(ALL_MODULES)" SOLVER
=em IDEAL_CASE
=ideal em_ideal
)
306 ( cd
test/em_squall2d_y
; /bin
/rm -f wrf.exe
; ln
-s ..
/..
/main
/wrf.exe .
)
307 ( cd
test/em_squall2d_y
; /bin
/rm -f ideal.exe
; ln
-s ..
/..
/main
/ideal.exe .
)
308 ( cd
test/em_squall2d_y
; /bin
/rm -f README.namelist
; ln
-s ..
/..
/run
/README.namelist .
)
309 ( cd run
; /bin
/rm -f ideal.exe
; ln
-s ..
/main
/ideal.exe .
)
310 ( cd run
; if
test -f namelist.input
; then \
311 /bin
/cp
-f namelist.input namelist.input.backup.
`date +%Y-%m-%d_%H_%M_%S` ; fi
; \
312 /bin
/rm -f namelist.input
; cp ..
/test/em_squall2d_y
/namelist.input .
)
313 ( cd run
; /bin
/rm -f input_sounding
; ln
-s ..
/test/em_squall2d_y
/input_sounding .
)
315 @echo
"=========================================================================="
316 @echo
"build started: $(START_OF_COMPILE)"
317 @echo
"build completed:" `date`
318 @if
test -e main
/wrf.exe
-a
-e main
/ideal.exe
; then \
320 echo
"---> Executables successfully built <---" ; \
324 echo
"==========================================================================" ; \
328 echo
"---> Problems building executables, look for errors in the build log <---" ; \
330 echo
"==========================================================================" ; \
335 @
/bin
/rm -f ideal.exe
> /dev
/null
2>&1
336 @
/bin
/rm -f wrf.exe
> /dev
/null
2>&1
337 @ echo
'--------------------------------------'
338 ( cd main
; $(MAKE
) RLFLAGS
="$(RLFLAGS)" MODULE_DIRS
="$(ALL_MODULES)" SOLVER
=em IDEAL_CASE
=ideal em_ideal
)
339 ( cd
test/em_b_wave
; /bin
/rm -f wrf.exe
; ln
-s ..
/..
/main
/wrf.exe .
)
340 ( cd
test/em_b_wave
; /bin
/rm -f ideal.exe
; ln
-s ..
/..
/main
/ideal.exe .
)
341 ( cd
test/em_b_wave
; /bin
/rm -f README.namelist
; ln
-s ..
/..
/run
/README.namelist .
)
342 ( cd run
; /bin
/rm -f ideal.exe
; ln
-s ..
/main
/ideal.exe .
)
343 ( cd run
; if
test -f namelist.input
; then \
344 /bin
/cp
-f namelist.input namelist.input.backup.
`date +%Y-%m-%d_%H_%M_%S` ; fi
; \
345 /bin
/rm -f namelist.input
; cp ..
/test/em_b_wave
/namelist.input .
)
346 ( cd run
; /bin
/rm -f input_jet
; ln
-s ..
/test/em_b_wave
/input_jet .
)
348 @echo
"=========================================================================="
349 @echo
"build started: $(START_OF_COMPILE)"
350 @echo
"build completed:" `date`
351 @if
test -e main
/wrf.exe
-a
-e main
/ideal.exe
; then \
353 echo
"---> Executables successfully built <---" ; \
357 echo
"==========================================================================" ; \
361 echo
"---> Problems building executables, look for errors in the build log <---" ; \
363 echo
"==========================================================================" ; \
368 @
/bin
/rm -f ideal.exe
> /dev
/null
2>&1
369 @
/bin
/rm -f wrf.exe
> /dev
/null
2>&1
370 @ echo
'--------------------------------------'
371 ( cd main
; $(MAKE
) RLFLAGS
="$(RLFLAGS)" MODULE_DIRS
="$(ALL_MODULES)" SOLVER
=em IDEAL_CASE
=ideal em_ideal
)
372 ( cd
test/em_les
; /bin
/rm -f wrf.exe
; ln
-s ..
/..
/main
/wrf.exe .
)
373 ( cd
test/em_les
; /bin
/rm -f ideal.exe
; ln
-s ..
/..
/main
/ideal.exe .
)
374 ( cd
test/em_les
; /bin
/rm -f README.namelist
; ln
-s ..
/..
/run
/README.namelist .
)
375 ( cd run
; /bin
/rm -f ideal.exe
; ln
-s ..
/main
/ideal.exe .
)
376 ( cd run
; if
test -f namelist.input
; then \
377 /bin
/cp
-f namelist.input namelist.input.backup.
`date +%Y-%m-%d_%H_%M_%S` ; fi
; \
378 /bin
/rm -f namelist.input
; cp ..
/test/em_les
/namelist.input .
)
379 ( cd run
; /bin
/rm -f input_sounding
; ln
-s ..
/test/em_les
/input_sounding .
)
381 @echo
"=========================================================================="
382 @echo
"build started: $(START_OF_COMPILE)"
383 @echo
"build completed:" `date`
384 @if
test -e main
/wrf.exe
-a
-e main
/ideal.exe
; then \
386 echo
"---> Executables successfully built <---" ; \
390 echo
"==========================================================================" ; \
394 echo
"---> Problems building executables, look for errors in the build log <---" ; \
396 echo
"==========================================================================" ; \
400 em_seabreeze2d_x
: wrf
401 @
/bin
/rm -f ideal.exe
> /dev
/null
2>&1
402 @
/bin
/rm -f wrf.exe
> /dev
/null
2>&1
403 @ echo
'--------------------------------------'
404 ( cd main
; $(MAKE
) RLFLAGS
="$(RLFLAGS)" MODULE_DIRS
="$(ALL_MODULES)" SOLVER
=em IDEAL_CASE
=ideal em_ideal
)
405 ( cd
test/em_seabreeze2d_x
; /bin
/rm -f wrf.exe
; ln
-s ..
/..
/main
/wrf.exe .
)
406 ( cd
test/em_seabreeze2d_x
; /bin
/rm -f ideal.exe
; ln
-s ..
/..
/main
/ideal.exe .
)
407 ( cd
test/em_seabreeze2d_x
; /bin
/rm -f README.namelist
; ln
-s ..
/..
/run
/README.namelist .
; \
408 ln
-sf ..
/..
/run
/LANDUSE.TBL .
; \
409 ln
-sf ..
/..
/run
/RRTM_DATA .
)
410 ( cd run
; /bin
/rm -f ideal.exe
; ln
-s ..
/main
/ideal.exe .
)
411 ( cd run
; if
test -f namelist.input
; then \
412 /bin
/cp
-f namelist.input namelist.input.backup.
`date +%Y-%m-%d_%H_%M_%S` ; fi
; \
413 /bin
/rm -f namelist.input
; cp ..
/test/em_seabreeze2d_x
/namelist.input .
)
414 ( cd run
; /bin
/rm -f input_sounding
; ln
-s ..
/test/em_seabreeze2d_x
/input_sounding .
)
416 @echo
"=========================================================================="
417 @echo
"build started: $(START_OF_COMPILE)"
418 @echo
"build completed:" `date`
419 @if
test -e main
/wrf.exe
-a
-e main
/ideal.exe
; then \
421 echo
"---> Executables successfully built <---" ; \
425 echo
"==========================================================================" ; \
429 echo
"---> Problems building executables, look for errors in the build log <---" ; \
431 echo
"==========================================================================" ; \
436 @ echo
'--------------------------------------'
437 ( cd main
; $(MAKE
) RLFLAGS
="$(RLFLAGS)" MODULE_DIRS
="$(ALL_MODULES)" SOLVER
=em IDEAL_CASE
=ideal em_ideal
)
438 ( cd
test/em_convrad
; /bin
/rm -f wrf.exe
; ln
-s ..
/..
/main
/wrf.exe .
)
439 ( cd
test/em_convrad
; /bin
/rm -f ideal.exe
; ln
-s ..
/..
/main
/ideal.exe .
)
440 ( cd
test/em_convrad
; /bin
/rm -f README.namelist
; ln
-s ..
/..
/run
/README.namelist .
; \
441 ln
-sf ..
/..
/run
/LANDUSE.TBL .
; \
442 ln
-sf ..
/..
/run
/RRTMG_LW_DATA .
; \
443 ln
-sf ..
/..
/run
/RRTMG_SW_DATA .
; \
444 ln
-sf ..
/..
/run
/ozone.formatted .
; \
445 ln
-sf ..
/..
/run
/ozone_lat.formatted .
; \
446 ln
-sf ..
/..
/run
/ozone_plev.formatted .
)
447 ( cd run
; /bin
/rm -f ideal.exe
; ln
-s ..
/main
/ideal.exe .
)
448 ( cd run
; if
test -f namelist.input
; then \
449 /bin
/cp
-f namelist.input namelist.input.backup.
`date +%Y-%m-%d_%H_%M_%S` ; fi
; \
450 /bin
/rm -f namelist.input
; cp ..
/test/em_convrad
/namelist.input .
)
451 ( cd run
; /bin
/rm -f input_sounding
; ln
-s ..
/test/em_convrad
/input_sounding .
)
452 @echo
"build started: $(START_OF_COMPILE)"
453 @echo
"build completed:" `date`
455 em_tropical_cyclone
: wrf
456 @
/bin
/rm -f ideal.exe
> /dev
/null
2>&1
457 @
/bin
/rm -f wrf.exe
> /dev
/null
2>&1
458 @ echo
'--------------------------------------'
459 ( cd main
; $(MAKE
) RLFLAGS
="$(RLFLAGS)" MODULE_DIRS
="$(ALL_MODULES)" SOLVER
=em IDEAL_CASE
=tropical_cyclone em_ideal
)
460 ( cd
test/em_tropical_cyclone
; /bin
/rm -f wrf.exe
; ln
-s ..
/..
/main
/wrf.exe .
)
461 ( cd
test/em_tropical_cyclone
; /bin
/rm -f ideal.exe
; ln
-s ..
/..
/main
/ideal.exe .
)
462 ( cd
test/em_tropical_cyclone
; /bin
/rm -f README.namelist
; ln
-s ..
/..
/run
/README.namelist .
; \
463 ln
-sf ..
/..
/run
/LANDUSE.TBL .
)
464 ( cd run
; /bin
/rm -f ideal.exe
; ln
-s ..
/main
/ideal.exe .
)
465 ( cd run
; if
test -f namelist.input
; then \
466 /bin
/cp
-f namelist.input namelist.input.backup.
`date +%Y-%m-%d_%H_%M_%S` ; fi
; \
467 /bin
/rm -f namelist.input
; cp ..
/test/em_tropical_cyclone
/namelist.input .
)
468 ( cd run
; /bin
/rm -f input_sounding
; ln
-s ..
/test/em_tropical_cyclone
/input_sounding .
)
470 @echo
"=========================================================================="
471 @echo
"build started: $(START_OF_COMPILE)"
472 @echo
"build completed:" `date`
473 @if
test -e main
/wrf.exe
-a
-e main
/ideal.exe
; then \
475 echo
"---> Executables successfully built <---" ; \
479 echo
"==========================================================================" ; \
483 echo
"---> Problems building executables, look for errors in the build log <---" ; \
485 echo
"==========================================================================" ; \
490 @
/bin
/rm -f ideal.exe
> /dev
/null
2>&1
491 @
/bin
/rm -f wrf.exe
> /dev
/null
2>&1
492 @ echo
'--------------------------------------'
493 ( cd main
; $(MAKE
) RLFLAGS
="$(RLFLAGS)" MODULE_DIRS
="$(ALL_MODULES)" SOLVER
=em IDEAL_CASE
=scm_xy em_ideal
)
494 ( cd
test/em_scm_xy
; /bin
/rm -f wrf.exe
; ln
-s ..
/..
/main
/wrf.exe .
)
495 ( cd
test/em_scm_xy
; /bin
/rm -f ideal.exe
; ln
-s ..
/..
/main
/ideal.exe .
)
496 ( cd
test/em_scm_xy
; /bin
/rm -f README.namelist
; ln
-s ..
/..
/run
/README.namelist .
; \
497 ln
-sf ..
/..
/run
/GENPARM.TBL .
; \
498 ln
-sf ..
/..
/run
/LANDUSE.TBL .
; \
499 ln
-sf ..
/..
/run
/SOILPARM.TBL .
; \
500 ln
-sf ..
/..
/run
/VEGPARM.TBL .
; \
501 ln
-sf ..
/..
/run
/RRTM_DATA .
)
502 ( cd run
; /bin
/rm -f ideal.exe
; ln
-s ..
/main
/ideal.exe .
)
503 ( cd run
; if
test -f namelist.input
; then \
504 /bin
/cp
-f namelist.input namelist.input.backup.
`date +%Y-%m-%d_%H_%M_%S` ; fi
; \
505 /bin
/rm -f namelist.input
; cp ..
/test/em_scm_xy
/namelist.input .
)
506 ( cd run
; /bin
/rm -f input_sounding
; ln
-s ..
/test/em_scm_xy
/input_sounding .
)
508 @echo
"=========================================================================="
509 @echo
"build started: $(START_OF_COMPILE)"
510 @echo
"build completed:" `date`
511 @if
test -e main
/wrf.exe
-a
-e main
/ideal.exe
; then \
513 echo
"---> Executables successfully built <---" ; \
517 echo
"==========================================================================" ; \
521 echo
"---> Problems building executables, look for errors in the build log <---" ; \
523 echo
"==========================================================================" ; \
527 convert_em
: framework_only
528 if
[ $(WRF_CONVERT
) -eq
1 ] ; then \
529 ( cd main
; $(MAKE
) RLFLAGS
="$(RLFLAGS)" MODULE_DIRS
="$(ALL_MODULES)" convert_em
) ; \
532 # Link wrf.exe and wrf_SST_ESMF.exe into
533 # test/em_esmf_exp when ESMF_COUPLING is set. wrf.exe
534 # can be used for stand-alone testing in this case.
535 # wrf_SST_ESMF.exe is a coupled application. Note that make
536 # target $(SOLVER)_wrf_SST_ESMF builds wrf_SST_ESMF.exe.
538 @
/bin
/rm -f real.exe
> /dev
/null
2>&1
539 @
/bin
/rm -f tc.exe
> /dev
/null
2>&1
540 @
/bin
/rm -f ndown.exe
> /dev
/null
2>&1
541 @
/bin
/rm -f wrf.exe
> /dev
/null
2>&1
542 @ echo
'--------------------------------------'
543 ( cd main
; $(MAKE
) RLFLAGS
="$(RLFLAGS)" MODULE_DIRS
="$(ALL_MODULES)" SOLVER
=em IDEAL_CASE
=real em_real
)
544 ( cd
test/em_real
; /bin
/rm -f wrf.exe
; ln
-s ..
/..
/main
/wrf.exe .
)
545 if
[ $(ESMF_COUPLING
) -eq
1 ] ; then \
546 ( cd main
; $(MAKE
) RLFLAGS
="$(RLFLAGS)" MODULE_DIRS
="$(ALL_MODULES)" SOLVER
=em IDEAL_CASE
=real em_wrf_SST_ESMF
) ; \
547 ( cd
test/em_esmf_exp
; /bin
/rm -f wrf.exe
; ln
-s ..
/..
/main
/wrf.exe .
) ; \
548 ( cd
test/em_esmf_exp
; /bin
/rm -f wrf_SST_ESMF.exe
; ln
-s ..
/..
/main
/wrf_SST_ESMF.exe .
) ; \
549 ( cd
test/em_esmf_exp
; /bin
/rm -f real.exe
; ln
-s ..
/..
/main
/real.exe .
) ; \
550 ( cd
test/em_esmf_exp
; /bin
/rm -f README.namelist
; ln
-s ..
/..
/run
/README.namelist .
) ; \
551 ( cd
test/em_esmf_exp
; /bin
/rm -f ETAMPNEW_DATA.expanded_rain ETAMPNEW_DATA RRTM_DATA RRTMG_LW_DATA RRTMG_SW_DATA
; \
552 ln
-sf ..
/..
/run
/ETAMPNEW_DATA .
; \
553 ln
-sf ..
/..
/run
/ETAMPNEW_DATA.expanded_rain .
; \
554 ln
-sf ..
/..
/run
/RRTM_DATA .
; \
555 ln
-sf ..
/..
/run
/RRTMG_LW_DATA .
; \
556 ln
-sf ..
/..
/run
/RRTMG_SW_DATA .
; \
557 ln
-sf ..
/..
/run
/CAM_ABS_DATA .
; \
558 ln
-sf ..
/..
/run
/CAM_AEROPT_DATA .
; \
559 ln
-sf ..
/..
/run
/CAMtr_volume_mixing_ratio.RCP4.5 .
; \
560 ln
-sf ..
/..
/run
/CAMtr_volume_mixing_ratio.RCP6 .
; \
561 ln
-sf ..
/..
/run
/CAMtr_volume_mixing_ratio.RCP8.5 .
; \
562 ln
-sf ..
/..
/run
/CAMtr_volume_mixing_ratio.A1B .
; \
563 ln
-sf ..
/..
/run
/CAMtr_volume_mixing_ratio.A2 .
; \
564 ln
-sf ..
/..
/run
/CAMtr_volume_mixing_ratio.SSP119 .
; \
565 ln
-sf ..
/..
/run
/CAMtr_volume_mixing_ratio.SSP126 .
; \
566 ln
-sf ..
/..
/run
/CAMtr_volume_mixing_ratio.SSP245 .
; \
567 ln
-sf ..
/..
/run
/CAMtr_volume_mixing_ratio.SSP245 CAMtr_volume_mixing_ratio
; \
568 ln
-sf ..
/..
/run
/CAMtr_volume_mixing_ratio.SSP370 .
; \
569 ln
-sf ..
/..
/run
/CAMtr_volume_mixing_ratio.SSP585 .
; \
570 ln
-sf ..
/..
/run
/CLM_ALB_ICE_DFS_DATA .
; \
571 ln
-sf ..
/..
/run
/CLM_ALB_ICE_DRC_DATA .
; \
572 ln
-sf ..
/..
/run
/CLM_ASM_ICE_DFS_DATA .
; \
573 ln
-sf ..
/..
/run
/CLM_ASM_ICE_DRC_DATA .
; \
574 ln
-sf ..
/..
/run
/CLM_DRDSDT0_DATA .
; \
575 ln
-sf ..
/..
/run
/CLM_EXT_ICE_DFS_DATA .
; \
576 ln
-sf ..
/..
/run
/CLM_EXT_ICE_DRC_DATA .
; \
577 ln
-sf ..
/..
/run
/CLM_KAPPA_DATA .
; \
578 ln
-sf ..
/..
/run
/CLM_TAU_DATA .
; \
579 ln
-sf ..
/..
/run
/ozone.formatted .
; \
580 ln
-sf ..
/..
/run
/ozone_lat.formatted .
; \
581 ln
-sf ..
/..
/run
/ozone_plev.formatted .
; \
582 ln
-sf ..
/..
/run
/aerosol.formatted .
; \
583 ln
-sf ..
/..
/run
/aerosol_lat.formatted .
; \
584 ln
-sf ..
/..
/run
/aerosol_lon.formatted .
; \
585 ln
-sf ..
/..
/run
/aerosol_plev.formatted .
; \
586 ln
-sf ..
/..
/run
/eclipse_besselian_elements.dat .
; \
587 ln
-sf ..
/..
/run
/CCN_ACTIVATE.BIN .
; \
588 ln
-sf ..
/..
/run
/p3_lookupTable_1.dat-v5.4_2momI .
; \
589 ln
-sf ..
/..
/run
/p3_lookupTable_1.dat-v5.4_3momI .
; \
590 ln
-sf ..
/..
/run
/p3_lookupTable_2.dat-v5.3 .
; \
591 ln
-sf ..
/..
/run
/HLC.TBL .
; \
592 ln
-sf ..
/..
/run
/wind-turbine-1.tbl .
; \
593 ln
-sf ..
/..
/run
/ishmael-gamma-tab.bin .
; \
594 ln
-sf ..
/..
/run
/ishmael-qi-qc.bin .
; \
595 ln
-sf ..
/..
/run
/ishmael-qi-qr.bin .
; \
596 ln
-sf ..
/..
/run
/BROADBAND_CLOUD_GODDARD.bin .
; \
597 ln
-sf ..
/..
/run
/STOCHPERT.TBL .
; \
598 if
[ $(RWORDSIZE
) -eq
8 ] ; then \
599 ln
-sf ..
/..
/run
/ETAMPNEW_DATA_DBL ETAMPNEW_DATA
; \
600 ln
-sf ..
/..
/run
/ETAMPNEW_DATA.expanded_rain_DBL ETAMPNEW_DATA.expanded_rain
; \
601 ln
-sf ..
/..
/run
/RRTM_DATA_DBL RRTM_DATA
; \
602 ln
-sf ..
/..
/run
/RRTMG_LW_DATA_DBL RRTMG_LW_DATA
; \
603 ln
-sf ..
/..
/run
/RRTMG_SW_DATA_DBL RRTMG_SW_DATA
; \
605 ( cd
test/em_esmf_exp
; /bin
/rm -f GENPARM.TBL
; ln
-s ..
/..
/run
/GENPARM.TBL .
) ; \
606 ( cd
test/em_esmf_exp
; /bin
/rm -f LANDUSE.TBL
; ln
-s ..
/..
/run
/LANDUSE.TBL .
) ; \
607 ( cd
test/em_esmf_exp
; /bin
/rm -f SOILPARM.TBL
; ln
-s ..
/..
/run
/SOILPARM.TBL .
) ; \
608 ( cd
test/em_esmf_exp
; /bin
/rm -f URBPARM.TBL
; ln
-s ..
/..
/run
/URBPARM.TBL .
) ; \
609 ( cd
test/em_esmf_exp
; /bin
/rm -f URBPARM_LCZ.TBL
; ln
-s ..
/..
/run
/URBPARM_LCZ.TBL .
) ; \
610 ( cd
test/em_esmf_exp
; /bin
/rm -f VEGPARM.TBL
; ln
-s ..
/..
/run
/VEGPARM.TBL .
) ; \
611 ( cd
test/em_esmf_exp
; /bin
/rm -f MPTABLE.TBL
; ln
-s ..
/..
/run
/MPTABLE.TBL .
) ; \
612 ( cd
test/em_esmf_exp
; /bin
/rm -f tr49t67
; ln
-s ..
/..
/run
/tr49t67 .
) ; \
613 ( cd
test/em_esmf_exp
; /bin
/rm -f tr49t85
; ln
-s ..
/..
/run
/tr49t85 .
) ; \
614 ( cd
test/em_esmf_exp
; /bin
/rm -f tr67t85
; ln
-s ..
/..
/run
/tr67t85 .
) ; \
615 ( cd
test/em_esmf_exp
; /bin
/rm -f gribmap.txt
; ln
-s ..
/..
/run
/gribmap.txt .
) ; \
616 ( cd
test/em_esmf_exp
; /bin
/rm -f grib2map.tbl
; ln
-s ..
/..
/run
/grib2map.tbl .
) ; \
618 ( cd
test/em_real
; /bin
/rm -f real.exe
; ln
-s ..
/..
/main
/real.exe .
)
619 ( cd
test/em_real
; /bin
/rm -f tc.exe
; ln
-s ..
/..
/main
/tc.exe .
)
620 ( cd
test/em_real
; /bin
/rm -f ndown.exe
; ln
-s ..
/..
/main
/ndown.exe .
)
621 ( cd
test/em_real
; /bin
/rm -f README.namelist
; ln
-s ..
/..
/run
/README.namelist .
)
622 ( cd
test/em_real
; /bin
/rm -f README.physics_files
; ln
-s ..
/..
/run
/README.physics_files .
)
623 ( cd
test/em_real
; /bin
/rm -f ETAMPNEW_DATA.expanded_rain ETAMPNEW_DATA RRTM_DATA RRTMG_LW_DATA RRTMG_SW_DATA
; \
624 ln
-sf ..
/..
/run
/ETAMPNEW_DATA .
; \
625 ln
-sf ..
/..
/run
/ETAMPNEW_DATA.expanded_rain .
; \
626 ln
-sf ..
/..
/run
/RRTM_DATA .
; \
627 ln
-sf ..
/..
/run
/RRTMG_LW_DATA .
; \
628 ln
-sf ..
/..
/run
/RRTMG_SW_DATA .
; \
629 ln
-sf ..
/..
/run
/CAM_ABS_DATA .
; \
630 ln
-sf ..
/..
/run
/CAM_AEROPT_DATA .
; \
631 ln
-sf ..
/..
/run
/CAMtr_volume_mixing_ratio.RCP4.5 .
; \
632 ln
-sf ..
/..
/run
/CAMtr_volume_mixing_ratio.RCP6 .
; \
633 ln
-sf ..
/..
/run
/CAMtr_volume_mixing_ratio.RCP8.5 .
; \
634 ln
-sf ..
/..
/run
/CAMtr_volume_mixing_ratio.A1B .
; \
635 ln
-sf ..
/..
/run
/CAMtr_volume_mixing_ratio.A2 .
; \
636 ln
-sf ..
/..
/run
/CAMtr_volume_mixing_ratio.SSP119 .
; \
637 ln
-sf ..
/..
/run
/CAMtr_volume_mixing_ratio.SSP126 .
; \
638 ln
-sf ..
/..
/run
/CAMtr_volume_mixing_ratio.SSP245 .
; \
639 ln
-sf ..
/..
/run
/CAMtr_volume_mixing_ratio.SSP245 CAMtr_volume_mixing_ratio
; \
640 ln
-sf ..
/..
/run
/CAMtr_volume_mixing_ratio.SSP370 .
; \
641 ln
-sf ..
/..
/run
/CAMtr_volume_mixing_ratio.SSP585 .
; \
642 ln
-sf ..
/..
/run
/CLM_ALB_ICE_DFS_DATA .
; \
643 ln
-sf ..
/..
/run
/CLM_ALB_ICE_DRC_DATA .
; \
644 ln
-sf ..
/..
/run
/CLM_ASM_ICE_DFS_DATA .
; \
645 ln
-sf ..
/..
/run
/CLM_ASM_ICE_DRC_DATA .
; \
646 ln
-sf ..
/..
/run
/CLM_DRDSDT0_DATA .
; \
647 ln
-sf ..
/..
/run
/CLM_EXT_ICE_DFS_DATA .
; \
648 ln
-sf ..
/..
/run
/CLM_EXT_ICE_DRC_DATA .
; \
649 ln
-sf ..
/..
/run
/CLM_KAPPA_DATA .
; \
650 ln
-sf ..
/..
/run
/CLM_TAU_DATA .
; \
651 ln
-sf ..
/..
/run
/ozone.formatted .
; \
652 ln
-sf ..
/..
/run
/ozone_lat.formatted .
; \
653 ln
-sf ..
/..
/run
/ozone_plev.formatted .
; \
654 ln
-sf ..
/..
/run
/aerosol.formatted .
; \
655 ln
-sf ..
/..
/run
/aerosol_lat.formatted .
; \
656 ln
-sf ..
/..
/run
/aerosol_lon.formatted .
; \
657 ln
-sf ..
/..
/run
/aerosol_plev.formatted .
; \
658 ln
-sf ..
/..
/run
/eclipse_besselian_elements.dat .
; \
659 ln
-sf ..
/..
/run
/capacity.asc .
; \
660 ln
-sf ..
/..
/run
/coeff_p.asc .
; \
661 ln
-sf ..
/..
/run
/coeff_q.asc .
; \
662 ln
-sf ..
/..
/run
/constants.asc .
; \
663 ln
-sf ..
/..
/run
/masses.asc .
; \
664 ln
-sf ..
/..
/run
/termvels.asc .
; \
665 ln
-sf ..
/..
/run
/kernels.asc_s_0_03_0_9 .
; \
666 ln
-sf ..
/..
/run
/kernels_z.asc .
; \
667 ln
-sf ..
/..
/run
/bulkdens.asc_s_0_03_0_9 .
; \
668 ln
-sf ..
/..
/run
/bulkradii.asc_s_0_03_0_9 .
; \
669 ln
-sf ..
/..
/run
/CCN_ACTIVATE.BIN .
; \
670 ln
-sf ..
/..
/run
/p3_lookupTable_1.dat-v5.4_2momI .
; \
671 ln
-sf ..
/..
/run
/p3_lookupTable_1.dat-v5.4_3momI .
; \
672 ln
-sf ..
/..
/run
/p3_lookupTable_2.dat-v5.3 .
; \
673 ln
-sf ..
/..
/run
/HLC.TBL .
; \
674 ln
-sf ..
/..
/run
/wind-turbine-1.tbl .
; \
675 ln
-sf ..
/..
/run
/ishmael-gamma-tab.bin .
; \
676 ln
-sf ..
/..
/run
/ishmael-qi-qc.bin .
; \
677 ln
-sf ..
/..
/run
/ishmael-qi-qr.bin .
; \
678 ln
-sf ..
/..
/run
/BROADBAND_CLOUD_GODDARD.bin .
; \
679 ln
-sf ..
/..
/run
/STOCHPERT.TBL .
; \
680 if
[ $(RWORDSIZE
) -eq
8 ] ; then \
681 ln
-sf ..
/..
/run
/ETAMPNEW_DATA_DBL ETAMPNEW_DATA
; \
682 ln
-sf ..
/..
/run
/ETAMPNEW_DATA.expanded_rain_DBL ETAMPNEW_DATA.expanded_rain
; \
683 ln
-sf ..
/..
/run
/RRTM_DATA_DBL RRTM_DATA
; \
684 ln
-sf ..
/..
/run
/RRTMG_LW_DATA_DBL RRTMG_LW_DATA
; \
685 ln
-sf ..
/..
/run
/RRTMG_SW_DATA_DBL RRTMG_SW_DATA
; \
687 ( cd
test/em_real
; if
test -d ..
/..
/run
/SBM_input_33
; then \
688 ln
-sf ..
/..
/run
/SBM_input_33 .
; \
689 ln
-sf ..
/..
/run
/scattering_tables_2layer_high_quad_1dT_1
%fw_110 .
; \
691 ( cd
test/em_real
; /bin
/rm -f GENPARM.TBL
; ln
-s ..
/..
/run
/GENPARM.TBL .
)
692 ( cd
test/em_real
; /bin
/rm -f LANDUSE.TBL
; ln
-s ..
/..
/run
/LANDUSE.TBL .
)
693 ( cd
test/em_real
; /bin
/rm -f SOILPARM.TBL
; ln
-s ..
/..
/run
/SOILPARM.TBL .
)
694 ( cd
test/em_real
; /bin
/rm -f URBPARM.TBL
; ln
-s ..
/..
/run
/URBPARM.TBL .
)
695 ( cd
test/em_real
; /bin
/rm -f URBPARM_LCZ.TBL
; ln
-s ..
/..
/run
/URBPARM_LCZ.TBL .
)
696 ( cd
test/em_real
; /bin
/rm -f VEGPARM.TBL
; ln
-s ..
/..
/run
/VEGPARM.TBL .
)
697 ( cd
test/em_real
; /bin
/rm -f MPTABLE.TBL
; ln
-s ..
/..
/run
/MPTABLE.TBL .
)
698 ( cd
test/em_real
; /bin
/rm -f tr49t67
; ln
-s ..
/..
/run
/tr49t67 .
)
699 ( cd
test/em_real
; /bin
/rm -f tr49t85
; ln
-s ..
/..
/run
/tr49t85 .
)
700 ( cd
test/em_real
; /bin
/rm -f tr67t85
; ln
-s ..
/..
/run
/tr67t85 .
)
701 ( cd
test/em_real
; /bin
/rm -f gribmap.txt
; ln
-s ..
/..
/run
/gribmap.txt .
)
702 ( cd
test/em_real
; /bin
/rm -f grib2map.tbl
; ln
-s ..
/..
/run
/grib2map.tbl .
)
703 ( cd run
; /bin
/rm -f real.exe
; ln
-s ..
/main
/real.exe .
)
704 ( cd run
; /bin
/rm -f tc.exe
; ln
-s ..
/main
/tc.exe .
)
705 ( cd run
; /bin
/rm -f ndown.exe
; ln
-s ..
/main
/ndown.exe .
)
706 ( cd run
; if
test -f namelist.input
; then \
707 /bin
/cp
-f namelist.input namelist.input.backup.
`date +%Y-%m-%d_%H_%M_%S` ; fi
; \
708 /bin
/rm -f namelist.input
; cp ..
/test/em_real
/namelist.input .
)
710 @echo
"=========================================================================="
711 @echo
"build started: $(START_OF_COMPILE)"
712 @echo
"build completed:" `date`
713 @if
test -e main
/wrf.exe
-a
-e main
/real.exe
-a
-e main
/ndown.exe
-a
-e main
/tc.exe
; then \
715 echo
"---> Executables successfully built <---" ; \
719 echo
"==========================================================================" ; \
723 echo
"---> Problems building executables, look for errors in the build log <---" ; \
725 echo
"==========================================================================" ; \
731 @
/bin
/rm -f ideal.exe
> /dev
/null
2>&1
732 @
/bin
/rm -f wrf.exe
> /dev
/null
2>&1
733 @ echo
'--------------------------------------'
734 ( cd main
; $(MAKE
) RLFLAGS
="$(RLFLAGS)" MODULE_DIRS
="$(ALL_MODULES)" SOLVER
=em IDEAL_CASE
=ideal em_ideal
)
735 ( cd
test/em_hill2d_x
; /bin
/rm -f wrf.exe
; ln
-s ..
/..
/main
/wrf.exe .
)
736 ( cd
test/em_hill2d_x
; /bin
/rm -f ideal.exe
; ln
-s ..
/..
/main
/ideal.exe .
)
737 ( cd
test/em_hill2d_x
; /bin
/rm -f README.namelist
; ln
-s ..
/..
/run
/README.namelist .
)
738 ( cd run
; /bin
/rm -f ideal.exe
; ln
-s ..
/main
/ideal.exe .
)
739 ( cd run
; if
test -f namelist.input
; then \
740 /bin
/cp
-f namelist.input namelist.input.backup.
`date +%Y-%m-%d_%H_%M_%S` ; fi
; \
741 /bin
/rm -f namelist.input
; cp ..
/test/em_hill2d_x
/namelist.input .
)
742 ( cd run
; /bin
/rm -f input_sounding
; ln
-s ..
/test/em_hill2d_x
/input_sounding .
)
744 @echo
"=========================================================================="
745 @echo
"build started: $(START_OF_COMPILE)"
746 @echo
"build completed:" `date`
747 @if
test -e main
/wrf.exe
-a
-e main
/ideal.exe
; then \
749 echo
"---> Executables successfully built <---" ; \
753 echo
"==========================================================================" ; \
757 echo
"---> Problems building executables, look for errors in the build log <---" ; \
759 echo
"==========================================================================" ; \
764 @
/bin
/rm -f ideal.exe
> /dev
/null
2>&1
765 @
/bin
/rm -f wrf.exe
> /dev
/null
2>&1
766 @ echo
'--------------------------------------'
767 ( cd main
; $(MAKE
) RLFLAGS
="$(RLFLAGS)" MODULE_DIRS
="$(ALL_MODULES)" SOLVER
=em IDEAL_CASE
=ideal em_ideal
)
768 ( cd
test/em_grav2d_x
; /bin
/rm -f wrf.exe
; ln
-s ..
/..
/main
/wrf.exe .
)
769 ( cd
test/em_grav2d_x
; /bin
/rm -f ideal.exe
; ln
-s ..
/..
/main
/ideal.exe .
)
770 ( cd
test/em_grav2d_x
; /bin
/rm -f README.namelist
; ln
-s ..
/..
/run
/README.namelist .
)
771 ( cd run
; /bin
/rm -f ideal.exe
; ln
-s ..
/main
/ideal.exe .
)
772 ( cd run
; if
test -f namelist.input
; then \
773 /bin
/cp
-f namelist.input namelist.input.backup.
`date +%Y-%m-%d_%H_%M_%S` ; fi
; \
774 /bin
/rm -f namelist.input
; cp ..
/test/em_grav2d_x
/namelist.input .
)
775 ( cd run
; /bin
/rm -f input_sounding
; ln
-s ..
/test/em_grav2d_x
/input_sounding .
)
777 @echo
"=========================================================================="
778 @echo
"build started: $(START_OF_COMPILE)"
779 @echo
"build completed:" `date`
780 @if
test -e main
/wrf.exe
-a
-e main
/ideal.exe
; then \
782 echo
"---> Executables successfully built <---" ; \
786 echo
"==========================================================================" ; \
790 echo
"---> Problems building executables, look for errors in the build log <---" ; \
792 echo
"==========================================================================" ; \
797 @
/bin
/rm -f ideal.exe
> /dev
/null
2>&1
798 @
/bin
/rm -f wrf.exe
> /dev
/null
2>&1
799 @ echo
'--------------------------------------'
800 ( cd main
; $(MAKE
) RLFLAGS
="$(RLFLAGS)" MODULE_DIRS
="$(ALL_MODULES)" SOLVER
=em IDEAL_CASE
=heldsuarez em_ideal
)
801 ( cd
test/em_heldsuarez
; /bin
/rm -f wrf.exe
; ln
-s ..
/..
/main
/wrf.exe .
)
802 ( cd
test/em_heldsuarez
; /bin
/rm -f ideal.exe
; ln
-s ..
/..
/main
/ideal.exe .
)
803 ( cd
test/em_heldsuarez
; /bin
/rm -f README.namelist
; ln
-s ..
/..
/run
/README.namelist .
)
804 ( cd run
; /bin
/rm -f ideal.exe
; ln
-s ..
/main
/ideal.exe .
)
805 ( cd run
; if
test -f namelist.input
; then \
806 /bin
/cp
-f namelist.input namelist.input.backup.
`date +%Y-%m-%d_%H_%M_%S` ; fi
; \
807 /bin
/rm -f namelist.input
; cp ..
/test/em_heldsuarez
/namelist.input .
)
809 @echo
"=========================================================================="
810 @echo
"build started: $(START_OF_COMPILE)"
811 @echo
"build completed:" `date`
812 @if
test -e main
/wrf.exe
-a
-e main
/ideal.exe
; then \
814 echo
"---> Executables successfully built <---" ; \
818 echo
"==========================================================================" ; \
822 echo
"---> Problems building executables, look for errors in the build log <---" ; \
824 echo
"==========================================================================" ; \
828 #### anthropogenic emissions converter
831 @ echo
'--------------------------------------'
832 ( cd chem
; $(MAKE
) MODULE_DIRS
="$(ALL_MODULES)" SOLVER
=em IDEAL_CASE
=real convert_emiss
)
833 ( cd
test/em_real
; /bin
/rm -f convert_emiss.exe
; ln
-s ..
/..
/chem
/convert_emiss.exe .
)
834 ( cd
test/em_real
; /bin
/rm -f README.namelist
; ln
-s ..
/..
/run
/README.namelist .
)
835 ( cd run
; if
test -f namelist.input
; then \
836 /bin
/cp
-f namelist.input namelist.input.backup.
`date +%Y-%m-%d_%H_%M_%S` ; fi
; \
837 /bin
/rm -f namelist.input
; cp ..
/test/em_real
/namelist.input .
)
839 #### emissions opt 3 converter
842 @ echo
'--------------------------------------'
843 ( cd chem
; $(MAKE
) MODULE_DIRS
="$(ALL_MODULES)" SOLVER
=em IDEAL_CASE
=real convert_fireemiss
)
844 ( cd
test/em_real
; /bin
/rm -f convert_fireemiss.exe
; ln
-s ..
/..
/chem
/convert_fireemiss.exe .
)
845 ( cd
test/em_real
; /bin
/rm -f README.namelist
; ln
-s ..
/..
/run
/README.namelist .
)
846 ( cd run
; if
test -f namelist.input
; then \
847 /bin
/cp
-f namelist.input namelist.input.backup.
`date +%Y-%m-%d_%H_%M_%S` ; fi
; \
848 /bin
/rm -f namelist.input
; cp ..
/test/em_real
/namelist.input .
)
850 #### biogenic emissions converter
853 @ echo
'--------------------------------------'
854 ( cd chem
; $(MAKE
) MODULE_DIRS
="$(ALL_MODULES)" SOLVER
=em IDEAL_CASE
=real convert_bioemiss
)
855 ( cd
test/em_real
; /bin
/rm -f convert_bioemiss.exe
; ln
-s ..
/..
/chem
/convert_bioemiss.exe .
)
856 ( cd
test/em_real
; /bin
/rm -f README.namelist
; ln
-s ..
/..
/run
/README.namelist .
)
857 ( cd run
; if
test -f namelist.input
; then \
858 /bin
/cp
-f namelist.input namelist.input.backup.
`date +%Y-%m-%d_%H_%M_%S` ; fi
; \
859 /bin
/rm -f namelist.input
; cp ..
/test/em_real
/namelist.input .
)
861 bioemiss_conv_megan2
: wrf
862 @ echo
'--------------------------------------'
863 ( cd chem
; $(MAKE
) MODULE_DIRS
="$(ALL_MODULES)" SOLVER
=em IDEAL_CASE
=real convert_bioemiss_megan2
)
864 ( cd
test/em_real
; /bin
/rm -f convert_bioemiss_megan2.exe
; ln
-s ..
/..
/chem
/convert_bioemiss_megan2.exe .
)
865 ( cd
test/em_real
; /bin
/rm -f README.namelist
; ln
-s ..
/..
/run
/README.namelist .
)
866 ( cd run
; if
test -f namelist.input
; then \
867 /bin
/cp
-f namelist.input namelist.input.backup.
`date +%Y-%m-%d_%H_%M_%S` ; fi
; \
868 /bin
/rm -f namelist.input
; cp ..
/test/em_real
/namelist.input .
)
870 #### DMS emissions converter
873 @ echo
'--------------------------------------'
874 ( cd chem
; $(MAKE
) MODULE_DIRS
="$(ALL_MODULES)" SOLVER
=em IDEAL_CASE
=real convert_dms
)
875 ( cd
test/em_real
; /bin
/rm -f convert_dms.exe
; ln
-s ..
/..
/chem
/convert_dms.exe .
)
876 ( cd
test/em_real
; /bin
/rm -f README.namelist
; ln
-s ..
/..
/run
/README.namelist .
)
877 ( cd run
; if
test -f namelist.input
; then \
878 /bin
/cp
-f namelist.input namelist.input.backup.
`date +%Y-%m-%d_%H_%M_%S` ; fi
; \
879 /bin
/rm -f namelist.input
; cp ..
/test/em_real
/namelist.input .
)
882 #### Dust errosion factor emissions converter
885 @ echo
'--------------------------------------'
886 ( cd chem
; $(MAKE
) MODULE_DIRS
="$(ALL_MODULES)" SOLVER
=em IDEAL_CASE
=real convert_dust
)
887 ( cd
test/em_real
; /bin
/rm -f convert_dust.exe
; ln
-s ..
/..
/chem
/convert_dust.exe .
)
888 ( cd
test/em_real
; /bin
/rm -f README.namelist
; ln
-s ..
/..
/run
/README.namelist .
)
889 ( cd run
; if
test -f namelist.input
; then \
890 /bin
/cp
-f namelist.input namelist.input.backup.
`date +%Y-%m-%d_%H_%M_%S` ; fi
; \
891 /bin
/rm -f namelist.input
; cp ..
/test/em_real
/namelist.input .
)
893 #### GOCART background state for oh, no3 and h2o2 converter
896 @ echo
'--------------------------------------'
897 ( cd chem
; $(MAKE
) MODULE_DIRS
="$(ALL_MODULES)" SOLVER
=em IDEAL_CASE
=real convert_gocart
)
898 ( cd
test/em_real
; /bin
/rm -f convert_gocart.exe
; ln
-s ..
/..
/chem
/convert_gocart.exe .
)
899 ( cd
test/em_real
; /bin
/rm -f README.namelist
; ln
-s ..
/..
/run
/README.namelist .
)
900 ( cd run
; if
test -f namelist.input
; then \
901 /bin
/cp
-f namelist.input namelist.input.backup.
`date +%Y-%m-%d_%H_%M_%S` ; fi
; \
902 /bin
/rm -f namelist.input
; cp ..
/test/em_real
/namelist.input .
)
906 @ echo
'--------------------------------------'
907 ( cd tools
; $(MAKE
) standard.exe
)
909 ( $(MAKE
) MODULE_DIRS
="$(ALL_MODULES)" toolsdir
)
910 ( cd frame
; $(MAKE
) module_driver_constants.o pack_utils.o module_machine.o module_internal_header_util.o wrf_debug.o
)
911 ( cd frame
; $(AR
) $(ARFLAGS
) ..
/main
/libwrflib.a module_driver_constants.o pack_utils.o module_machine.o \
912 module_internal_header_util.o module_wrf_error.o wrf_debug.o
)
915 @ echo
'--------------------------------------'
916 if
[ $(WRF_PLUS_CORE
) -eq
0 ] ; then \
917 ( cd frame
; $(MAKE
) externals
) ; \
919 ( cd frame
; $(MAKE
) PLUSFLAG
="-DWRFPLUS=1" externals
) ; \
923 @ echo
'--------------------------------------'
924 ( cd frame
; $(MAKE
) $(J
) LLIST
="$(LINKLIST)" framework
; \
925 cd ..
/external
/io_netcdf
; \
926 $(MAKE
) NETCDFPATH
="$(NETCDFPATH)" NETCDF4_DEP_LIB
="$(NETCDF4_DEP_LIB)" \
927 FC
="$(FC) $(FCBASEOPTS) $(PROMOTION) $(FCDEBUG) $(OMP)" RANLIB
="$(RANLIB)" \
928 CPP
="$(CPP)" LDFLAGS
="$(LDFLAGS)" TRADFLAG
="$(TRADFLAG)" ESMF_IO_LIB_EXT
="$(ESMF_IO_LIB_EXT)" \
929 LIB_LOCAL
="$(LIB_LOCAL)" \
930 ESMF_MOD_DEPENDENCE
="$(ESMF_MOD_DEPENDENCE)" AR
="INTERNAL_BUILD_ERROR_SHOULD_NOT_NEED_AR" diffwrf
; \
932 $(MAKE
) NETCDFPATH
="$(NETCDFPATH)" NETCDF4_DEP_LIB
="$(NETCDF4_DEP_LIB)" \
933 FC
="$(SFC) $(FCBASEOPTS) $(PROMOTION) $(FCDEBUG) $(OMP)" RANLIB
="$(RANLIB)" \
934 CPP
="$(CPP)" LDFLAGS
="$(LDFLAGS)" TRADFLAG
="$(TRADFLAG)" ESMF_IO_LIB_EXT
="$(ESMF_IO_LIB_EXT)" \
935 LIB_LOCAL
="$(LIB_LOCAL)" \
936 ESMF_MOD_DEPENDENCE
="$(ESMF_MOD_DEPENDENCE)" AR
="INTERNAL_BUILD_ERROR_SHOULD_NOT_NEED_AR"; \
937 cd ..
/io_netcdfpar
; \
938 $(NETCDFPAR_BUILD
) $(MAKE
) NETCDFPARPATH
="$(NETCDFPATH)" NETCDF4_DEP_LIB
="$(NETCDF4_DEP_LIB)" \
939 FC
="$(FC) $(FCBASEOPTS) $(PROMOTION) $(FCDEBUG) $(OMP)" RANLIB
="$(RANLIB)" \
940 CPP
="$(CPP)" LDFLAGS
="$(LDFLAGS)" TRADFLAG
="$(TRADFLAG)" ESMF_IO_LIB_EXT
="$(ESMF_IO_LIB_EXT)" \
941 LIB_LOCAL
="$(LIB_LOCAL)" \
942 ESMF_MOD_DEPENDENCE
="$(ESMF_MOD_DEPENDENCE)" AR
="INTERNAL_BUILD_ERROR_SHOULD_NOT_NEED_AR" diffwrf
; \
943 cd ..
/io_netcdfpar
; \
944 $(NETCDFPAR_BUILD
) $(MAKE
) NETCDFPARPATH
="$(NETCDFPATH)" NETCDF4_DEP_LIB
="$(NETCDF4_DEP_LIB)" \
945 FC
="$(SFC) $(FCBASEOPTS) $(PROMOTION) $(FCDEBUG) $(OMP)" RANLIB
="$(RANLIB)" \
946 CPP
="$(CPP)" LDFLAGS
="$(LDFLAGS)" TRADFLAG
="$(TRADFLAG)" ESMF_IO_LIB_EXT
="$(ESMF_IO_LIB_EXT)" \
947 LIB_LOCAL
="$(LIB_LOCAL)" \
948 ESMF_MOD_DEPENDENCE
="$(ESMF_MOD_DEPENDENCE)" AR
="INTERNAL_BUILD_ERROR_SHOULD_NOT_NEED_AR"; \
950 echo SKIPPING PIO BUILD
$(MAKE
) NETCDFPATH
="$(PNETCDFPATH)" NETCDF4_DEP_LIB
="$(NETCDF4_DEP_LIB)" \
951 FC
="$(SFC) $(FCBASEOPTS) $(PROMOTION) $(FCDEBUG) $(OMP)" RANLIB
="$(RANLIB)" \
952 CPP
="$(CPP)" LDFLAGS
="$(LDFLAGS)" TRADFLAG
="$(TRADFLAG)" ESMF_IO_LIB_EXT
="$(ESMF_IO_LIB_EXT)" \
953 LIB_LOCAL
="$(LIB_LOCAL)" \
954 ESMF_MOD_DEPENDENCE
="$(ESMF_MOD_DEPENDENCE)" AR
="INTERNAL_BUILD_ERROR_SHOULD_NOT_NEED_AR"; \
956 $(MAKE
) SFC
="$(SFC) $(FCBASEOPTS)" \
957 FC
="$(SFC) $(FCBASEOPTS) $(PROMOTION) $(FCDEBUG) $(OMP)" \
958 RANLIB
="$(RANLIB)" CPP
="$(CPP) $(ARCH_LOCAL)" DM_FC
="$(DM_FC) $(FCBASEOPTS)"\
959 TRADFLAG
="$(TRADFLAG)" ESMF_IO_LIB_EXT
="$(ESMF_IO_LIB_EXT)" \
960 ESMF_MOD_DEPENDENCE
="$(ESMF_MOD_DEPENDENCE)" AR
="INTERNAL_BUILD_ERROR_SHOULD_NOT_NEED_AR" diffwrf
; \
964 @ echo
'--------------------------------------'
965 ( cd frame
; $(MAKE
) $(J
) LLIST
="$(MODLL)" framework
; \
966 cd ..
/external
/io_netcdf
; \
967 $(MAKE
) NETCDFPATH
="$(NETCDFPATH)" NETCDF4_DEP_LIB
="$(NETCDF4_DEP_LIB)" \
968 FC
="$(FC) $(FCBASEOPTS) $(PROMOTION) $(FCDEBUG) $(OMP)" RANLIB
="$(RANLIB)" \
969 CPP
="$(CPP)" LDFLAGS
="$(LDFLAGS)" TRADFLAG
="$(TRADFLAG)" ESMF_IO_LIB_EXT
="$(ESMF_IO_LIB_EXT)" \
970 LIB_LOCAL
="$(LIB_LOCAL)" \
971 ESMF_MOD_DEPENDENCE
="$(ESMF_MOD_DEPENDENCE)" AR
="INTERNAL_BUILD_ERROR_SHOULD_NOT_NEED_AR" diffwrf
; \
973 $(MAKE
) NETCDFPATH
="$(NETCDFPATH)" NETCDF4_DEP_LIB
="$(NETCDF4_DEP_LIB)" \
974 FC
="$(SFC) $(FCBASEOPTS) $(PROMOTION) $(FCDEBUG) $(OMP)" RANLIB
="$(RANLIB)" \
975 CPP
="$(CPP)" LDFLAGS
="$(LDFLAGS)" TRADFLAG
="$(TRADFLAG)" ESMF_IO_LIB_EXT
="$(ESMF_IO_LIB_EXT)" \
976 LIB_LOCAL
="$(LIB_LOCAL)" \
977 ESMF_MOD_DEPENDENCE
="$(ESMF_MOD_DEPENDENCE)" AR
="INTERNAL_BUILD_ERROR_SHOULD_NOT_NEED_AR"; \
979 echo SKIPPING PIO BUILD
$(MAKE
) NETCDFPATH
="$(PNETCDFPATH)" \
980 FC
="$(SFC) $(FCBASEOPTS) $(PROMOTION) $(FCDEBUG) $(OMP)" RANLIB
="$(RANLIB)" \
981 CPP
="$(CPP)" LDFLAGS
="$(LDFLAGS)" TRADFLAG
="$(TRADFLAG)" ESMF_IO_LIB_EXT
="$(ESMF_IO_LIB_EXT)" \
982 LIB_LOCAL
="$(LIB_LOCAL)" \
983 ESMF_MOD_DEPENDENCE
="$(ESMF_MOD_DEPENDENCE)" AR
="INTERNAL_BUILD_ERROR_SHOULD_NOT_NEED_AR"; \
985 $(MAKE
) SFC
="$(SFC) $(FCBASEOPTS)" \
986 FC
="$(SFC) $(FCBASEOPTS) $(PROMOTION) $(FCDEBUG) $(OMP)" \
987 RANLIB
="$(RANLIB)" CPP
="$(CPP) $(ARCH_LOCAL)" DM_FC
="$(DM_FC) $(FCBASEOPTS)"\
988 TRADFLAG
="$(TRADFLAG)" ESMF_IO_LIB_EXT
="$(ESMF_IO_LIB_EXT)" \
989 ESMF_MOD_DEPENDENCE
="$(ESMF_MOD_DEPENDENCE)" AR
="INTERNAL_BUILD_ERROR_SHOULD_NOT_NEED_AR" diffwrf
; \
993 @ echo
'--------------------------------------'
994 if
[ "`echo $(J) | sed -e 's/-j//g' -e 's/ \+//g'`" -gt
"6" ] ; then \
995 if
[ $(WRF_PLUS_CORE
) -eq
0 ] ; then \
996 ( cd share
; $(MAKE
) -j
6 PERTMOD
=" " ) ; \
998 ( cd share
; $(MAKE
) -j
6 PERTMOD
="$(MODPT)" ) ; \
1001 if
[ $(WRF_PLUS_CORE
) -eq
0 ] ; then \
1002 ( cd share
; $(MAKE
) $(J
) PERTMOD
=" " ) ; \
1004 ( cd share
; $(MAKE
) $(J
) PERTMOD
="$(MODPT)" ) ; \
1009 @ echo
'----------wrf_hydro-----------------------'
1010 if
[ $(WRF_HYDRO
) -eq
1 ] ; then
(cd hydro
/CPL
/WRF_cpl
; make
-f Makefile.cpl
) ; fi
1013 @ echo
'--------------------------------------'
1014 if
[ $(WRF_KPP
) -eq
1 ] ; then
( cd chem
; $(MAKE
) ) ; fi
1015 if
[ $(WRF_KPP
) -eq
0 ] ; then \
1016 if
[ "`echo $(J) | sed -e 's/-j//g' -e 's/ \+//g'`" -gt
"16" ] ; then \
1017 ( cd chem
; $(MAKE
) -j
16 ) ; \
1019 ( cd chem
; $(MAKE
) $(J
) ) ; \
1022 # ( cd chem ; $(MAKE) )
1023 # ( cd chem ; $(MAKE) $(J) )
1026 @ echo
'--------------------------------------'
1027 if
[ $(WRF_CHEM
) -eq
0 ] ; then \
1028 ( cd phys
; $(MAKE
) submodules
; $(MAKE
) CF2
=" " ) ; \
1029 if
[ -n
"$(WRF_CMAQ)" ] && [ $(WRF_CMAQ
) -eq
1 ] ; then \
1030 @ echo
'----------- make cmaq ----------------' ; \
1031 ( rm -f main
/libcmaqlib.a
; cd cmaq
; $(MAKE
) -f Makefile.twoway
) ; \
1034 ( cd phys
; $(MAKE
) submodules
; $(MAKE
) CF2
="$(CHEM_FILES2)" ) ; \
1038 if
[ $(WRF_PLUS_CORE
) -eq
0 ] ; then \
1039 ( cd phys
; $(MAKE
) submodules
; $(MAKE
) PHYS_PLUS
=" " PHYS_MP
=" " PHYS_BL
=" " PHYS_CU
=" " ) ; \
1041 ( cd phys
; $(MAKE
) submodules
; $(MAKE
) PHYS_PLUS
="$(MODS4)" PHYS_MP
="$(MODMP)" PHYS_BL
="$(MODBL)" PHYS_CU
="$(MODCU)" ) ; \
1045 @ echo
'--------------------------------------'
1046 ( cd wrftladj
; $(MAKE
) $(J
) wrftladj
)
1049 @ echo
'--------------------------------------'
1050 if
[ $(WRF_CHEM
) -eq
0 ] ; then \
1053 CF
="$(CHEM_FILES)" ; \
1055 ( cd dyn_em
; $(MAKE
) $(J
) CF
="$(CF)" )
1057 # rule used by configure to test if this will compile with MPI 2 calls MPI_Comm_f2c and _c2f
1059 @ cd tools
; /bin
/rm -f mpi2_test
; $(CC
) -c mpi2_test.c
; cd ..
1061 # rule used by configure to test if this will compile with MPI 2 calls MPI_Init_thread
1063 @ cd tools
; /bin
/rm -f mpi2_thread_test
; $(CC
) -c mpi2_thread_test.c
; cd ..
1065 # rule used by configure to test if fseeko and fseeko64 are supported (for share/landread.c to work right)
1067 @ cd tools
; /bin
/rm -f fseeko_test
; $(SCC
) -DTEST_FSEEKO
-o fseeko_test fseek_test.c
; cd ..
1068 @ cd tools
; /bin
/rm -f fseeko64_test
; $(SCC
) -DTEST_FSEEKO64
-o fseeko64_test fseek_test.c
; cd ..
1070 # rule used by configure to test if this will compile with netcdf4
1072 if
[ -z
"$(USENETCDFPAR)" ] ||
[ $(USENETCDFPAR
) -eq
0 ] ; then \
1073 ( cd tools
; /bin
/rm -f nc4_test.
{exe
,nc
,o
} ; $(SCC
) -o nc4_test.exe nc4_test.c
-I
$(NETCDF_C
)/include $(NETCDF4_DEP_LIB
) ; cd ..
) ; \
1075 ( cd tools
; /bin
/rm -f nc4_test.
{exe
,nc
,o
} ; $(DM_CC
) -o nc4_test.exe nc4_test.c
-I
$(NETCDF_C
)/include $(NETCDF4_DEP_LIB
) ; cd ..
) ; \
1078 # rule used by configure to test if Fortran 2003 IEEE signaling is available
1079 fortran_2003_ieee_test
:
1080 @cd tools
; /bin
/rm -f fortran_2003_ieee_test.
{exe
,o
} ; $(SFC
) -o fortran_2003_ieee_test.exe fortran_2003_ieee_test.F
; cd ..
1082 # rule used by configure to test if Fortran 2003 ISO_C support is available
1083 fortran_2003_iso_c_test
:
1084 @cd tools
; /bin
/rm -f fortran_2003_iso_c_test.
{exe
,o
} ; $(SFC
) -o fortran_2003_iso_c_test.exe fortran_2003_iso_c_test.F
; cd ..
1086 # rule used by configure to test if Fortran 2003 FLUSH intrinsic subroutine support is available
1087 fortran_2003_flush_test
:
1088 @cd tools
; /bin
/rm -f fortran_2003_flush_test.
{exe
,o
} ; $(SFC
) -o fortran_2003_flush_test.exe fortran_2003_flush_test.F
; cd ..
1090 # rule used by configure to test if Fortran 2003 FLUSH intrinsic subroutine is replaced by FFLUSH (thanks xlf)
1091 fortran_2003_fflush_test
:
1092 @cd tools
; /bin
/rm -f fortran_2003_fflush_test.
{exe
,o
} ; $(SFC
) -o fortran_2003_fflush_test.exe fortran_2003_fflush_test.F
; cd ..
1094 # rule used by configure to test if Fortran 2008 gamma intrinsic function is available
1095 fortran_2008_gamma_test
:
1096 @cd tools
; /bin
/rm -f fortran_2008_gamma_test.
{exe
,o
} ; $(SFC
) -o fortran_2008_gamma_test.exe fortran_2008_gamma_test.F
; cd ..
1098 # rule used by configure to test for RPC support
1100 @cd tools
; /bin
/rm -f rpc_test.exe
; $(SCC
) -DUSE_TIRPC
-o rpc_test.exe rpc_test.c
; $(SCC
) -o rpc_test.exe rpc_test.c
; cd ..
1103 @ echo
'--------------------------------------'
1104 if
[ $(WRF_PLUS_CORE
) -eq
0 ] ; then \
1105 ( cd tools
; $(MAKE
) CC_TOOLS_CFLAGS
="$(CC_TOOLS_CFLAGS)" CC_TOOLS
="$(CC_TOOLS) -DIWORDSIZE=$(IWORDSIZE) -DMAX_HISTORY=$(MAX_HISTORY)" ) ; \
1107 ( cd tools
; $(MAKE
) CC_TOOLS_CFLAGS
="$(CC_TOOLS_CFLAGS)" CC_TOOLS
="$(CC_TOOLS) -DIWORDSIZE=$(IWORDSIZE) -DMAX_HISTORY=$(MAX_HISTORY) -DWRFPLUS=1" ) ; \
1111 # ( cd tools ; $(MAKE) CC_TOOLS="$(CC_TOOLS) -DIO_MASK_SIZE=$(IO_MASK_SIZE)" )
1113 # Use this target to build stand-alone tests of esmf_time_f90.
1114 # Only touches external/esmf_time_f90/.
1115 esmf_time_f90_only
:
1116 @ echo
'--------------------------------------'
1117 ( cd external
/esmf_time_f90
; $(MAKE
) FC
="$(FC) $(FCFLAGS)" CPP
="$(CPP) -DTIME_F90_ONLY" tests
)
1120 @ echo
'Use the clean script'