source: trunk/WRF.COMMON/WRFV2/configure.wrf_MPICH @ 3094

Last change on this file since 3094 was 11, checked in by aslmd, 14 years ago

spiga@svn-planeto:ajoute le modele meso-echelle martien

File size: 10.9 KB
Line 
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#
12SHELL           =       /bin/sh
13DEVTOP          =       `pwd`
14LIBINCLUDE      =       .
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
20COREDEFS = -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
29MAX_DOMAINS     =       21
30
31#### DM buffer length for the configuration flags.
32
33CONFIG_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. 
51NATIVE_RWORDSIZE = 4
52
53#### Default sed command and script for Fortran source files ####
54SED_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. 
58IO_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
63ESMF_COUPLING       = 0
64# select dependences on module_utility.o
65ESMF_MOD_DEPENDENCE = ../external/esmf_time_f90/module_utility.o
66# select -I options for separately installed ESMF library, if present
67ESMF_MOD_INC        =
68# select -I options for external/io_esmf vs. external/esmf_time_f90
69ESMF_IO_INC         = -I../external/esmf_time_f90
70# select cpp token for external/io_esmf vs. external/esmf_time_f90
71ESMF_IO_DEFS        =
72# select build target for external/io_esmf vs. external/esmf_time_f90
73ESMF_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#
86DMPARALLEL      =       1
87MAX_PROC        =       1024
88FC              =       $(WHERE_MPI)/mpif90
89LD              =       $(WHERE_MPI)/mpif90
90CC              =       $(WHERE_MPI)/mpicc -DMPI2_SUPPORT -DFSEEKO64_OK
91SCC             =       gcc
92SFC             =       pgf90
93RWORDSIZE       =       $(NATIVE_RWORDSIZE)
94PROMOTION       =       -r$(RWORDSIZE) -i4
95CFLAGS          =       -DDM_PARALLEL \
96                        -DMAXDOM_MAKE=$(MAX_DOMAINS) -DMAXPROC_MAKE=$(MAX_PROC) -I../external/RSL_LITE \
97                        -DLANDREAD_STUB
98FCOPTIM         =       -fastsse #-Mipa=fast
99FCDEBUG         =       #-g
100#FCBASEOPTS      =       -w -byteswapio -Ktrap=fp -Mfree $(FCDEBUG)
101FCBASEOPTS      =       -w -byteswapio -Mfree $(FCDEBUG)
102FCFLAGS         =       $(FCOPTIM) $(FCBASEOPTS)
103ARCHFLAGS       =       -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.)
107ESMF_LIB_FLAGS  =       
108ESMF_IO_LIB     =       -L../external/esmf_time_f90 -lesmf_time
109ESMF_IO_LIB_EXT =       -L../../external/esmf_time_f90 -lesmf_time
110INCLUDE_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
112PERL            =       perl
113REGISTRY        =       Registry
114LIB             =       -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
120LDFLAGS         =       -byteswapio
121ENVCOMPDEFS     =       
122WRF_CHEM        =       0
123CPP             =       /lib/cpp -C -P -traditional
124POUND_DEF       =       -DNO_RRTM_PHYSICS  -traditional $(COREDEFS) -DNONSTANDARD_SYSTEM -DCONFIG_BUF_LEN=$(CONFIG_BUF_LEN) -DMAX_DOMAINS_F=$(MAX_DOMAINS)
125CPPFLAGS        =       -I$(LIBINCLUDE) -C -P $(ARCHFLAGS) -I../external/RSL_LITE -C -P `cat ../inc/dm_comm_cpp_flags` $(ENVCOMPDEFS) $(POUND_DEF)
126AR              =       ar ru
127M4              =       m4 -B 14000
128RANLIB          =       ranlib
129NETCDFPATH      =       /donnees/emlmd/netcdf64/netcdf-3.6.1
130CC_TOOLS        =       cc
131
132externals : 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
134gen_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
138module_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
141wrfio_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
145wrfio_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
149wrfio_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
153wrfio_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
157wrfio_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
161esmf_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
169solve_interface.o : solve_interface.F
170shift_domain_em.o : shift_domain_em.F
171module_io_mm5.o : module_io_mm5.F
172module_si_io.o : module_si_io.F
173module_io_wrf.o : module_io_wrf.F
174module_domain.o : module_domain.F
175module_start.o : module_start.F
176module_initialize.o : module_initialize.F
177module_initialize_b_wave.o : module_initialize_b_wave.F
178module_initialize_hill2d_x.o : module_initialize_hill2d_x.F
179module_initialize_quarter_ss.o : module_initialize_quarter_ss.F
180module_initialize_squall2d_x.o : module_initialize_squall2d_x.F
181module_initialize_squall2d_y.o : module_initialize_squall2d_y.F
182module_initialize_real.o : module_initialize_real.F
183module_dm.o : module_dm.F
184start_domain.o : start_domain.F
185mediation_integrate.o : mediation_integrate.F
186module_configure.o : module_configure.F
187
188solve_interface.o                                              \
189shift_domain_em.o                                              \
190module_io_mm5.o module_si_io.o module_io_wrf.o module_domain.o \
191module_start.o module_initialize.o module_initialize_b_wave.o  \
192module_initialize_hill2d_x.o module_initialize_quarter_ss.o    \
193module_initialize_squall2d_x.o module_initialize_squall2d_y.o  \
194mediation_integrate.o \
195module_configure.o                                             \
196module_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
207wrfio_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
215LN      =       ln -sf
216MAKE    =       make -i -r
217RM      =       rm -f
218
219#       There is probably no reason to modify these rules
220
221wrf_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
Note: See TracBrowser for help on using the repository browser.