[657] | 1 | # configure.wrf |
---|
| 2 | # |
---|
| 3 | # This file was automatically generated by the configure script in the |
---|
| 4 | # top level directory. You may make changes to the settings in this |
---|
| 5 | # file but be aware they will be overwritten each time you run configure. |
---|
| 6 | # Ordinarily, it is necessary to run configure once, when the code is |
---|
| 7 | # first installed. |
---|
| 8 | # |
---|
| 9 | # To permanently change options, change the settings for your platform |
---|
| 10 | # in the file arch/configure.defaults then rerun configure. |
---|
| 11 | # |
---|
| 12 | SHELL = /bin/sh |
---|
| 13 | DEVTOP = `pwd` |
---|
| 14 | LIBINCLUDE = . |
---|
| 15 | .SUFFIXES: .F .i .o .f90 .c |
---|
| 16 | |
---|
| 17 | #### Get core settings from environment (set in compile script) |
---|
| 18 | #### Note to add a core, this has to be added to. |
---|
| 19 | |
---|
| 20 | COREDEFS = -DEM_CORE=$(WRF_EM_CORE) \ |
---|
| 21 | -DNMM_CORE=$(WRF_NMM_CORE) -DNMM_MAX_DIM=2600 \ |
---|
| 22 | -DCOAMPS_CORE=$(WRF_COAMPS_CORE) \ |
---|
| 23 | -DDA_CORE=$(WRF_DA_CORE) \ |
---|
| 24 | -DEXP_CORE=$(WRF_EXP_CORE) |
---|
| 25 | |
---|
| 26 | #### Single location for defining total number of domains. You need |
---|
| 27 | #### at least 1 + 2*(number of total nests). For example, 1 coarse |
---|
| 28 | #### grid + three fine grids = 1 + 2(3) = 7, so MAX_DOMAINS=7. |
---|
| 29 | |
---|
| 30 | MAX_DOMAINS = 21 |
---|
| 31 | |
---|
| 32 | #### DM buffer length for the configuration flags. |
---|
| 33 | |
---|
| 34 | CONFIG_BUF_LEN = 32768 |
---|
| 35 | |
---|
| 36 | #### Size of bitmasks (in 4byte integers) of stream masks for WRF I/O |
---|
| 37 | |
---|
| 38 | MAX_HISTORY = 25 |
---|
| 39 | |
---|
| 40 | IWORDSIZE = 4 |
---|
| 41 | DWORDSIZE = 8 |
---|
| 42 | LWORDSIZE = 4 |
---|
| 43 | |
---|
| 44 | ############################################################################## |
---|
| 45 | #### The settings in this section are defaults that may be overridden by the |
---|
| 46 | #### architecture-specific settings in the next section. |
---|
| 47 | ############################################################################## |
---|
| 48 | |
---|
| 49 | ############################################################################## |
---|
| 50 | #### NOTE: Do not modify these default values here. To override these |
---|
| 51 | #### values, make changes after "Architecture specific settings". |
---|
| 52 | ############################################################################## |
---|
| 53 | |
---|
| 54 | #### Native size (in bytes) of Fortran REAL data type on this architecture #### |
---|
| 55 | #### Note: to change real wordsize (for example, to promote REALs from |
---|
| 56 | #### 4-byte to 8-byte), modify the definition of RWORDSIZE in the |
---|
| 57 | #### section following "Architecture specific settings". Do not |
---|
| 58 | #### change NATIVE_RWORDSIZE as is it architecture-specific. |
---|
| 59 | NATIVE_RWORDSIZE = 4 |
---|
| 60 | |
---|
| 61 | #### Default sed command and script for Fortran source files #### |
---|
| 62 | #SED_FTN = sed -f $(WRF_SRC_ROOT_DIR)/arch/standard.sed |
---|
| 63 | SED_FTN = $(WRF_SRC_ROOT_DIR)/tools/standard.exe |
---|
| 64 | |
---|
| 65 | # Hack to work around $(PWD) not changing during OSF1 build. |
---|
| 66 | # $(IO_GRIB_SHARE_DIR) is reset during the OSF1 build only. |
---|
| 67 | IO_GRIB_SHARE_DIR = |
---|
| 68 | |
---|
| 69 | #### ESMF switches #### |
---|
| 70 | #### These are set up by Config.pl #### |
---|
| 71 | # switch to use separately installed ESMF library for coupling: 1==true |
---|
| 72 | ESMF_COUPLING = 0 |
---|
| 73 | # select dependences on module_utility.o |
---|
| 74 | ESMF_MOD_DEPENDENCE = $(WRF_SRC_ROOT_DIR)/external/esmf_time_f90/module_utility.o |
---|
| 75 | # select -I options for external/io_esmf vs. external/esmf_time_f90 |
---|
| 76 | ESMF_IO_INC = -I$(WRF_SRC_ROOT_DIR)/external/esmf_time_f90 |
---|
| 77 | # select -I options for separately installed ESMF library, if present |
---|
| 78 | ESMF_MOD_INC = $(ESMF_IO_INC) |
---|
| 79 | # select cpp token for external/io_esmf vs. external/esmf_time_f90 |
---|
| 80 | ESMF_IO_DEFS = |
---|
| 81 | # select build target for external/io_esmf vs. external/esmf_time_f90 |
---|
| 82 | ESMF_TARGET = esmf_time |
---|
| 83 | |
---|
| 84 | ############################################################################## |
---|
| 85 | |
---|
| 86 | LIBWRFLIB = libwrflib.a |
---|
| 87 | |
---|
| 88 | |
---|
| 89 | #### Architecture specific settings #### |
---|
| 90 | |
---|
| 91 | # Settings for x86_64 Linux, gfortran compiler with gcc (serial) |
---|
| 92 | # |
---|
| 93 | DMPARALLEL = 1 |
---|
| 94 | OMPCPP = # -D_OPENMP |
---|
| 95 | OMP = # -fopenmp |
---|
| 96 | OMPCC = # -fopenmp |
---|
| 97 | SFC = gfortran |
---|
| 98 | SCC = gcc |
---|
| 99 | CCOMP = gcc |
---|
| 100 | DM_FC = mpif90 -f90=$(SFC) |
---|
| 101 | DM_CC = mpicc -cc=$(SCC) |
---|
| 102 | FC = $(SFC) |
---|
| 103 | CC = $(SCC) -DFSEEKO64_OK |
---|
| 104 | LD = $(FC) |
---|
| 105 | RWORDSIZE = $(NATIVE_RWORDSIZE) |
---|
| 106 | PROMOTION = # -fdefault-real-8 # uncomment manually |
---|
| 107 | ARCH_LOCAL = -DNONSTANDARD_SYSTEM_SUBR |
---|
| 108 | CFLAGS_LOCAL = -w -O3 -c -DLANDREAD_STUB |
---|
| 109 | LDFLAGS_LOCAL = |
---|
| 110 | CPLUSPLUSLIB = |
---|
| 111 | ESMF_LDFLAG = $(CPLUSPLUSLIB) |
---|
| 112 | FCOPTIM = -O3 -ftree-vectorize -ftree-loop-linear -funroll-loops |
---|
| 113 | FCREDUCEDOPT = $(FCOPTIM) |
---|
| 114 | FCNOOPT = -O0 |
---|
| 115 | FCDEBUG = # -g $(FCNOOPT) |
---|
| 116 | FORMAT_FIXED = -ffixed-form |
---|
| 117 | FORMAT_FREE = -ffree-form -ffree-line-length-none |
---|
| 118 | FCSUFFIX = |
---|
| 119 | BYTESWAPIO = -fconvert=big-endian -frecord-marker=4 |
---|
| 120 | FCBASEOPTS_NO_G = -w $(FORMAT_FREE) $(BYTESWAPIO) |
---|
| 121 | FCBASEOPTS = $(FCBASEOPTS_NO_G) $(FCDEBUG) |
---|
| 122 | MODULE_SRCH_FLAG = |
---|
| 123 | TRADFLAG = -traditional |
---|
| 124 | CPP = /lib/cpp -C -P |
---|
| 125 | AR = ar |
---|
| 126 | ARFLAGS = ru |
---|
| 127 | M4 = m4 -G |
---|
| 128 | RANLIB = ranlib |
---|
| 129 | CC_TOOLS = $(SCC) |
---|
| 130 | |
---|
| 131 | ########################################################### |
---|
| 132 | ###################### |
---|
| 133 | # POSTAMBLE |
---|
| 134 | |
---|
| 135 | FGREP = fgrep -iq |
---|
| 136 | |
---|
| 137 | ARCHFLAGS = $(COREDEFS) -DIWORDSIZE=$(IWORDSIZE) -DDWORDSIZE=$(DWORDSIZE) -DRWORDSIZE=$(RWORDSIZE) -DLWORDSIZE=$(LWORDSIZE) \ |
---|
| 138 | $(ARCH_LOCAL) \ |
---|
| 139 | $(DA_ARCHFLAGS) \ |
---|
| 140 | -DDM_PARALLEL \ |
---|
| 141 | -DSTUBMPI \ |
---|
| 142 | -DNETCDF \ |
---|
| 143 | -DLMDZ \ |
---|
| 144 | \ |
---|
| 145 | \ |
---|
| 146 | \ |
---|
| 147 | \ |
---|
| 148 | \ |
---|
| 149 | \ |
---|
| 150 | \ |
---|
| 151 | -DUSE_ALLOCATABLES \ |
---|
| 152 | -DGRIB1 \ |
---|
| 153 | -DINTIO \ |
---|
| 154 | -DLIMIT_ARGS \ |
---|
| 155 | -DCONFIG_BUF_LEN=$(CONFIG_BUF_LEN) \ |
---|
| 156 | -DMAX_DOMAINS_F=$(MAX_DOMAINS) \ |
---|
| 157 | -DMAX_HISTORY=$(MAX_HISTORY) \ |
---|
| 158 | -DNMM_NEST=$(WRF_NMM_NEST) |
---|
| 159 | CFLAGS = $(CFLAGS_LOCAL) -DDM_PARALLEL -DSTUBMPI \ |
---|
| 160 | -DMAX_HISTORY=$(MAX_HISTORY) |
---|
| 161 | FCFLAGS = $(FCOPTIM) $(FCBASEOPTS) |
---|
| 162 | ESMF_LIB_FLAGS = |
---|
| 163 | ESMF_IO_LIB = -L$(WRF_SRC_ROOT_DIR)/external/esmf_time_f90 -lesmf_time |
---|
| 164 | ESMF_IO_LIB_EXT = -L$(WRF_SRC_ROOT_DIR)/external/esmf_time_f90 -lesmf_time |
---|
| 165 | INCLUDE_MODULES = $(MODULE_SRCH_FLAG) \ |
---|
| 166 | $(ESMF_MOD_INC) $(ESMF_LIB_FLAGS) \ |
---|
| 167 | -I$(WRF_SRC_ROOT_DIR)/main \ |
---|
| 168 | -I$(WRF_SRC_ROOT_DIR)/external/io_netcdf \ |
---|
| 169 | -I$(WRF_SRC_ROOT_DIR)/external/io_int \ |
---|
| 170 | -I$(WRF_SRC_ROOT_DIR)/frame \ |
---|
| 171 | -I$(WRF_SRC_ROOT_DIR)/share \ |
---|
| 172 | -I$(WRF_SRC_ROOT_DIR)/phys \ |
---|
| 173 | -I$(WRF_SRC_ROOT_DIR)/chem -I$(WRF_SRC_ROOT_DIR)/inc \ |
---|
| 174 | -I$(NETCDFPATH)/include \ |
---|
| 175 | -I$(WRF_SRC_ROOT_DIR)/lmdz |
---|
| 176 | |
---|
| 177 | REGISTRY = Registry |
---|
| 178 | |
---|
| 179 | LIB_BUNDLED = \ |
---|
| 180 | $(WRF_SRC_ROOT_DIR)/external/fftpack/fftpack5/libfftpack.a \ |
---|
| 181 | $(WRF_SRC_ROOT_DIR)/external/io_grib1/libio_grib1.a \ |
---|
| 182 | $(WRF_SRC_ROOT_DIR)/external/io_grib_share/libio_grib_share.a \ |
---|
| 183 | $(WRF_SRC_ROOT_DIR)/external/io_int/libwrfio_int.a \ |
---|
| 184 | $(ESMF_IO_LIB) \ |
---|
| 185 | $(WRF_SRC_ROOT_DIR)/external/RSL_LITE/librsl_lite.a \ |
---|
| 186 | $(WRF_SRC_ROOT_DIR)/frame/module_internal_header_util.o \ |
---|
| 187 | $(WRF_SRC_ROOT_DIR)/frame/pack_utils.o |
---|
| 188 | |
---|
| 189 | LIB_EXTERNAL = \ |
---|
| 190 | -L$(WRF_SRC_ROOT_DIR)/external/io_netcdf -lwrfio_nf -L/opt/netcdf42/gfortran/lib -lnetcdf -lnetcdff $(WRF_SRC_ROOT_DIR)/lmdz/lmdz.a |
---|
| 191 | |
---|
| 192 | LIB = $(LIB_BUNDLED) $(LIB_EXTERNAL) $(LIB_LOCAL) |
---|
| 193 | LDFLAGS = $(OMP) $(FCFLAGS) $(LDFLAGS_LOCAL) |
---|
| 194 | ENVCOMPDEFS = |
---|
| 195 | WRF_CHEM = 0 |
---|
| 196 | CPPFLAGS = $(ARCHFLAGS) $(ENVCOMPDEFS) -I$(LIBINCLUDE) $(TRADFLAG) |
---|
| 197 | NETCDFPATH = /opt/netcdf42/gfortran |
---|
| 198 | PNETCDFPATH = |
---|
| 199 | |
---|
| 200 | bundled: wrf_ioapi_includes wrfio_grib_share wrfio_grib1 wrfio_int esmf_time fftpack |
---|
| 201 | external: wrfio_nf $(WRF_SRC_ROOT_DIR)/external/RSL_LITE/librsl_lite.a gen_comms_rsllite module_dm_rsllite $(ESMF_TARGET) |
---|
| 202 | |
---|
| 203 | lmdza: $(WRF_SRC_ROOT_DIR)/lmdz/lmdz.a |
---|
| 204 | |
---|
| 205 | ###################### |
---|
| 206 | externals: bundled external |
---|
| 207 | |
---|
| 208 | gen_comms_serial : |
---|
| 209 | ( /bin/rm -f $(WRF_SRC_ROOT_DIR)/tools/gen_comms.c ) |
---|
| 210 | |
---|
| 211 | module_dm_serial : |
---|
| 212 | ( if [ ! -e module_dm.F ] ; then /bin/cp module_dm_warning module_dm.F ; cat module_dm_stubs.F >> module_dm.F ; fi ) |
---|
| 213 | |
---|
| 214 | gen_comms_rsllite : |
---|
| 215 | ( if [ ! -e $(WRF_SRC_ROOT_DIR)/tools/gen_comms.c ] ; then \ |
---|
| 216 | /bin/cp $(WRF_SRC_ROOT_DIR)/tools/gen_comms_warning $(WRF_SRC_ROOT_DIR)/tools/gen_comms.c ; \ |
---|
| 217 | cat $(WRF_SRC_ROOT_DIR)/external/RSL_LITE/gen_comms.c >> $(WRF_SRC_ROOT_DIR)/tools/gen_comms.c ; fi ) |
---|
| 218 | |
---|
| 219 | module_dm_rsllite : |
---|
| 220 | ( if [ ! -e module_dm.F ] ; then /bin/cp module_dm_warning module_dm.F ; \ |
---|
| 221 | cat $(WRF_SRC_ROOT_DIR)/external/RSL_LITE/module_dm.F >> module_dm.F ; fi ) |
---|
| 222 | |
---|
| 223 | wrfio_nf : |
---|
| 224 | ( cd $(WRF_SRC_ROOT_DIR)/external/io_netcdf ; \ |
---|
| 225 | make NETCDFPATH="$(NETCDFPATH)" RANLIB="$(RANLIB)" CPP="$(CPP)" \ |
---|
| 226 | CC="$(SCC)" CFLAGS="$(CFLAGS)" \ |
---|
| 227 | FC="$(SFC) $(PROMOTION) $(FCFLAGS)" TRADFLAG="$(TRADFLAG)" AR="$(AR)" ARFLAGS="$(ARFLAGS)" ) |
---|
| 228 | |
---|
| 229 | wrfio_pnf : |
---|
| 230 | ( cd $(WRF_SRC_ROOT_DIR)/external/io_pnetcdf ; \ |
---|
| 231 | make NETCDFPATH="$(PNETCDFPATH)" RANLIB="$(RANLIB)" CPP="$(CPP) $(ARCHFLAGS)" \ |
---|
| 232 | FC="$(FC) $(PROMOTION) $(FCFLAGS)" TRADFLAG="$(TRADFLAG)" AR="$(AR)" ARFLAGS="$(ARFLAGS)" ) |
---|
| 233 | |
---|
| 234 | wrfio_grib_share : |
---|
| 235 | ( cd $(WRF_SRC_ROOT_DIR)/external/io_grib_share ; \ |
---|
| 236 | make CC="$(SCC)" CFLAGS="$(CFLAGS)" RM="$(RM)" RANLIB="$(RANLIB)" CPP="$(CPP)" \ |
---|
| 237 | FC="$(SFC) $(PROMOTION) -I. $(FCDEBUG) $(FCBASEOPTS) $(FCSUFFIX)" TRADFLAG="$(TRADFLAG)" AR="$(AR)" ARFLAGS="$(ARFLAGS)" archive) |
---|
| 238 | |
---|
| 239 | wrfio_grib1 : |
---|
| 240 | ( cd $(WRF_SRC_ROOT_DIR)/external/io_grib1 ; \ |
---|
| 241 | make CC="$(SCC)" CFLAGS="$(CFLAGS)" RM="$(RM)" RANLIB="$(RANLIB)" CPP="$(CPP)" \ |
---|
| 242 | FC="$(SFC) $(PROMOTION) -I. $(FCDEBUG) $(FCBASEOPTS) $(FCSUFFIX)" TRADFLAG="$(TRADFLAG)" AR="$(AR)" ARFLAGS="$(ARFLAGS)" archive) |
---|
| 243 | |
---|
| 244 | wrfio_grib2 : |
---|
| 245 | ( cd $(WRF_SRC_ROOT_DIR)/external/io_grib2 ; \ |
---|
| 246 | make CC="$(SCC)" CFLAGS="$(CFLAGS) " RM="$(RM)" RANLIB="$(RANLIB)" \ |
---|
| 247 | CPP="$(CPP)" \ |
---|
| 248 | FC="$(SFC) $(PROMOTION) -I. $(FCDEBUG) $(FCBASEOPTS) $(FCSUFFIX)" TRADFLAG="-traditional" AR="$(AR)" ARFLAGS="$(ARFLAGS)" \ |
---|
| 249 | FIXED="$(FORMAT_FIXED)" archive) |
---|
| 250 | |
---|
| 251 | wrfio_int : |
---|
| 252 | ( cd $(WRF_SRC_ROOT_DIR)/external/io_int ; \ |
---|
| 253 | make CC="$(CC)" RM="$(RM)" RANLIB="$(RANLIB)" CPP="$(CPP)" \ |
---|
| 254 | FC="$(SFC) $(PROMOTION) $(FCDEBUG) $(FCBASEOPTS)" FGREP="$(FGREP)" \ |
---|
| 255 | TRADFLAG="$(TRADFLAG)" AR="$(AR)" ARFLAGS="$(ARFLAGS)" ARCHFLAGS="$(ARCHFLAGS)" all ) |
---|
| 256 | |
---|
| 257 | esmf_time : |
---|
| 258 | ( cd $(WRF_SRC_ROOT_DIR)/external/esmf_time_f90 ; \ |
---|
| 259 | make FC="$(SFC) $(PROMOTION) $(FCDEBUG) $(FCBASEOPTS)" RANLIB="$(RANLIB)" \ |
---|
| 260 | CPP="$(CPP) -I$(WRF_SRC_ROOT_DIR)/inc -I. $(ARCHFLAGS) $(TRADFLAG)" AR="$(AR)" ARFLAGS="$(ARFLAGS)" ) |
---|
| 261 | |
---|
| 262 | fftpack : |
---|
| 263 | ( cd $(WRF_SRC_ROOT_DIR)/external/fftpack/fftpack5 ; \ |
---|
| 264 | make FC="$(SFC)" FFLAGS="$(PROMOTION) $(FCDEBUG) $(FCBASEOPTS)" RANLIB="$(RANLIB)" AR="$(AR)" ARFLAGS="$(ARFLAGS)" ) |
---|
| 265 | |
---|
| 266 | atm_ocn : |
---|
| 267 | ( cd $(WRF_SRC_ROOT_DIR)/external/atm_ocn ; \ |
---|
| 268 | make CC="$(SCC)" CFLAGS="$(CFLAGS) " RM="$(RM)" RANLIB="$(RANLIB)" \ |
---|
| 269 | CPP="$(CPP)" \ |
---|
| 270 | FC="$(DM_FC) $(PROMOTION) -I. $(FCDEBUG) $(FCBASEOPTS) $(FCSUFFIX)" TRADFLAG="-traditional" AR="$(AR)" ARFLAGS="$(ARFLAGS)" \ |
---|
| 271 | FIXED="$(FORMAT_FIXED)" ) |
---|
| 272 | |
---|
| 273 | $(WRF_SRC_ROOT_DIR)/external/RSL_LITE/librsl_lite.a : |
---|
| 274 | ( cd $(WRF_SRC_ROOT_DIR)/external/RSL_LITE ; make CC="$(CC) $(CFLAGS)" \ |
---|
| 275 | FC="$(FC) $(FCFLAGS) $(PROMOTION) $(BYTESWAPIO)" \ |
---|
| 276 | CPP="$(CPP) -I. $(ARCHFLAGS) $(TRADFLAG)" AR="$(AR)" ARFLAGS="$(ARFLAGS)" ;\ |
---|
| 277 | $(RANLIB) $(WRF_SRC_ROOT_DIR)/external/RSL_LITE/librsl_lite.a ) |
---|
| 278 | |
---|
| 279 | ###################### |
---|
| 280 | # Macros, these should be generic for all machines |
---|
| 281 | |
---|
| 282 | LN = ln -sf |
---|
| 283 | MAKE = make -i -r |
---|
| 284 | RM = rm -f |
---|
| 285 | |
---|
| 286 | |
---|
| 287 | # These sub-directory builds are identical across all architectures |
---|
| 288 | |
---|
| 289 | wrf_ioapi_includes : |
---|
| 290 | ( cd $(WRF_SRC_ROOT_DIR)/external/ioapi_share ; \ |
---|
| 291 | $(MAKE) NATIVE_RWORDSIZE="$(NATIVE_RWORDSIZE)" RWORDSIZE="$(RWORDSIZE)" AR="$(AR)" ARFLAGS="$(ARFLAGS)" ) |
---|
| 292 | |
---|
| 293 | wrfio_esmf : |
---|
| 294 | ( cd $(WRF_SRC_ROOT_DIR)/external/io_esmf ; \ |
---|
| 295 | make FC="$(FC) $(PROMOTION) $(FCDEBUG) $(FCBASEOPTS) $(ESMF_MOD_INC)" \ |
---|
| 296 | RANLIB="$(RANLIB)" CPP="$(CPP) $(POUND_DEF) " AR="$(AR)" ARFLAGS="$(ARFLAGS)" ) |
---|
| 297 | |
---|
| 298 | # There is probably no reason to modify these rules |
---|
| 299 | |
---|
| 300 | .F.i: |
---|
| 301 | $(RM) $@ |
---|
| 302 | $(CPP) -I$(WRF_SRC_ROOT_DIR)/inc $(CPPFLAGS) $*.F > $@ |
---|
| 303 | mv $*.i $(DEVTOP)/pick/$*.f90 |
---|
| 304 | cp $*.F $(DEVTOP)/pick |
---|
| 305 | |
---|
| 306 | .F.o: |
---|
| 307 | $(RM) $@ |
---|
| 308 | $(CPP) -I$(WRF_SRC_ROOT_DIR)/inc $(CPPFLAGS) $(OMPCPP) $*.F > $*.bb |
---|
| 309 | $(SED_FTN) $*.bb | $(CPP) > $*.f90 |
---|
| 310 | $(RM) $*.b $*.bb |
---|
| 311 | @ if echo $(ARCHFLAGS) | $(FGREP) 'DVAR4D'; then \ |
---|
| 312 | echo COMPILING $*.F for 4DVAR ; \ |
---|
| 313 | $(WRF_SRC_ROOT_DIR)/var/build/da_name_space.pl $*.f90 > $*.f90.tmp ; \ |
---|
| 314 | mv $*.f90.tmp $*.f90 ; \ |
---|
| 315 | fi |
---|
| 316 | if $(FGREP) '!$$OMP' $*.f90 ; then \ |
---|
| 317 | if [ -n "$(OMP)" ] ; then echo COMPILING $*.F WITH OMP ; fi ; \ |
---|
| 318 | $(FC) -o $@ -c $(FCFLAGS) $(OMP) $(MODULE_DIRS) $(PROMOTION) $(FCSUFFIX) $*.f90 ; \ |
---|
| 319 | else \ |
---|
| 320 | if [ -n "$(OMP)" ] ; then echo COMPILING $*.F WITHOUT OMP ; fi ; \ |
---|
| 321 | $(FC) -o $@ -c $(FCFLAGS) $(MODULE_DIRS) $(PROMOTION) $(FCSUFFIX) $*.f90 ; \ |
---|
| 322 | fi |
---|
| 323 | |
---|
| 324 | |
---|
| 325 | .F.f90: |
---|
| 326 | $(RM) $@ |
---|
| 327 | $(SED_FTN) $*.F > $*.b |
---|
| 328 | $(CPP) -I$(WRF_SRC_ROOT_DIR)/inc $(CPPFLAGS) $*.b > $@ |
---|
| 329 | $(RM) $*.b |
---|
| 330 | |
---|
| 331 | .f90.o: |
---|
| 332 | $(RM) $@ |
---|
| 333 | $(FC) -o $@ -c $(FCFLAGS) $(PROMOTION) $(FCSUFFIX) $*.f90 |
---|
| 334 | |
---|
| 335 | setfeenv.o : setfeenv.c |
---|
| 336 | $(RM) $@ |
---|
| 337 | $(CCOMP) -o $@ -c $(CFLAGS) $(OMPCC) $*.c |
---|
| 338 | |
---|
| 339 | .c.o: |
---|
| 340 | $(RM) $@ |
---|
| 341 | $(CC) -o $@ -c $(CFLAGS) $*.c |
---|
| 342 | |
---|
| 343 | # A little more adventurous. Allow full opt on |
---|
| 344 | # mediation_integrate.o \ |
---|
| 345 | # shift_domain_em.o \ |
---|
| 346 | # solve_em.o <-- gets a little kick from SOLVE_EM_SPECIAL too, if defined |
---|
| 347 | # mediation_feedback_domain.o : mediation_feedback_domain.F |
---|
| 348 | # mediation_force_domain.o : mediation_force_domain.F |
---|
| 349 | # mediation_interp_domain.o : mediation_interp_domain.F |
---|
| 350 | |
---|
| 351 | # compile these without high optimization to speed compile |
---|
| 352 | convert_nmm.o : convert_nmm.F |
---|
| 353 | init_modules_em.o : init_modules_em.F |
---|
| 354 | input_wrf.o : input_wrf.F |
---|
| 355 | module_io.o : module_io.F |
---|
| 356 | module_comm_dm.o : module_comm_dm.F |
---|
| 357 | module_comm_dm_0.o : module_comm_dm_0.F |
---|
| 358 | module_comm_dm_1.o : module_comm_dm_1.F |
---|
| 359 | module_comm_dm_2.o : module_comm_dm_2.F |
---|
| 360 | module_comm_dm_3.o : module_comm_dm_3.F |
---|
| 361 | module_comm_nesting_dm.o : module_comm_nesting_dm.F |
---|
| 362 | module_configure.o : module_configure.F |
---|
| 363 | module_dm.o : module_dm.F |
---|
| 364 | module_domain.o : module_domain.F |
---|
| 365 | module_domain_type.o : module_domain_type.F |
---|
| 366 | module_alloc_space_0.o : module_alloc_space_0.F |
---|
| 367 | module_alloc_space_1.o : module_alloc_space_1.F |
---|
| 368 | module_alloc_space_2.o : module_alloc_space_2.F |
---|
| 369 | module_alloc_space_3.o : module_alloc_space_3.F |
---|
| 370 | module_alloc_space_4.o : module_alloc_space_4.F |
---|
| 371 | module_alloc_space_5.o : module_alloc_space_5.F |
---|
| 372 | module_alloc_space_6.o : module_alloc_space_6.F |
---|
| 373 | module_alloc_space_7.o : module_alloc_space_7.F |
---|
| 374 | module_alloc_space_8.o : module_alloc_space_8.F |
---|
| 375 | module_alloc_space_9.o : module_alloc_space_9.F |
---|
| 376 | module_tiles.o : module_tiles.F |
---|
| 377 | module_fddaobs_rtfdda.o : module_fddaobs_rtfdda.F |
---|
| 378 | module_initialize.o : module_initialize.F |
---|
| 379 | module_physics_init.o : module_physics_init.F |
---|
| 380 | module_initialize_b_wave.o : module_initialize_b_wave.F |
---|
| 381 | module_initialize_hill2d_x.o : module_initialize_hill2d_x.F |
---|
| 382 | module_initialize_quarter_ss.o : module_initialize_quarter_ss.F |
---|
| 383 | module_initialize_real.o : module_initialize_real.F |
---|
| 384 | module_initialize_real.o: module_initialize_real.F |
---|
| 385 | module_initialize_squall2d_x.o : module_initialize_squall2d_x.F |
---|
| 386 | module_initialize_squall2d_y.o : module_initialize_squall2d_y.F |
---|
| 387 | module_integrate.o : module_integrate.F |
---|
| 388 | module_io_mm5.o : module_io_mm5.F |
---|
| 389 | module_io_wrf.o : module_io_wrf.F |
---|
| 390 | module_si_io.o : module_si_io.F |
---|
| 391 | module_state_description.o : module_state_description.F |
---|
| 392 | output_wrf.o : output_wrf.F |
---|
| 393 | solve_interface.o : solve_interface.F |
---|
| 394 | start_domain.o : start_domain.F |
---|
| 395 | start_domain_nmm.o : start_domain_nmm.F |
---|
| 396 | start_em.o : start_em.F |
---|
| 397 | wrf_bdyin.o : wrf_bdyin.F |
---|
| 398 | wrf_bdyout.o : wrf_bdyout.F |
---|
| 399 | wrf_ext_read_field.o : wrf_ext_read_field.F |
---|
| 400 | wrf_ext_write_field.o : wrf_ext_write_field.F |
---|
| 401 | wrf_fddaobs_in.o : wrf_fddaobs_in.F |
---|
| 402 | wrf_histin.o : wrf_histin.F |
---|
| 403 | wrf_histout.o : wrf_histout.F |
---|
| 404 | wrf_inputin.o : wrf_inputin.F |
---|
| 405 | wrf_inputout.o : wrf_inputout.F |
---|
| 406 | wrf_restartin.o : wrf_restartin.F |
---|
| 407 | wrf_restartout.o : wrf_restartout.F |
---|
| 408 | wrf_tsin.o : wrf_tsin.F |
---|
| 409 | nl_get_0_routines.o : nl_get_0_routines.F |
---|
| 410 | nl_get_1_routines.o : nl_get_1_routines.F |
---|
| 411 | nl_set_0_routines.o : nl_set_0_routines.F |
---|
| 412 | nl_set_1_routines.o : nl_set_1_routines.F |
---|
| 413 | |
---|
| 414 | convert_nmm.o \ |
---|
| 415 | init_modules_em.o \ |
---|
| 416 | module_dm.o \ |
---|
| 417 | module_fddaobs_rtfdda.o \ |
---|
| 418 | module_initialize.o \ |
---|
| 419 | module_initialize_b_wave.o \ |
---|
| 420 | module_initialize_hill2d_x.o \ |
---|
| 421 | module_initialize_quarter_ss.o \ |
---|
| 422 | module_initialize_real.o \ |
---|
| 423 | module_initialize_squall2d_x.o \ |
---|
| 424 | module_initialize_squall2d_y.o \ |
---|
| 425 | module_integrate.o \ |
---|
| 426 | module_io_mm5.o \ |
---|
| 427 | module_io_wrf.o \ |
---|
| 428 | module_si_io.o \ |
---|
| 429 | module_tiles.o \ |
---|
| 430 | output_wrf.o \ |
---|
| 431 | solve_interface.o \ |
---|
| 432 | start_domain.o \ |
---|
| 433 | start_domain_nmm.o \ |
---|
| 434 | shift_domain_nmm.o \ |
---|
| 435 | start_em.o \ |
---|
| 436 | wrf_fddaobs_in.o \ |
---|
| 437 | wrf_tsin.o : |
---|
| 438 | $(RM) $@ |
---|
| 439 | $(SED_FTN) $*.F > $*.b |
---|
| 440 | $(CPP) -I$(WRF_SRC_ROOT_DIR)/inc $(CPPFLAGS) $(OMPCPP) $*.b > $*.f90 |
---|
| 441 | $(RM) $*.b |
---|
| 442 | @ if echo $(ARCHFLAGS) | $(FGREP) 'DVAR4D'; then \ |
---|
| 443 | echo COMPILING $*.F for 4DVAR ; \ |
---|
| 444 | $(WRF_SRC_ROOT_DIR)/var/build/da_name_space.pl $*.f90 > $*.f90.tmp ; \ |
---|
| 445 | mv $*.f90.tmp $*.f90 ; \ |
---|
| 446 | fi |
---|
| 447 | if $(FGREP) '!$$OMP' $*.f90 ; then \ |
---|
| 448 | if [ -n "$(OMP)" ] ; then echo COMPILING $*.F WITH OMP ; fi ; \ |
---|
| 449 | $(FC) -c $(PROMOTION) $(FCNOOPT) $(FCBASEOPTS) $(MODULE_DIRS) $(FCSUFFIX) $(OMP) $*.f90 ; \ |
---|
| 450 | else \ |
---|
| 451 | if [ -n "$(OMP)" ] ; then echo COMPILING $*.F WITHOUT OMP ; fi ; \ |
---|
| 452 | $(FC) -c $(PROMOTION) $(FCNOOPT) $(FCBASEOPTS) $(MODULE_DIRS) $(FCSUFFIX) $*.f90 ; \ |
---|
| 453 | fi |
---|
| 454 | |
---|
| 455 | #solve_em.o : |
---|
| 456 | # $(RM) $@ |
---|
| 457 | # $(SED_FTN) $*.F > $*.b |
---|
| 458 | # $(CPP) -I$(WRF_SRC_ROOT_DIR)/inc $(CPPFLAGS) $*.b > $*.f90 |
---|
| 459 | # $(RM) $*.b |
---|
| 460 | # $(FC) -o $@ -c $(FCFLAGS) $(MODULE_DIRS) $(PROMOTION) $(FCSUFFIX) $(SOLVE_EM_SPECIAL) $(OMP) $*.f90 |
---|
| 461 | |
---|
| 462 | module_sf_ruclsm.o : module_sf_ruclsm.F |
---|
| 463 | |
---|
| 464 | module_sf_ruclsm.o : |
---|
| 465 | $(RM) $@ |
---|
| 466 | $(SED_FTN) $*.F > $*.b |
---|
| 467 | $(CPP) -I$(WRF_SRC_ROOT_DIR)/inc $(CPPFLAGS) $(OMPCPP) $*.b > $*.f90 |
---|
| 468 | $(RM) $*.b |
---|
| 469 | if $(FGREP) '!$$OMP' $*.f90 ; then \ |
---|
| 470 | echo COMPILING $*.F WITH OMP ; \ |
---|
| 471 | if [ -n "$(OMP)" ] ; then echo COMPILING $*.F WITH OMP ; fi ; \ |
---|
| 472 | $(FC) -c $(PROMOTION) $(FCREDUCEDOPT) $(FCBASEOPTS) $(MODULE_DIRS) $(FCSUFFIX) $(OMP) $*.f90 ; \ |
---|
| 473 | else \ |
---|
| 474 | if [ -n "$(OMP)" ] ; then echo COMPILING $*.F WITHOUT OMP ; fi ; \ |
---|
| 475 | $(FC) -c $(PROMOTION) $(FCREDUCEDOPT) $(FCBASEOPTS) $(MODULE_DIRS) $(FCSUFFIX) $*.f90 ; \ |
---|
| 476 | fi |
---|
| 477 | |
---|
| 478 | # compile without OMP |
---|
| 479 | input_wrf.o \ |
---|
| 480 | module_domain.o \ |
---|
| 481 | module_domain_type.o \ |
---|
| 482 | module_physics_init.o \ |
---|
| 483 | module_io.o \ |
---|
| 484 | wrf_bdyin.o \ |
---|
| 485 | wrf_bdyout.o \ |
---|
| 486 | wrf_ext_read_field.o \ |
---|
| 487 | wrf_ext_write_field.o \ |
---|
| 488 | wrf_histin.o \ |
---|
| 489 | wrf_histout.o \ |
---|
| 490 | wrf_inputin.o \ |
---|
| 491 | wrf_inputout.o \ |
---|
| 492 | wrf_restartin.o \ |
---|
| 493 | wrf_restartout.o \ |
---|
| 494 | module_state_description.o \ |
---|
| 495 | module_alloc_space.o \ |
---|
| 496 | module_alloc_space_0.o \ |
---|
| 497 | module_alloc_space_1.o \ |
---|
| 498 | module_alloc_space_2.o \ |
---|
| 499 | module_alloc_space_3.o \ |
---|
| 500 | module_alloc_space_4.o \ |
---|
| 501 | module_alloc_space_5.o \ |
---|
| 502 | module_alloc_space_6.o \ |
---|
| 503 | module_alloc_space_7.o \ |
---|
| 504 | module_alloc_space_8.o \ |
---|
| 505 | module_alloc_space_9.o \ |
---|
| 506 | module_comm_dm.o \ |
---|
| 507 | module_comm_dm_0.o \ |
---|
| 508 | module_comm_dm_1.o \ |
---|
| 509 | module_comm_dm_2.o \ |
---|
| 510 | module_comm_dm_3.o \ |
---|
| 511 | module_comm_nesting_dm.o \ |
---|
| 512 | module_configure.o : |
---|
| 513 | $(RM) $@ |
---|
| 514 | $(CPP) -I$(WRF_SRC_ROOT_DIR)/inc $(CPPFLAGS) $(OMPCPP) $*.F > $*.bb |
---|
| 515 | $(SED_FTN) $*.bb | $(CPP) > $*.f90 |
---|
| 516 | @ if echo $(ARCHFLAGS) | $(FGREP) 'DVAR4D'; then \ |
---|
| 517 | echo COMPILING $*.F for 4DVAR ; \ |
---|
| 518 | $(WRF_SRC_ROOT_DIR)/var/build/da_name_space.pl $*.f90 > $*.f90.tmp ; \ |
---|
| 519 | mv $*.f90.tmp $*.f90 ; \ |
---|
| 520 | fi |
---|
| 521 | $(RM) $*.b $*.bb |
---|
| 522 | $(FC) -c $(PROMOTION) $(FCSUFFIX) $(FCNOOPT) $(FCBASEOPTS) $(MODULE_DIRS) $*.f90 |
---|