source: trunk/WRF.COMMON/WRFV2/configure.wrf.backup @ 3431

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

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

File size: 9.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 compiler 5.2 or higher  (Single-threaded, no nesting)
81#        Note that for 5.1.x comment out -Mpia=fast
82#
83FC              =       pgf90
84LD              =       pgf90
85CC              =       gcc -DFSEEKO64_OK
86SCC             =       $(CC)
87SFC             =       $(FC)
88RWORDSIZE       =       $(NATIVE_RWORDSIZE)
89PROMOTION       =       -r$(RWORDSIZE) -i4
90CFLAGS          =       -DLANDREAD_STUB
91FCOPTIM         =       -fastsse #-Mipa=fast
92FCDEBUG         =       #-g
93#FCBASEOPTS      =       -w -byteswapio -Ktrap=fp -Mfree $(FCDEBUG)
94FCBASEOPTS      =       -w -byteswapio -Mfree $(FCDEBUG)
95FCFLAGS         =       $(FCOPTIM) $(FCBASEOPTS)
96ARCHFLAGS       =       -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.)
100ESMF_LIB_FLAGS  =       
101ESMF_IO_LIB     =       -L../external/esmf_time_f90 -lesmf_time
102ESMF_IO_LIB_EXT =       -L../../external/esmf_time_f90 -lesmf_time
103INCLUDE_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
105PERL            =       perl
106REGISTRY        =       Registry
107LIB             =       -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) ***
114LDFLAGS         =       
115ENVCOMPDEFS     =       
116WRF_CHEM        =       0
117CPP             =       /lib/cpp -C -P -traditional
118POUND_DEF       =       -traditional $(COREDEFS) -DNONSTANDARD_SYSTEM -DCONFIG_BUF_LEN=$(CONFIG_BUF_LEN) -DMAX_DOMAINS_F=$(MAX_DOMAINS)
119CPPFLAGS        =       -I$(LIBINCLUDE) -C -P $(ARCHFLAGS) $(ENVCOMPDEFS) $(POUND_DEF)
120AR              =       ar ru
121M4              =       m4 -B 14000
122RANLIB          =       ranlib
123NETCDFPATH      =       /donnees/emlmd/netcdf64/netcdf-3.6.1
124CC_TOOLS        =       $(CC)
125
126externals : wrf_ioapi_includes wrfio_nf wrfio_grib_share wrfio_grib1  wrfio_int module_dm.F esmf_time
127
128module_dm.F :
129        ( /bin/cp module_dm_warning module_dm.F ; cat module_dm_stubs.F >> module_dm.F )
130
131wrfio_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
135wrfio_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
139wrfio_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
143wrfio_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
147wrfio_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
152esmf_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
157solve_interface.o : solve_interface.F
158shift_domain_em.o : shift_domain_em.F
159module_io_mm5.o : module_io_mm5.F
160module_si_io.o : module_si_io.F
161module_io_wrf.o : module_io_wrf.F
162module_domain.o : module_domain.F
163module_start.o : module_start.F
164module_initialize.o : module_initialize.F
165module_initialize_b_wave.o : module_initialize_b_wave.F
166module_initialize_hill2d_x.o : module_initialize_hill2d_x.F
167module_initialize_quarter_ss.o : module_initialize_quarter_ss.F
168module_initialize_squall2d_x.o : module_initialize_squall2d_x.F
169module_initialize_squall2d_y.o : module_initialize_squall2d_y.F
170module_initialize_real.o : module_initialize_real.F
171module_dm.o : module_dm.F
172start_domain.o : start_domain.F
173mediation_integrate.o : mediation_integrate.F
174module_configure.o : module_configure.F
175
176solve_interface.o                                              \
177shift_domain_em.o                                              \
178module_io_mm5.o module_si_io.o module_io_wrf.o module_domain.o \
179module_start.o module_initialize.o module_initialize_b_wave.o  \
180module_initialize_hill2d_x.o module_initialize_quarter_ss.o    \
181module_initialize_squall2d_x.o module_initialize_squall2d_y.o  \
182mediation_integrate.o \
183module_configure.o                                             \
184module_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
194wrfio_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
202LN      =       ln -sf
203MAKE    =       make -i -r
204RM      =       rm -f
205
206#       There is probably no reason to modify these rules
207
208wrf_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
Note: See TracBrowser for help on using the repository browser.