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 | -DEXP_CORE=$(WRF_EXP_CORE) |
---|
24 | |
---|
25 | #### Single location for defining total number of domains. You need |
---|
26 | #### at least 1 + 2*(number of total nests). For example, 1 coarse |
---|
27 | #### grid + three fine grids = 1 + 2(3) = 7, so MAX_DOMAINS=7. |
---|
28 | |
---|
29 | MAX_DOMAINS = 21 |
---|
30 | |
---|
31 | #### DM buffer length for the configuration flags. |
---|
32 | |
---|
33 | CONFIG_BUF_LEN = 16384 |
---|
34 | |
---|
35 | |
---|
36 | ############################################################################## |
---|
37 | #### The settings in this section are defaults that may be overridden by the |
---|
38 | #### architecture-specific settings in the next section. |
---|
39 | ############################################################################## |
---|
40 | |
---|
41 | ############################################################################## |
---|
42 | #### NOTE: Do not modify these default values here. To override these |
---|
43 | #### values, make changes after "Architecture specific settings". |
---|
44 | ############################################################################## |
---|
45 | |
---|
46 | #### Native size (in bytes) of Fortran REAL data type on this architecture #### |
---|
47 | #### Note: to change real wordsize (for example, to promote REALs from |
---|
48 | #### 4-byte to 8-byte), modify the definition of RWORDSIZE in the |
---|
49 | #### section following "Architecture specific settings". Do not |
---|
50 | #### change NATIVE_RWORDSIZE as is it architecture-specific. |
---|
51 | NATIVE_RWORDSIZE = 4 |
---|
52 | |
---|
53 | #### Default sed command and script for Fortran source files #### |
---|
54 | SED_FTN = sed -f ../arch/standard.sed |
---|
55 | |
---|
56 | # Hack to work around $(PWD) not changing during OSF1 build. |
---|
57 | # $(IO_GRIB_SHARE_DIR) is reset during the OSF1 build only. |
---|
58 | IO_GRIB_SHARE_DIR = |
---|
59 | |
---|
60 | #### ESMF switches #### |
---|
61 | #### These are set up by Config.pl #### |
---|
62 | # switch to use separately installed ESMF library for coupling: 1==true |
---|
63 | ESMF_COUPLING = 0 |
---|
64 | # select dependences on module_utility.o |
---|
65 | ESMF_MOD_DEPENDENCE = ../external/esmf_time_f90/module_utility.o |
---|
66 | # select -I options for separately installed ESMF library, if present |
---|
67 | ESMF_MOD_INC = |
---|
68 | # select -I options for external/io_esmf vs. external/esmf_time_f90 |
---|
69 | ESMF_IO_INC = -I../external/esmf_time_f90 |
---|
70 | # select cpp token for external/io_esmf vs. external/esmf_time_f90 |
---|
71 | ESMF_IO_DEFS = |
---|
72 | # select build target for external/io_esmf vs. external/esmf_time_f90 |
---|
73 | ESMF_TARGET = esmf_time |
---|
74 | |
---|
75 | ############################################################################## |
---|
76 | |
---|
77 | |
---|
78 | #### Architecture specific settings #### |
---|
79 | |
---|
80 | # Settings for PC Linux x86_64 (IA64 and Opteron), PGI 5.2 or higher DM-Parallel (RSL_LITE, MPICH, Allows nesting, No periodic LBCs) |
---|
81 | # Note that for 5.1.x comment out -Mpia=fast |
---|
82 | # |
---|
83 | # Notes: for experimental implementation of moving nests, add -DMOVE_NESTS to ARCHFLAGS |
---|
84 | # for experimental implementation of vortex tracking nests, add -DMOVE_NESTS -DVORTEX_CENTER to ARCHFLAGS |
---|
85 | # |
---|
86 | DMPARALLEL = 1 |
---|
87 | MAX_PROC = 1024 |
---|
88 | FC = $(WHERE_MPI)/mpif90 |
---|
89 | LD = $(WHERE_MPI)/mpif90 |
---|
90 | CC = $(WHERE_MPI)/mpicc -DMPI2_SUPPORT -DFSEEKO64_OK |
---|
91 | SCC = gcc |
---|
92 | SFC = pgf90 |
---|
93 | RWORDSIZE = $(NATIVE_RWORDSIZE) |
---|
94 | PROMOTION = -r$(RWORDSIZE) -i4 |
---|
95 | CFLAGS = -DDM_PARALLEL \ |
---|
96 | -DMAXDOM_MAKE=$(MAX_DOMAINS) -DMAXPROC_MAKE=$(MAX_PROC) -I../external/RSL_LITE \ |
---|
97 | -DLANDREAD_STUB |
---|
98 | FCOPTIM = -fastsse #-Mipa=fast |
---|
99 | FCDEBUG = #-g |
---|
100 | #FCBASEOPTS = -w -byteswapio -Ktrap=fp -Mfree $(FCDEBUG) |
---|
101 | FCBASEOPTS = -w -byteswapio -Mfree $(FCDEBUG) |
---|
102 | FCFLAGS = $(FCOPTIM) $(FCBASEOPTS) |
---|
103 | ARCHFLAGS = -DGRIB1 -DINTIO -DDM_PARALLEL \ |
---|
104 | -DIWORDSIZE=4 -DDWORDSIZE=8 -DRWORDSIZE=$(RWORDSIZE) -DLWORDSIZE=4 -DNETCDF \ |
---|
105 | -DLIMIT_ARGS -DLANDREAD_STUB |
---|
106 | # machine-specific flags needed to link in ESMF library (C++ run-time-library, etc.) |
---|
107 | ESMF_LIB_FLAGS = |
---|
108 | ESMF_IO_LIB = -L../external/esmf_time_f90 -lesmf_time |
---|
109 | ESMF_IO_LIB_EXT = -L../../external/esmf_time_f90 -lesmf_time |
---|
110 | INCLUDE_MODULES = -module ../main -I../external/io_netcdf -I../external/io_int -I../external/esmf_time_f90 \ |
---|
111 | -I../external -I../frame -I../share -I../phys -I../inc -I../chem |
---|
112 | PERL = perl |
---|
113 | REGISTRY = Registry |
---|
114 | LIB = -L../external/io_netcdf -lwrfio_nf -L/donnees/emlmd/netcdf64/netcdf-3.6.1/lib -lnetcdf -L../external/RSL_LITE -lrsl_lite \ |
---|
115 | -L../external/io_grib1 -lio_grib1 \ |
---|
116 | \ |
---|
117 | -L../external/io_grib_share -lio_grib_share \ |
---|
118 | -L../external/io_int -lwrfio_int \ |
---|
119 | ../frame/module_internal_header_util.o ../frame/pack_utils.o -L../external/esmf_time_f90 -lesmf_time -L../mars_lmd/libo -llmd |
---|
120 | LDFLAGS = -byteswapio |
---|
121 | ENVCOMPDEFS = |
---|
122 | WRF_CHEM = 0 |
---|
123 | CPP = /lib/cpp -C -P -traditional |
---|
124 | POUND_DEF = -DNO_RRTM_PHYSICS -traditional $(COREDEFS) -DNONSTANDARD_SYSTEM -DCONFIG_BUF_LEN=$(CONFIG_BUF_LEN) -DMAX_DOMAINS_F=$(MAX_DOMAINS) |
---|
125 | CPPFLAGS = -I$(LIBINCLUDE) -C -P $(ARCHFLAGS) -I../external/RSL_LITE -C -P `cat ../inc/dm_comm_cpp_flags` $(ENVCOMPDEFS) $(POUND_DEF) |
---|
126 | AR = ar ru |
---|
127 | M4 = m4 -B 14000 |
---|
128 | RANLIB = ranlib |
---|
129 | NETCDFPATH = /donnees/emlmd/netcdf64/netcdf-3.6.1 |
---|
130 | CC_TOOLS = cc |
---|
131 | |
---|
132 | externals : wrf_ioapi_includes wrfio_nf wrfio_grib_share wrfio_grib1 ../external/RSL_LITE/librsl_lite.a wrfio_int gen_comms.c module_dm.F esmf_time |
---|
133 | |
---|
134 | gen_comms.c : ../external/RSL_LITE/gen_comms.c |
---|
135 | ( /bin/cp ../tools/gen_comms_warning ../tools/gen_comms.c ; \ |
---|
136 | cat ../external/RSL_LITE/gen_comms.c >> ../tools/gen_comms.c ) |
---|
137 | |
---|
138 | module_dm.F : ../external/RSL_LITE/module_dm.F |
---|
139 | ( /bin/cp module_dm_warning module_dm.F ; cat ../external/RSL_LITE/module_dm.F >> module_dm.F ) |
---|
140 | |
---|
141 | wrfio_nf : |
---|
142 | ( cd ../external/io_netcdf ; \ |
---|
143 | make NETCDFPATH=/donnees/emlmd/netcdf64/netcdf-3.6.1 RANLIB="$(RANLIB)" CPP="$(CPP)" FC="$(FC) $(PROMOTION) $(FCFLAGS) -w" TRADFLAG="-traditional" ) |
---|
144 | |
---|
145 | wrfio_grib_share : |
---|
146 | ( cd ../external/io_grib_share ; \ |
---|
147 | make CC="$(SCC)" CFLAGS="$(CFLAGS)" RM="$(RM)" RANLIB="$(RANLIB)" CPP="$(CPP)" FC="$(SFC) $(PROMOTION) -I. $(FCDEBUG) $(FCBASEOPTS) -w" TRADFLAG="-traditional" archive) |
---|
148 | |
---|
149 | wrfio_grib1 : |
---|
150 | ( cd ../external/io_grib1 ; \ |
---|
151 | make CC="$(SCC)" CFLAGS="$(CFLAGS)" RANLIB="$(RANLIB)" CPP="$(CPP)" FC="$(SFC) $(PROMOTION) -I. $(FCDEBUG) $(FCBASEOPTS) -w" TRADFLAG="-traditional" archive) |
---|
152 | |
---|
153 | wrfio_grib2 : |
---|
154 | ( cd ../external/io_grib2 ; \ |
---|
155 | make CC="$(SCC)" CFLAGS="$(CFLAGS) " RM="$(RM)" RANLIB="$(RANLIB)" CPP="$(CPP)" FC="$(SFC) $(PROMOTION) -I. $(FCDEBUG) $(FCBASEOPTS) -w" TRADFLAG="-traditional" FIXED="-Mfixed" archive) |
---|
156 | |
---|
157 | wrfio_int : |
---|
158 | ( cd ../external/io_int ; \ |
---|
159 | make CC="$(CC)" RANLIB="$(RANLIB)" CPP="$(CPP)" SFC="$(SFC) $(PROMOTION) $(FCDEBUG) $(FCBASEOPTS)" FC="$(SFC) $(PROMOTION) $(FCDEBUG) $(FCBASEOPTS) -w" TRADFLAG="-traditional" all ) |
---|
160 | |
---|
161 | esmf_time : |
---|
162 | ( cd ../external/esmf_time_f90 ; \ |
---|
163 | make FC="$(FC) $(PROMOTION) $(FCDEBUG) $(FCBASEOPTS)" RANLIB="$(RANLIB)" CPP="$(CPP) -I../../inc -I. $(POUND_DEF)" ) |
---|
164 | |
---|
165 | ../external/RSL_LITE/librsl_lite.a : |
---|
166 | ( cd ../external/RSL_LITE ; make CC="$(CC)" FC="$(FC) $(PROMOTION) $(FCFLAGS) -byteswapio" MAX_DOMAINS=$(MAX_DOMAINS) MAX_PROC=$(MAX_PROC) LEARN_BCAST=-DLEARN_BCAST ) |
---|
167 | |
---|
168 | # compile these without high optimization to speed compile |
---|
169 | solve_interface.o : solve_interface.F |
---|
170 | shift_domain_em.o : shift_domain_em.F |
---|
171 | module_io_mm5.o : module_io_mm5.F |
---|
172 | module_si_io.o : module_si_io.F |
---|
173 | module_io_wrf.o : module_io_wrf.F |
---|
174 | module_domain.o : module_domain.F |
---|
175 | module_start.o : module_start.F |
---|
176 | module_initialize.o : module_initialize.F |
---|
177 | module_initialize_b_wave.o : module_initialize_b_wave.F |
---|
178 | module_initialize_hill2d_x.o : module_initialize_hill2d_x.F |
---|
179 | module_initialize_quarter_ss.o : module_initialize_quarter_ss.F |
---|
180 | module_initialize_squall2d_x.o : module_initialize_squall2d_x.F |
---|
181 | module_initialize_squall2d_y.o : module_initialize_squall2d_y.F |
---|
182 | module_initialize_real.o : module_initialize_real.F |
---|
183 | module_dm.o : module_dm.F |
---|
184 | start_domain.o : start_domain.F |
---|
185 | mediation_integrate.o : mediation_integrate.F |
---|
186 | module_configure.o : module_configure.F |
---|
187 | |
---|
188 | solve_interface.o \ |
---|
189 | shift_domain_em.o \ |
---|
190 | module_io_mm5.o module_si_io.o module_io_wrf.o module_domain.o \ |
---|
191 | module_start.o module_initialize.o module_initialize_b_wave.o \ |
---|
192 | module_initialize_hill2d_x.o module_initialize_quarter_ss.o \ |
---|
193 | module_initialize_squall2d_x.o module_initialize_squall2d_y.o \ |
---|
194 | mediation_integrate.o \ |
---|
195 | module_configure.o \ |
---|
196 | module_initialize_real.o module_dm.o start_domain.o : |
---|
197 | $(RM) $@ |
---|
198 | $(SED_FTN) $*.F > $*.b |
---|
199 | $(CPP) -I../inc $(CPPFLAGS) $*.b > $*.f90 |
---|
200 | $(RM) $*.b |
---|
201 | $(FC) -c $(PROMOTION) $(FCBASEOPTS) $(MODULE_DIRS) $*.f90 |
---|
202 | |
---|
203 | ########################################################### |
---|
204 | |
---|
205 | |
---|
206 | # These sub-directory builds are identical across all architectures |
---|
207 | wrfio_esmf : |
---|
208 | ( cd ../external/io_esmf ; \ |
---|
209 | make FC="$(FC) $(PROMOTION) $(FCDEBUG) $(FCBASEOPTS) $(ESMF_MOD_INC)" RANLIB="$(RANLIB)" CPP="$(CPP) $(POUND_DEF) " ) |
---|
210 | |
---|
211 | |
---|
212 | # |
---|
213 | # Macros, these should be generic for all machines |
---|
214 | |
---|
215 | LN = ln -sf |
---|
216 | MAKE = make -i -r |
---|
217 | RM = rm -f |
---|
218 | |
---|
219 | # There is probably no reason to modify these rules |
---|
220 | |
---|
221 | wrf_ioapi_includes : |
---|
222 | ( cd ../external/ioapi_share ; \ |
---|
223 | $(MAKE) NATIVE_RWORDSIZE="$(NATIVE_RWORDSIZE)" RWORDSIZE="$(RWORDSIZE)" ) |
---|
224 | |
---|
225 | .F.i: |
---|
226 | $(RM) $@ |
---|
227 | $(CPP) -I../inc $(CPPFLAGS) $*.F > $@ |
---|
228 | mv $*.i $(DEVTOP)/pick/$*.f90 |
---|
229 | cp $*.F $(DEVTOP)/pick |
---|
230 | |
---|
231 | .F.o: |
---|
232 | $(RM) $@ |
---|
233 | $(SED_FTN) $*.F > $*.b |
---|
234 | $(CPP) -I../inc $(CPPFLAGS) $*.b > $*.f90 |
---|
235 | $(RM) $*.b |
---|
236 | $(FC) -c $(FCFLAGS) $(MODULE_DIRS) $(PROMOTION) $(FCSUFFIX) $*.f90 |
---|
237 | #PGI if [ ! -e $@ ] ; then \ |
---|
238 | #PGI sleep 10 ; $(FC) -c $(FCFLAGS) $(MODULE_DIRS) $(PROMOTION) $(FCSUFFIX) $*.f90 ; \ |
---|
239 | #PGI fi |
---|
240 | #PGI if [ ! -e $@ ] ; then \ |
---|
241 | #PGI sleep 10 ; $(FC) -c $(FCFLAGS) $(MODULE_DIRS) $(PROMOTION) $(FCSUFFIX) $*.f90 ; \ |
---|
242 | #PGI fi |
---|
243 | |
---|
244 | .F.f90: |
---|
245 | $(RM) $@ |
---|
246 | $(SED_FTN) $*.F > $*.b |
---|
247 | $(CPP) -I../inc $(CPPFLAGS) $*.b > $@ |
---|
248 | $(RM) $*.b |
---|
249 | |
---|
250 | .f90.o: |
---|
251 | $(RM) $@ |
---|
252 | $(FC) -c $(FCFLAGS) $(PROMOTION) $(FCSUFFIX) $*.f90 |
---|
253 | #PGI if [ ! -e $@ ] ; then \ |
---|
254 | #PGI sleep 10 ; $(FC) -c $(FCFLAGS) $(PROMOTION) $(FCSUFFIX) $*.f90 ; \ |
---|
255 | #PGI fi |
---|
256 | #PGI if [ ! -e $@ ] ; then \ |
---|
257 | #PGI sleep 10 ; $(FC) -c $(FCFLAGS) $(PROMOTION) $(FCSUFFIX) $*.f90 ; \ |
---|
258 | #PGI fi |
---|
259 | |
---|
260 | .c.o: |
---|
261 | $(RM) $@ |
---|
262 | $(CC) -c $(CFLAGS) $*.c |
---|
263 | |
---|