source: trunk/MESOSCALE/LMD_MM_MARS/SIMU/gnu_64.configure.wrf @ 206

Last change on this file since 206 was 31, checked in by aslmd, 14 years ago

LMD_MM_MARS: teste compilation, scripts additionnels et initialisation nouvelle physique

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