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 compiler 5.2 or higher (Single-threaded, no nesting) |
---|
81 | # Note that for 5.1.x comment out -Mpia=fast |
---|
82 | # |
---|
83 | FC = pgf90 |
---|
84 | LD = pgf90 |
---|
85 | CC = gcc -DFSEEKO64_OK |
---|
86 | SCC = $(CC) |
---|
87 | SFC = $(FC) |
---|
88 | RWORDSIZE = $(NATIVE_RWORDSIZE) |
---|
89 | PROMOTION = -r$(RWORDSIZE) -i4 |
---|
90 | CFLAGS = -DLANDREAD_STUB |
---|
91 | FCOPTIM = -fastsse #-Mipa=fast |
---|
92 | FCDEBUG = #-g |
---|
93 | #FCBASEOPTS = -w -byteswapio -Ktrap=fp -Mfree $(FCDEBUG) |
---|
94 | FCBASEOPTS = -w -byteswapio -Mfree $(FCDEBUG) |
---|
95 | FCFLAGS = $(FCOPTIM) $(FCBASEOPTS) |
---|
96 | ARCHFLAGS = -DIWORDSIZE=4 -DDWORDSIZE=8 -DRWORDSIZE=$(RWORDSIZE) -DLWORDSIZE=4 \ |
---|
97 | -DNETCDF -DGRIB1 \ |
---|
98 | -DLIMIT_ARGS -DLANDREAD_STUB |
---|
99 | # machine-specific flags needed to link in ESMF library (C++ run-time-library, etc.) |
---|
100 | ESMF_LIB_FLAGS = |
---|
101 | ESMF_IO_LIB = -L../external/esmf_time_f90 -lesmf_time |
---|
102 | ESMF_IO_LIB_EXT = -L../../external/esmf_time_f90 -lesmf_time |
---|
103 | INCLUDE_MODULES = -module ../main -I../external/io_netcdf -I../external/io_int -I../external/esmf_time_f90 \ |
---|
104 | -I../frame -I../share -I../phys -I../inc -I../chem |
---|
105 | PERL = perl |
---|
106 | REGISTRY = Registry |
---|
107 | LIB = -L../external/io_netcdf -lwrfio_nf -L/donnees/emlmd/netcdf64/netcdf-3.6.1/lib -lnetcdf \ |
---|
108 | -L../external/io_grib1 -lio_grib1 \ |
---|
109 | \ |
---|
110 | -L../external/io_grib_share -lio_grib_share \ |
---|
111 | ../frame/module_internal_header_util.o ../frame/pack_utils.o -L../external/esmf_time_f90 -lesmf_time \ |
---|
112 | -L../mars_lmd/libo -llmd |
---|
113 | # *** last line is the library for the LMD physics (must be prepared prior to the WRF compilation) *** |
---|
114 | LDFLAGS = |
---|
115 | ENVCOMPDEFS = |
---|
116 | WRF_CHEM = 0 |
---|
117 | CPP = /lib/cpp -C -P -traditional |
---|
118 | POUND_DEF = -traditional $(COREDEFS) -DNONSTANDARD_SYSTEM -DCONFIG_BUF_LEN=$(CONFIG_BUF_LEN) -DMAX_DOMAINS_F=$(MAX_DOMAINS) |
---|
119 | CPPFLAGS = -I$(LIBINCLUDE) -C -P $(ARCHFLAGS) $(ENVCOMPDEFS) $(POUND_DEF) |
---|
120 | AR = ar ru |
---|
121 | M4 = m4 -B 14000 |
---|
122 | RANLIB = ranlib |
---|
123 | NETCDFPATH = /donnees/emlmd/netcdf64/netcdf-3.6.1 |
---|
124 | CC_TOOLS = $(CC) |
---|
125 | |
---|
126 | externals : wrf_ioapi_includes wrfio_nf wrfio_grib_share wrfio_grib1 wrfio_int module_dm.F esmf_time |
---|
127 | |
---|
128 | module_dm.F : |
---|
129 | ( /bin/cp module_dm_warning module_dm.F ; cat module_dm_stubs.F >> module_dm.F ) |
---|
130 | |
---|
131 | wrfio_nf : |
---|
132 | ( cd ../external/io_netcdf ; \ |
---|
133 | make NETCDFPATH=/donnees/emlmd/netcdf64/netcdf-3.6.1 RANLIB="$(RANLIB)" CPP="$(CPP)" FC="$(FC) $(PROMOTION) $(FCFLAGS) -w" TRADFLAG="-traditional" ) |
---|
134 | |
---|
135 | wrfio_grib_share : |
---|
136 | ( cd ../external/io_grib_share ; \ |
---|
137 | make CC="$(SCC)" CFLAGS="$(CFLAGS)" RM="$(RM)" RANLIB="$(RANLIB)" CPP="$(CPP)" FC="$(SFC) $(PROMOTION) -I. $(FCDEBUG) $(FCBASEOPTS) -w" TRADFLAG="-traditional" archive) |
---|
138 | |
---|
139 | wrfio_grib1 : |
---|
140 | ( cd ../external/io_grib1 ; \ |
---|
141 | make CC="$(SCC)" CFLAGS="$(CFLAGS)" RANLIB="$(RANLIB)" CPP="$(CPP)" FC="$(SFC) $(PROMOTION) -I. $(FCDEBUG) $(FCBASEOPTS) -w" TRADFLAG="-traditional" archive) |
---|
142 | |
---|
143 | wrfio_grib2 : |
---|
144 | ( cd ../external/io_grib2 ; \ |
---|
145 | make CC="$(SCC)" CFLAGS="$(CFLAGS) " RM="$(RM)" RANLIB="$(RANLIB)" CPP="$(CPP)" FC="$(SFC) $(PROMOTION) -I. $(FCDEBUG) $(FCBASEOPTS) -w" TRADFLAG="-traditional" FIXED="-Mfixed" archive) |
---|
146 | |
---|
147 | wrfio_int : |
---|
148 | ( cd ../external/io_int ; \ |
---|
149 | make CC="$(CC)" RANLIB="$(RANLIB)" CPP="$(CPP)" SFC="$(SFC) $(PROMOTION) $(FCDEBUG) $(FCBASEOPTS)" FC="$(SFC) $(PROMOTION) $(FCDEBUG) $(FCBASEOPTS) -w" \ |
---|
150 | TRADFLAG="-traditional" all ) |
---|
151 | |
---|
152 | esmf_time : |
---|
153 | ( cd ../external/esmf_time_f90 ; \ |
---|
154 | make FC="$(FC) $(PROMOTION) $(FCDEBUG) $(FCBASEOPTS)" RANLIB="$(RANLIB)" CPP="$(CPP) -I../../inc -I. $(POUND_DEF)" ) |
---|
155 | |
---|
156 | # compile these without high optimization to speed compile |
---|
157 | solve_interface.o : solve_interface.F |
---|
158 | shift_domain_em.o : shift_domain_em.F |
---|
159 | module_io_mm5.o : module_io_mm5.F |
---|
160 | module_si_io.o : module_si_io.F |
---|
161 | module_io_wrf.o : module_io_wrf.F |
---|
162 | module_domain.o : module_domain.F |
---|
163 | module_start.o : module_start.F |
---|
164 | module_initialize.o : module_initialize.F |
---|
165 | module_initialize_b_wave.o : module_initialize_b_wave.F |
---|
166 | module_initialize_hill2d_x.o : module_initialize_hill2d_x.F |
---|
167 | module_initialize_quarter_ss.o : module_initialize_quarter_ss.F |
---|
168 | module_initialize_squall2d_x.o : module_initialize_squall2d_x.F |
---|
169 | module_initialize_squall2d_y.o : module_initialize_squall2d_y.F |
---|
170 | module_initialize_real.o : module_initialize_real.F |
---|
171 | module_dm.o : module_dm.F |
---|
172 | start_domain.o : start_domain.F |
---|
173 | mediation_integrate.o : mediation_integrate.F |
---|
174 | module_configure.o : module_configure.F |
---|
175 | |
---|
176 | solve_interface.o \ |
---|
177 | shift_domain_em.o \ |
---|
178 | module_io_mm5.o module_si_io.o module_io_wrf.o module_domain.o \ |
---|
179 | module_start.o module_initialize.o module_initialize_b_wave.o \ |
---|
180 | module_initialize_hill2d_x.o module_initialize_quarter_ss.o \ |
---|
181 | module_initialize_squall2d_x.o module_initialize_squall2d_y.o \ |
---|
182 | mediation_integrate.o \ |
---|
183 | module_configure.o \ |
---|
184 | module_initialize_real.o module_dm.o start_domain.o : |
---|
185 | $(RM) $@ |
---|
186 | $(SED_FTN) $*.F > $*.b |
---|
187 | $(CPP) -I../inc $(CPPFLAGS) $*.b > $*.f90 |
---|
188 | $(RM) $*.b |
---|
189 | $(FC) -c $(PROMOTION) $(FCBASEOPTS) $(MODULE_DIRS) $*.f90 |
---|
190 | |
---|
191 | ########################################################### |
---|
192 | |
---|
193 | # These sub-directory builds are identical across all architectures |
---|
194 | wrfio_esmf : |
---|
195 | ( cd ../external/io_esmf ; \ |
---|
196 | make FC="$(FC) $(PROMOTION) $(FCDEBUG) $(FCBASEOPTS) $(ESMF_MOD_INC)" RANLIB="$(RANLIB)" CPP="$(CPP) $(POUND_DEF) " ) |
---|
197 | |
---|
198 | |
---|
199 | # |
---|
200 | # Macros, these should be generic for all machines |
---|
201 | |
---|
202 | LN = ln -sf |
---|
203 | MAKE = make -i -r |
---|
204 | RM = rm -f |
---|
205 | |
---|
206 | # There is probably no reason to modify these rules |
---|
207 | |
---|
208 | wrf_ioapi_includes : |
---|
209 | ( cd ../external/ioapi_share ; \ |
---|
210 | $(MAKE) NATIVE_RWORDSIZE="$(NATIVE_RWORDSIZE)" RWORDSIZE="$(RWORDSIZE)" ) |
---|
211 | |
---|
212 | .F.i: |
---|
213 | $(RM) $@ |
---|
214 | $(CPP) -I../inc $(CPPFLAGS) $*.F > $@ |
---|
215 | mv $*.i $(DEVTOP)/pick/$*.f90 |
---|
216 | cp $*.F $(DEVTOP)/pick |
---|
217 | |
---|
218 | .F.o: |
---|
219 | $(RM) $@ |
---|
220 | $(SED_FTN) $*.F > $*.b |
---|
221 | $(CPP) -I../inc $(CPPFLAGS) $*.b > $*.f90 |
---|
222 | $(RM) $*.b |
---|
223 | $(FC) -c $(FCFLAGS) $(MODULE_DIRS) $(PROMOTION) $(FCSUFFIX) $*.f90 |
---|
224 | #PGI if [ ! -e $@ ] ; then \ |
---|
225 | #PGI sleep 10 ; $(FC) -c $(FCFLAGS) $(MODULE_DIRS) $(PROMOTION) $(FCSUFFIX) $*.f90 ; \ |
---|
226 | #PGI fi |
---|
227 | #PGI if [ ! -e $@ ] ; then \ |
---|
228 | #PGI sleep 10 ; $(FC) -c $(FCFLAGS) $(MODULE_DIRS) $(PROMOTION) $(FCSUFFIX) $*.f90 ; \ |
---|
229 | #PGI fi |
---|
230 | |
---|
231 | .F.f90: |
---|
232 | $(RM) $@ |
---|
233 | $(SED_FTN) $*.F > $*.b |
---|
234 | $(CPP) -I../inc $(CPPFLAGS) $*.b > $@ |
---|
235 | $(RM) $*.b |
---|
236 | |
---|
237 | .f90.o: |
---|
238 | $(RM) $@ |
---|
239 | $(FC) -c $(FCFLAGS) $(PROMOTION) $(FCSUFFIX) $*.f90 |
---|
240 | #PGI if [ ! -e $@ ] ; then \ |
---|
241 | #PGI sleep 10 ; $(FC) -c $(FCFLAGS) $(PROMOTION) $(FCSUFFIX) $*.f90 ; \ |
---|
242 | #PGI fi |
---|
243 | #PGI if [ ! -e $@ ] ; then \ |
---|
244 | #PGI sleep 10 ; $(FC) -c $(FCFLAGS) $(PROMOTION) $(FCSUFFIX) $*.f90 ; \ |
---|
245 | #PGI fi |
---|
246 | |
---|
247 | .c.o: |
---|
248 | $(RM) $@ |
---|
249 | $(CC) -c $(CFLAGS) $*.c |
---|
250 | |
---|