[11] | 1 | --- WRFV2.original/arch/configure.defaults 2007-10-05 16:16:41.329127000 +0200 |
---|
| 2 | +++ WRFV2/arch/configure.defaults 2008-09-03 20:18:02.656065000 +0200 |
---|
| 3 | @@ -10943,5 +10943,358 @@ |
---|
| 4 | $(RM) $*.b |
---|
| 5 | $(FC) -c $(PROMOTION) $(FCBASEOPTS) $(MODULE_DIRS) $*.f90 |
---|
| 6 | |
---|
| 7 | +########################################################### |
---|
| 8 | +#ARCH PC Linux x86_64 (IA64 and AMD Opteron), GNU Fortran compiler, DM-Parallel (RSL, MPICH, Allows nesting) |
---|
| 9 | +# |
---|
| 10 | +DMPARALLEL = 1 |
---|
| 11 | +MAX_PROC = 1024 |
---|
| 12 | +FC = mpif90 |
---|
| 13 | +LD = mpif90 |
---|
| 14 | +CC = mpicc |
---|
| 15 | +SCC = gcc |
---|
| 16 | +SFC = gfortran |
---|
| 17 | +RWORDSIZE = $(NATIVE_RWORDSIZE) |
---|
| 18 | +PROMOTION = |
---|
| 19 | +CFLAGS = -DDM_PARALLEL -DWRF_RSL_IO \ |
---|
| 20 | + -DMAXDOM_MAKE=$(MAX_DOMAINS) -DMAXPROC_MAKE=$(MAX_PROC) -I../external/RSL/RSL \ |
---|
| 21 | + -DLANDREAD_STUB |
---|
| 22 | +FCOPTIM = #-Mipa=fast |
---|
| 23 | +FCDEBUG = #-g |
---|
| 24 | +FCBASEOPTS = -w $(FCDEBUG) -ffree-form -ffree-line-length-none |
---|
| 25 | +FCFLAGS = $(FCOPTIM) $(FCBASEOPTS) |
---|
| 26 | +ARCHFLAGS = -DGRIB1 CONFIGURE_GRIB2_FLAG -DINTIO -DWRF_RSL_IO -DRSL -DDM_PARALLEL \ |
---|
| 27 | + -DIWORDSIZE=4 -DDWORDSIZE=8 -DRWORDSIZE=$(RWORDSIZE) -DLWORDSIZE=4 CONFIGURE_NETCDF_FLAG \ |
---|
| 28 | + -DLIMIT_ARGS -DLANDREAD_STUB |
---|
| 29 | +# machine-specific flags needed to link in ESMF library (C++ run-time-library, etc.) |
---|
| 30 | +ESMF_LIB_FLAGS = |
---|
| 31 | +ESMF_IO_LIB = ESMFIOLIB |
---|
| 32 | +ESMF_IO_LIB_EXT = ESMFIOEXTLIB |
---|
| 33 | +INCLUDE_MODULES = -J../main -I../main -I../external/io_netcdf -I../external/io_int -I../external/esmf_time_f90 \ |
---|
| 34 | + -I../external -I../frame -I../share -I../phys -I../inc -I../chem |
---|
| 35 | +PERL = perl |
---|
| 36 | +REGISTRY = Registry |
---|
| 37 | +LIB = CONFIGURE_NETCDF_LIB_PATH -L../external/RSL/RSL -lrsl \ |
---|
| 38 | + -L../external/io_grib1 -lio_grib1 \ |
---|
| 39 | + CONFIGURE_GRIB2_LIB \ |
---|
| 40 | + -L../external/io_grib_share -lio_grib_share \ |
---|
| 41 | + -L../external/io_int -lwrfio_int \ |
---|
| 42 | + ../frame/module_internal_header_util.o ../frame/pack_utils.o -L../external/esmf_time_f90 -lesmf_time |
---|
| 43 | +LDFLAGS = CONFIGURE_LDFLAGS |
---|
| 44 | +ENVCOMPDEFS = CONFIGURE_COMPILEFLAGS |
---|
| 45 | +CPP = /lib/cpp -C -P -traditional |
---|
| 46 | +POUND_DEF = -DNO_RRTM_PHYSICS -traditional $(COREDEFS) -DNONSTANDARD_SYSTEM -DCONFIG_BUF_LEN=$(CONFIG_BUF_LEN) -DMAX_DOMAINS_F=$(MAX_DOMAINS) |
---|
| 47 | +CPPFLAGS = -I$(LIBINCLUDE) -C -P $(ARCHFLAGS) -I../external/RSL/RSL -C -P `cat ../inc/dm_comm_cpp_flags` $(ENVCOMPDEFS) $(POUND_DEF) |
---|
| 48 | +AR = ar ru |
---|
| 49 | +M4 = m4 -B 14000 |
---|
| 50 | +RANLIB = ranlib |
---|
| 51 | +NETCDFPATH = CONFIGURE_NETCDF_PATH |
---|
| 52 | +CC_TOOLS = cc |
---|
| 53 | + |
---|
| 54 | +externals : wrf_ioapi_includes CONFIGURE_WRFIO_NF wrfio_grib_share wrfio_grib1 CONFIGURE_WRFIO_GRIB2 ../external/RSL/RSL/librsl.a wrfio_int gen_comms.c module_dm.F esmf_time |
---|
| 55 | + |
---|
| 56 | +gen_comms.c : ../external/RSL/gen_comms.c |
---|
| 57 | + ( /bin/cp ../tools/gen_comms_warning ../tools/gen_comms.c ; \ |
---|
| 58 | + cat ../external/RSL/gen_comms.c >> ../tools/gen_comms.c ) |
---|
| 59 | + |
---|
| 60 | +module_dm.F : ../external/RSL/module_dm.F |
---|
| 61 | + ( /bin/cp module_dm_warning module_dm.F ; cat ../external/RSL/module_dm.F >> module_dm.F ) |
---|
| 62 | + |
---|
| 63 | +wrfio_nf : |
---|
| 64 | + ( cd ../external/io_netcdf ; \ |
---|
| 65 | + make NETCDFPATH=CONFIGURE_NETCDF_PATH RANLIB="$(RANLIB)" CPP="$(CPP)" FC="$(FC) $(PROMOTION) $(FCFLAGS) -w" TRADFLAG="-traditional" ) |
---|
| 66 | + |
---|
| 67 | +wrfio_int : |
---|
| 68 | + ( cd ../external/io_int ; \ |
---|
| 69 | + make CC="$(CC)" RANLIB="$(RANLIB)" CPP="$(CPP)" SFC="$(SFC) $(PROMOTION) $(FCDEBUG) $(FCBASEOPTS)" FC="$(SFC) $(PROMOTION) $(FCDEBUG) $(FCBASEOPTS) -w" TRADFLAG="-traditional" all ) |
---|
| 70 | + |
---|
| 71 | +wrfio_grib_share : |
---|
| 72 | + ( cd ../external/io_grib_share ; \ |
---|
| 73 | + make CC="$(SCC)" CFLAGS="$(CFLAGS)" RM="$(RM)" RANLIB="$(RANLIB)" CPP="$(CPP)" FC="$(SFC) $(PROMOTION) -I. $(FCDEBUG) $(FCBASEOPTS) -w" TRADFLAG="-traditional" archive) |
---|
| 74 | + |
---|
| 75 | +wrfio_grib1 : |
---|
| 76 | + ( cd ../external/io_grib1 ; \ |
---|
| 77 | + make CC="$(SCC)" CFLAGS="$(CFLAGS)" RANLIB="$(RANLIB)" CPP="$(CPP)" FC="$(SFC) $(PROMOTION) -I. $(FCDEBUG) $(FCBASEOPTS) -w" TRADFLAG="-traditional" archive) |
---|
| 78 | + |
---|
| 79 | +wrfio_grib2 : |
---|
| 80 | + ( cd ../external/io_grib2 ; \ |
---|
| 81 | + make CC="$(SCC)" CFLAGS="$(CFLAGS) CONFIGURE_GRIB2_INC" RM="$(RM)" RANLIB="$(RANLIB)" CPP="$(CPP)" FC="$(SFC) $(PROMOTION) -I. $(FCDEBUG) $(FCBASEOPTS) -w" TRADFLAG="-traditional" FIXED="-Mfixed" archive) |
---|
| 82 | + |
---|
| 83 | +esmf_time : |
---|
| 84 | + ( cd ../external/esmf_time_f90 ; \ |
---|
| 85 | + make FC="$(FC) $(PROMOTION) $(FCDEBUG) $(FCBASEOPTS)" RANLIB="$(RANLIB)" CPP="$(CPP) -I../../inc -I. $(POUND_DEF)" ) |
---|
| 86 | + |
---|
| 87 | +../external/RSL/RSL/librsl.a : |
---|
| 88 | + ( cd ../external/RSL/RSL ; make CC="$(CC)" FC="$(FC) $(PROMOTION)" MAX_DOMAINS=$(MAX_DOMAINS) MAX_PROC=$(MAX_PROC) LEARN_BCAST=-DLEARN_BCAST linux ) |
---|
| 89 | + |
---|
| 90 | +# compile these without high optimization to speed compile |
---|
| 91 | +solve_interface.o : solve_interface.F |
---|
| 92 | +shift_domain_em.o : shift_domain_em.F |
---|
| 93 | +module_io_mm5.o : module_io_mm5.F |
---|
| 94 | +module_si_io.o : module_si_io.F |
---|
| 95 | +module_io_wrf.o : module_io_wrf.F |
---|
| 96 | +module_domain.o : module_domain.F |
---|
| 97 | +module_start.o : module_start.F |
---|
| 98 | +module_initialize.o : module_initialize.F |
---|
| 99 | +module_initialize_b_wave.o : module_initialize_b_wave.F |
---|
| 100 | +module_initialize_hill2d_x.o : module_initialize_hill2d_x.F |
---|
| 101 | +module_initialize_quarter_ss.o : module_initialize_quarter_ss.F |
---|
| 102 | +module_initialize_squall2d_x.o : module_initialize_squall2d_x.F |
---|
| 103 | +module_initialize_squall2d_y.o : module_initialize_squall2d_y.F |
---|
| 104 | +module_initialize_real.o : module_initialize_real.F |
---|
| 105 | +module_dm.o : module_dm.F |
---|
| 106 | +start_domain.o : start_domain.F |
---|
| 107 | +mediation_integrate.o : mediation_integrate.F |
---|
| 108 | +module_configure.o : module_configure.F |
---|
| 109 | + |
---|
| 110 | +solve_interface.o \ |
---|
| 111 | +shift_domain_em.o \ |
---|
| 112 | +module_io_mm5.o module_si_io.o module_io_wrf.o module_domain.o \ |
---|
| 113 | +module_start.o module_initialize.o module_initialize_b_wave.o \ |
---|
| 114 | +module_initialize_hill2d_x.o module_initialize_quarter_ss.o \ |
---|
| 115 | +module_initialize_squall2d_x.o module_initialize_squall2d_y.o \ |
---|
| 116 | +mediation_integrate.o \ |
---|
| 117 | +module_configure.o \ |
---|
| 118 | +module_initialize_real.o module_dm.o start_domain.o : |
---|
| 119 | + $(RM) $@ |
---|
| 120 | + $(SED_FTN) $*.F > $*.b |
---|
| 121 | + $(CPP) -I../inc $(CPPFLAGS) $*.b > $*.f90 |
---|
| 122 | + $(RM) $*.b |
---|
| 123 | + $(FC) -c $(PROMOTION) $(FCBASEOPTS) $(MODULE_DIRS) $*.f90 |
---|
| 124 | + |
---|
| 125 | + |
---|
| 126 | +########################################################### |
---|
| 127 | +#ARCH PC Linux x86_64 (IA64 and Opteron), GNU Fortran compiler (Single-threaded, RSL, Allows nesting) |
---|
| 128 | +# |
---|
| 129 | +DMPARALLEL = 1 |
---|
| 130 | +MAX_PROC = 1024 |
---|
| 131 | +FC = gfortran |
---|
| 132 | +LD = gfortran |
---|
| 133 | +CC = gcc |
---|
| 134 | +SCC = $(CC) |
---|
| 135 | +SFC = gfortran |
---|
| 136 | +RWORDSIZE = $(NATIVE_RWORDSIZE) |
---|
| 137 | +FCOPTIM = #-O3 -funroll-loops -ftree-vectorize -ftree-loop-linear |
---|
| 138 | +FCDEBUG = #-g |
---|
| 139 | +FCBASEOPTS = -w $(FCDEBUG) -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4 |
---|
| 140 | +FCFLAGS = $(FCOPTIM) $(FCBASEOPTS) |
---|
| 141 | +ARCHFLAGS = -DGRIB1 -DINTIO -DWRF_RSL_IO -DRSL -DDM_PARALLEL \ |
---|
| 142 | + -DIWORDSIZE=4 -DDWORDSIZE=8 -DRWORDSIZE=$(RWORDSIZE) -DLWORDSIZE=4 CONFIGURE_NETCDF_FLAG \ |
---|
| 143 | + -DLIMIT_ARGS -DSTUBMPI |
---|
| 144 | +PROMOTION = |
---|
| 145 | +CFLAGS = -DLANDREADSTUB -DDM_PARALLEL -DWRF_RSL_IO \ |
---|
| 146 | + -DMAXDOM_MAKE=$(MAX_DOMAINS) -DMAXPROC_MAKE=$(MAX_PROC) -I../external/RSL/RSL $(ARCHFLAGS) |
---|
| 147 | +# machine-specific flags needed to link in ESMF library (C++ run-time-library, etc.) |
---|
| 148 | +ESMF_LIB_FLAGS = |
---|
| 149 | +ESMF_IO_LIB = ESMFIOLIB |
---|
| 150 | +ESMF_IO_LIB_EXT = ESMFIOEXTLIB |
---|
| 151 | +INCLUDE_MODULES = -J../main -I../main -I../external/io_netcdf -I../external/io_int -I../external/esmf_time_f90 \ |
---|
| 152 | + -I../external -I../frame -I../share -I../phys -I../chem -I../inc |
---|
| 153 | +PERL = perl |
---|
| 154 | +REGISTRY = Registry |
---|
| 155 | +LIB = CONFIGURE_NETCDF_LIB_PATH -L../external/RSL/RSL -lrsl \ |
---|
| 156 | + -L../external/io_grib1 -lio_grib1 \ |
---|
| 157 | + -L../external/io_int -lwrfio_int \ |
---|
| 158 | + -L../external/io_grib_share -lio_grib_share \ |
---|
| 159 | + ../frame/module_internal_header_util.o ../frame/pack_utils.o -L../external/esmf_time_f90 -lesmf_time |
---|
| 160 | +LDFLAGS = $(FCFLAGS) CONFIGURE_LDFLAGS -fconvert=big-endian |
---|
| 161 | +ENVCOMPDEFS = CONFIGURE_COMPILEFLAGS |
---|
| 162 | +CPP = /lib/cpp -C -P -traditional |
---|
| 163 | +POUND_DEF = -DNO_RRTM_PHYSICS $(COREDEFS) -DNONSTANDARD_SYSTEM -DCONFIG_BUF_LEN=$(CONFIG_BUF_LEN) -DMAX_DOMAINS_F=$(MAX_DOMAINS) |
---|
| 164 | +CPPFLAGS = -I$(LIBINCLUDE) -C -P $(ARCHFLAGS) -I../external/RSL/RSL -C -P `cat ../inc/dm_comm_cpp_flags` $(ENVCOMPDEFS) $(POUND_DEF) |
---|
| 165 | +AR = ar ru |
---|
| 166 | +M4 = m4 -B 14000 |
---|
| 167 | +RANLIB = ranlib |
---|
| 168 | +NETCDFPATH = CONFIGURE_NETCDF_PATH |
---|
| 169 | +CC_TOOLS = cc |
---|
| 170 | + |
---|
| 171 | +externals : wrf_ioapi_includes CONFIGURE_WRFIO_NF wrfio_grib_share wrfio_grib1 ../external/RSL/RSL/librsl.a wrfio_int gen_comms.c module_dm.F esmf_time |
---|
| 172 | + |
---|
| 173 | +gen_comms.c : ../external/RSL/gen_comms.c |
---|
| 174 | + ( /bin/cp ../tools/gen_comms_warning ../tools/gen_comms.c ; \ |
---|
| 175 | + cat ../external/RSL/gen_comms.c >> ../tools/gen_comms.c ) |
---|
| 176 | + |
---|
| 177 | +module_dm.F : ../external/RSL/module_dm.F |
---|
| 178 | + ( /bin/cp module_dm_warning module_dm.F ; cat ../external/RSL/module_dm.F >> module_dm.F ) |
---|
| 179 | + |
---|
| 180 | +wrfio_nf : |
---|
| 181 | + ( cd ../external/io_netcdf ; \ |
---|
| 182 | + make NETCDFPATH=CONFIGURE_NETCDF_PATH RANLIB="$(RANLIB)" CPP="$(CPP)" FC="$(FC) $(PROMOTION) $(FCFLAGS) -w" TRADFLAG="-traditional" ) |
---|
| 183 | + |
---|
| 184 | +wrfio_grib_share : |
---|
| 185 | + ( cd ../external/io_grib_share ; \ |
---|
| 186 | + make CC="$(SCC)" CFLAGS="$(CFLAGS)" RM="$(RM)" RANLIB="$(RANLIB)" CPP="$(CPP)" FC="$(SFC) $(PROMOTION) -I. $(FCDEBUG) $(FCBASEOPTS) -w" TRADFLAG="-traditional" archive) |
---|
| 187 | + |
---|
| 188 | +wrfio_grib1 : |
---|
| 189 | + ( cd ../external/io_grib1 ; \ |
---|
| 190 | + make CC="$(SCC)" CFLAGS="$(CFLAGS)" RANLIB="$(RANLIB)" CPP="$(CPP)" FC="$(SFC) $(PROMOTION) -I. $(FCDEBUG) $(FCBASEOPTS) -w" TRADFLAG="-traditional" archive) |
---|
| 191 | + |
---|
| 192 | +wrfio_grib2 : |
---|
| 193 | + ( cd ../external/io_grib2 ; \ |
---|
| 194 | + make CC="$(SCC)" CFLAGS="$(CFLAGS) CONFIGURE_GRIB2_INC" RM="$(RM)" RANLIB="$(RANLIB)" CPP="$(CPP)" FC="$(SFC) $(PROMOTION) -I. $(FCDEBUG) $(FCBASEOPTS) -w" TRADFLAG="-traditional" FIXED="-Mfixed" archive) |
---|
| 195 | + |
---|
| 196 | +wrfio_int : |
---|
| 197 | + ( cd ../external/io_int ; \ |
---|
| 198 | + make CC="$(CC)" RANLIB="$(RANLIB)" CPP="$(CPP)" SFC="$(SFC) $(PROMOTION) $(FCDEBUG) $(FCBASEOPTS)" FC="$(SFC) $(PROMOTION) $(FCDEBUG) $(FCBASEOPTS) -w" TRADFLAG="-traditional" all ) |
---|
| 199 | + |
---|
| 200 | +esmf_time : |
---|
| 201 | + ( cd ../external/esmf_time_f90 ; \ |
---|
| 202 | + make FC="$(FC) $(PROMOTION) $(FCDEBUG) $(FCBASEOPTS)" RANLIB="$(RANLIB)" CPP="$(CPP) -I../../inc -I. $(POUND_DEF)" ) |
---|
| 203 | + |
---|
| 204 | +../external/RSL/RSL/librsl.a : |
---|
| 205 | + ( cd ../external/RSL/RSL ; make CC="$(CC)" CFLAGS='-DSTUBS' FC="$(FC) $(PROMOTION)" FFLAGS='' MAX_DOMAINS=$(MAX_DOMAINS) MAX_PROC=$(MAX_PROC) LEARN_BCAST=-DLEARN_BCAST stub ) |
---|
| 206 | + |
---|
| 207 | +# compile these without high optimization to speed compile |
---|
| 208 | +solve_interface.o : solve_interface.F |
---|
| 209 | +shift_domain_em.o : shift_domain_em.F |
---|
| 210 | +module_io_mm5.o : module_io_mm5.F |
---|
| 211 | +module_si_io.o : module_si_io.F |
---|
| 212 | +module_io_wrf.o : module_io_wrf.F |
---|
| 213 | +module_domain.o : module_domain.F |
---|
| 214 | +module_start.o : module_start.F |
---|
| 215 | +module_initialize.o : module_initialize.F |
---|
| 216 | +module_initialize_b_wave.o : module_initialize_b_wave.F |
---|
| 217 | +module_initialize_hill2d_x.o : module_initialize_hill2d_x.F |
---|
| 218 | +module_initialize_quarter_ss.o : module_initialize_quarter_ss.F |
---|
| 219 | +module_initialize_squall2d_x.o : module_initialize_squall2d_x.F |
---|
| 220 | +module_initialize_squall2d_y.o : module_initialize_squall2d_y.F |
---|
| 221 | +module_initialize_real.o : module_initialize_real.F |
---|
| 222 | +module_dm.o : module_dm.F |
---|
| 223 | +start_domain.o : start_domain.F |
---|
| 224 | +mediation_integrate.o : mediation_integrate.F |
---|
| 225 | +module_configure.o : module_configure.F |
---|
| 226 | + |
---|
| 227 | +solve_interface.o \ |
---|
| 228 | +shift_domain_em.o \ |
---|
| 229 | +module_io_mm5.o module_si_io.o module_io_wrf.o module_domain.o \ |
---|
| 230 | +module_start.o module_initialize.o module_initialize_b_wave.o \ |
---|
| 231 | +module_initialize_hill2d_x.o module_initialize_quarter_ss.o \ |
---|
| 232 | +module_initialize_squall2d_x.o module_initialize_squall2d_y.o \ |
---|
| 233 | +module_configure.o \ |
---|
| 234 | +mediation_integrate.o \ |
---|
| 235 | +module_initialize_real.o module_dm.o start_domain.o : |
---|
| 236 | + $(RM) $@ |
---|
| 237 | + $(SED_FTN) $*.F > $*.b |
---|
| 238 | + $(CPP) -I../inc $(CPPFLAGS) $*.b > $*.f90 |
---|
| 239 | + $(RM) $*.b |
---|
| 240 | + $(FC) -c $(PROMOTION) $(FCBASEOPTS) $(MODULE_DIRS) $*.f90 |
---|
| 241 | + |
---|
| 242 | + |
---|
| 243 | +########################################################### |
---|
| 244 | +#ARCH PC Linux x86_64 (IA64 and Opteron), GNU Fortran compiler DM-Parallel (RSL_LITE, OpenMPI, Allows nesting) |
---|
| 245 | +# |
---|
| 246 | +DMPARALLEL = 1 |
---|
| 247 | +MAX_PROC = 1024 |
---|
| 248 | +FC = mpif90 |
---|
| 249 | +LD = mpif90 |
---|
| 250 | +CC = mpicc |
---|
| 251 | +SCC = gcc |
---|
| 252 | +SFC = gfortran |
---|
| 253 | +RWORDSIZE = $(NATIVE_RWORDSIZE) |
---|
| 254 | +PROMOTION = |
---|
| 255 | +CFLAGS = -DDM_PARALLEL \ |
---|
| 256 | + -DMAXDOM_MAKE=$(MAX_DOMAINS) -DMAXPROC_MAKE=$(MAX_PROC) -I../external/RSL_LITE |
---|
| 257 | +FCOPTIM = |
---|
| 258 | +FCDEBUG = |
---|
| 259 | +FCBASEOPTS = -w $(FCDEBUG) -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4 |
---|
| 260 | +FCFLAGS = $(FCOPTIM) $(FCBASEOPTS) |
---|
| 261 | +ARCHFLAGS = -DGRIB1 CONFIGURE_GRIB2_FLAG -DINTIO -DDM_PARALLEL \ |
---|
| 262 | + -DIWORDSIZE=4 -DDWORDSIZE=8 -DRWORDSIZE=$(RWORDSIZE) -DLWORDSIZE=4 CONFIGURE_NETCDF_FLAG \ |
---|
| 263 | + -DLIMIT_ARGS -DNMM_NEST=$(WRF_NMM_NEST) |
---|
| 264 | +# machine-specific flags needed to link in ESMF library (C++ run-time-library, etc.) |
---|
| 265 | +ESMF_LIB_FLAGS = |
---|
| 266 | +ESMF_IO_LIB = ESMFIOLIB |
---|
| 267 | +ESMF_IO_LIB_EXT = ESMFIOEXTLIB |
---|
| 268 | +INCLUDE_MODULES = -J../main -I../main -I../external/io_netcdf -I../external/io_int -I../external/esmf_time_f90 \ |
---|
| 269 | + -I../external -I../frame -I../share -I../phys -I../chem -I../inc |
---|
| 270 | +PERL = perl |
---|
| 271 | +REGISTRY = Registry |
---|
| 272 | +LIB = CONFIGURE_NETCDF_LIB_PATH -L../external/RSL_LITE -lrsl_lite \ |
---|
| 273 | + -L../external/io_grib1 -lio_grib1 \ |
---|
| 274 | + CONFIGURE_GRIB2_LIB \ |
---|
| 275 | + -L../external/io_grib_share -lio_grib_share \ |
---|
| 276 | + -L../external/io_int -lwrfio_int \ |
---|
| 277 | + ../frame/module_internal_header_util.o ../frame/pack_utils.o -L../external/esmf_time_f90 -lesmf_time |
---|
| 278 | +LDFLAGS = $(FCFLAGS) CONFIGURE_LDFLAGS -fconvert=big-endian |
---|
| 279 | +ENVCOMPDEFS = CONFIGURE_COMPILEFLAGS |
---|
| 280 | +CPP = /lib/cpp -C -P -traditional |
---|
| 281 | +POUND_DEF = -DNO_RRTM_PHYSICS -traditional $(COREDEFS) -DNONSTANDARD_SYSTEM -DCONFIG_BUF_LEN=$(CONFIG_BUF_LEN) -DMAX_DOMAINS_F=$(MAX_DOMAINS) |
---|
| 282 | +CPPFLAGS = -I$(LIBINCLUDE) -C -P $(ARCHFLAGS) -I../external/RSL_LITE -C -P `cat ../inc/dm_comm_cpp_flags` $(ENVCOMPDEFS) $(POUND_DEF) |
---|
| 283 | +AR = ar ru |
---|
| 284 | +M4 = m4 -B 14000 |
---|
| 285 | +RANLIB = ranlib |
---|
| 286 | +NETCDFPATH = CONFIGURE_NETCDF_PATH |
---|
| 287 | +CC_TOOLS = cc |
---|
| 288 | + |
---|
| 289 | +externals : wrf_ioapi_includes CONFIGURE_WRFIO_NF wrfio_grib_share wrfio_grib1 CONFIGURE_WRFIO_GRIB2 ../external/RSL_LITE/librsl_lite.a wrfio_int gen_comms.c module_dm.F esmf_time |
---|
| 290 | + |
---|
| 291 | +gen_comms.c : ../external/RSL_LITE/gen_comms.c |
---|
| 292 | + ( /bin/cp ../tools/gen_comms_warning ../tools/gen_comms.c ; \ |
---|
| 293 | + cat ../external/RSL_LITE/gen_comms.c >> ../tools/gen_comms.c ) |
---|
| 294 | + |
---|
| 295 | +module_dm.F : ../external/RSL_LITE/module_dm.F |
---|
| 296 | + ( /bin/cp module_dm_warning module_dm.F ; cat ../external/RSL_LITE/module_dm.F >> module_dm.F ) |
---|
| 297 | + |
---|
| 298 | +wrfio_nf : |
---|
| 299 | + ( cd ../external/io_netcdf ; \ |
---|
| 300 | + make NETCDFPATH=CONFIGURE_NETCDF_PATH RANLIB="$(RANLIB)" CPP="$(CPP)" FC="$(FC) $(PROMOTION) $(FCFLAGS) -w" TRADFLAG="-traditional" ) |
---|
| 301 | + |
---|
| 302 | +wrfio_grib_share : |
---|
| 303 | + ( cd ../external/io_grib_share ; \ |
---|
| 304 | + make CC="$(SCC)" CFLAGS="$(CFLAGS)" RM="$(RM)" RANLIB="$(RANLIB)" CPP="$(CPP)" FC="$(SFC) $(PROMOTION) -I. $(FCDEBUG) $(FCBASEOPTS) -w" TRADFLAG="-traditional" archive) |
---|
| 305 | + |
---|
| 306 | +wrfio_grib1 : |
---|
| 307 | + ( cd ../external/io_grib1 ; \ |
---|
| 308 | + make CC="$(SCC)" CFLAGS="$(CFLAGS)" RANLIB="$(RANLIB)" CPP="$(CPP)" FC="$(SFC) $(PROMOTION) -I. $(FCDEBUG) $(FCBASEOPTS) -w" TRADFLAG="-traditional" archive) |
---|
| 309 | + |
---|
| 310 | +wrfio_grib2 : |
---|
| 311 | + ( cd ../external/io_grib2 ; \ |
---|
| 312 | + make CC="$(SCC)" CFLAGS="$(CFLAGS) CONFIGURE_GRIB2_INC" RM="$(RM)" RANLIB="$(RANLIB)" CPP="$(CPP)" FC="$(SFC) $(PROMOTION) -I. $(FCDEBUG) $(FCBASEOPTS) -w" TRADFLAG="-traditional" FIXED="-Mfixed" archive) |
---|
| 313 | + |
---|
| 314 | +wrfio_int : |
---|
| 315 | + ( cd ../external/io_int ; \ |
---|
| 316 | + make CC="$(CC)" RANLIB="$(RANLIB)" CPP="$(CPP)" SFC="$(SFC) $(PROMOTION) $(FCDEBUG) $(FCBASEOPTS)" FC="$(SFC) $(PROMOTION) $(FCDEBUG) $(FCBASEOPTS) -w" TRADFLAG="-traditional" all ) |
---|
| 317 | + |
---|
| 318 | +esmf_time : |
---|
| 319 | + ( cd ../external/esmf_time_f90 ; \ |
---|
| 320 | + make FC="$(FC) $(PROMOTION) $(FCDEBUG) $(FCBASEOPTS)" RANLIB="$(RANLIB)" CPP="$(CPP) -I../../inc -I. $(POUND_DEF)" ) |
---|
| 321 | + |
---|
| 322 | +../external/RSL_LITE/librsl_lite.a : |
---|
| 323 | + ( cd ../external/RSL_LITE ; make CC="$(CC)" FC="$(FC) $(FCFLAGS) $(PROMOTION) -byteswapio" MAX_DOMAINS=$(MAX_DOMAINS) MAX_PROC=$(MAX_PROC) LEARN_BCAST=-DLEARN_BCAST ) |
---|
| 324 | + |
---|
| 325 | +# compile these without high optimization to speed compile |
---|
| 326 | +solve_interface.o : solve_interface.F |
---|
| 327 | +shift_domain_em.o : shift_domain_em.F |
---|
| 328 | +module_io_mm5.o : module_io_mm5.F |
---|
| 329 | +module_si_io.o : module_si_io.F |
---|
| 330 | +module_io_wrf.o : module_io_wrf.F |
---|
| 331 | +module_domain.o : module_domain.F |
---|
| 332 | +module_start.o : module_start.F |
---|
| 333 | +module_initialize.o : module_initialize.F |
---|
| 334 | +module_initialize_b_wave.o : module_initialize_b_wave.F |
---|
| 335 | +module_initialize_hill2d_x.o : module_initialize_hill2d_x.F |
---|
| 336 | +module_initialize_quarter_ss.o : module_initialize_quarter_ss.F |
---|
| 337 | +module_initialize_squall2d_x.o : module_initialize_squall2d_x.F |
---|
| 338 | +module_initialize_squall2d_y.o : module_initialize_squall2d_y.F |
---|
| 339 | +module_initialize_real.o : module_initialize_real.F |
---|
| 340 | +module_dm.o : module_dm.F |
---|
| 341 | +start_domain.o : start_domain.F |
---|
| 342 | +mediation_integrate.o : mediation_integrate.F |
---|
| 343 | +module_configure.o : module_configure.F |
---|
| 344 | + |
---|
| 345 | +solve_interface.o \ |
---|
| 346 | +shift_domain_em.o \ |
---|
| 347 | +module_io_mm5.o module_si_io.o module_io_wrf.o module_domain.o \ |
---|
| 348 | +module_start.o module_initialize.o module_initialize_b_wave.o \ |
---|
| 349 | +module_initialize_hill2d_x.o module_initialize_quarter_ss.o \ |
---|
| 350 | +module_initialize_squall2d_x.o module_initialize_squall2d_y.o \ |
---|
| 351 | +module_configure.o \ |
---|
| 352 | +mediation_integrate.o \ |
---|
| 353 | +module_initialize_real.o module_dm.o start_domain.o : |
---|
| 354 | + $(RM) $@ |
---|
| 355 | + $(SED_FTN) $*.F > $*.b |
---|
| 356 | + $(CPP) -I../inc $(CPPFLAGS) $*.b > $*.f90 |
---|
| 357 | + $(RM) $*.b |
---|
| 358 | + $(FC) -c $(PROMOTION) $(FCBASEOPTS) $(MODULE_DIRS) $*.f90 |
---|
| 359 | + |
---|
| 360 | ################################################################## |
---|
| 361 | #ARCH NULL |
---|