source: trunk/MESOSCALE/LMD_MM_MARS/SRC/WRFV2/configure.wrf_Mars @ 1853

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

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

File size: 10.2 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 i486 i586 i686, PGI compiler  (Single-threaded, no nesting)
81#
82FC              =       pgf90
83LD              =       pgf90
84CC              =       gcc -DFSEEKO64_OK
85SCC             =       $(CC)
86RWORDSIZE       =       $(NATIVE_RWORDSIZE)
87SFC             =       $(FC)
88PROMOTION       =       -r$(RWORDSIZE) -i4
89CFLAGS          =
90FCOPTIM         =       -O2 # -fast
91FCDEBUG         =       #-g
92#FCBASEOPTS      =       -w -byteswapio -Ktrap=fp -Mfree $(FCDEBUG)
93FCBASEOPTS      =       -w -byteswapio -Mfree $(FCDEBUG) # -Mlfs
94#FCBASEOPTS      =       -w -byteswapio -Mfree -Mipa=fast,inline,safe  $(FCDEBUG) # -Mlfs
95FCFLAGS         =       $(FCOPTIM) $(FCBASEOPTS)
96ARCHFLAGS       =       -DIWORDSIZE=4 -DDWORDSIZE=8 -DRWORDSIZE=$(RWORDSIZE) -DLWORDSIZE=4 \
97                         -DNETCDF -DGRIB1  \
98                        -DLIMIT_ARGS
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../chem -I../inc
105PERL            =       perl
106REGISTRY        =       Registry
107LIB             =       -L../external/io_netcdf -lwrfio_nf -L/home/aymeric/Software/netcdf_pgi/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         =       $(FCFLAGS) -byteswapio
115ENVCOMPDEFS     =       
116WRF_CHEM        =       0
117CPP             =       /lib/cpp -C -P -traditional
118POUND_DEF       =       $(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      =       /home/aymeric/Software/netcdf_pgi
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=/home/aymeric/Software/netcdf_pgi 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
157# compile these without high optimization to speed compile
158solve_interface.o : solve_interface.F
159shift_domain_em.o : shift_domain_em.F
160module_io_mm5.o : module_io_mm5.F
161module_si_io.o : module_si_io.F
162module_io_wrf.o : module_io_wrf.F
163module_domain.o : module_domain.F
164module_start.o : module_start.F
165module_initialize.o : module_initialize.F
166module_initialize_b_wave.o : module_initialize_b_wave.F
167module_initialize_hill2d_x.o : module_initialize_hill2d_x.F
168module_initialize_quarter_ss.o : module_initialize_quarter_ss.F
169module_initialize_squall2d_x.o : module_initialize_squall2d_x.F
170module_initialize_squall2d_y.o : module_initialize_squall2d_y.F
171module_initialize_real.o : module_initialize_real.F
172module_dm.o : module_dm.F
173start_domain.o : start_domain.F
174mediation_integrate.o : mediation_integrate.F
175module_configure.o : module_configure.F
176
177solve_interface.o                                              \
178shift_domain_em.o                                              \
179module_io_mm5.o module_si_io.o module_io_wrf.o module_domain.o \
180module_start.o module_initialize.o module_initialize_b_wave.o  \
181module_initialize_hill2d_x.o module_initialize_quarter_ss.o    \
182module_initialize_squall2d_x.o module_initialize_squall2d_y.o  \
183mediation_integrate.o \
184module_configure.o                                             \
185module_initialize_real.o module_dm.o start_domain.o :
186        $(RM) $@
187        $(SED_FTN) $*.F > $*.b
188        $(CPP) -I../inc $(CPPFLAGS) $*.b  > $*.f90
189        $(RM) $*.b
190        $(FC) -c $(PROMOTION) $(FCBASEOPTS) $(MODULE_DIRS) $*.f90
191#PGI    if [ ! -e $@ ] ; then \
192#PGI    sleep 10 ; $(FC) -c $(PROMOTION) $(FCBASEOPTS) $(MODULE_DIRS) $*.f90 ; \
193#PGI    fi
194#PGI    if [ ! -e $@ ] ; then \
195#PGI    sleep 30 ; $(FC) -c $(PROMOTION) $(FCBASEOPTS) $(MODULE_DIRS) $*.f90 ; \
196#PGI    fi
197#PGI    if [ ! -e $@ ] ; then \
198#PGI    sleep 300 ; $(FC) -c $(PROMOTION) $(FCBASEOPTS) $(MODULE_DIRS) $*.f90 ; \
199#PGI    fi
200
201###########################################################
202
203# These sub-directory builds are identical across all architectures
204wrfio_esmf :
205        ( cd ../external/io_esmf ; \
206        make FC="$(FC) $(PROMOTION) $(FCDEBUG) $(FCBASEOPTS) $(ESMF_MOD_INC)" RANLIB="$(RANLIB)" CPP="$(CPP) $(POUND_DEF) " )
207
208
209#
210#       Macros, these should be generic for all machines
211
212LN      =       ln -sf
213MAKE    =       make -i -r
214RM      =       rm -f
215
216#       There is probably no reason to modify these rules
217
218wrf_ioapi_includes :
219        ( cd ../external/ioapi_share ; \
220        $(MAKE) NATIVE_RWORDSIZE="$(NATIVE_RWORDSIZE)" RWORDSIZE="$(RWORDSIZE)" )
221
222.F.i:
223        $(RM) $@
224        $(CPP) -I../inc $(CPPFLAGS) $*.F > $@
225        mv $*.i $(DEVTOP)/pick/$*.f90
226        cp $*.F $(DEVTOP)/pick
227
228.F.o:
229        $(RM) $@
230        $(SED_FTN) $*.F > $*.b
231        $(CPP) -I../inc $(CPPFLAGS) $*.b  > $*.f90
232        $(RM) $*.b
233        $(FC) -c $(FCFLAGS) $(MODULE_DIRS) $(PROMOTION) $(FCSUFFIX) $*.f90
234#PGI    if [ ! -e $@ ] ; then \
235#PGI    sleep 10 ; $(FC) -c $(FCFLAGS) $(MODULE_DIRS) $(PROMOTION) $(FCSUFFIX) $*.f90 ; \
236#PGI    fi
237#PGI    if [ ! -e $@ ] ; then \
238#PGI    sleep 10 ; $(FC) -c $(FCFLAGS) $(MODULE_DIRS) $(PROMOTION) $(FCSUFFIX) $*.f90 ; \
239#PGI    fi
240
241.F.f90:
242        $(RM) $@
243        $(SED_FTN) $*.F > $*.b
244        $(CPP) -I../inc $(CPPFLAGS) $*.b  > $@
245        $(RM) $*.b
246
247.f90.o:
248        $(RM) $@
249        $(FC) -c $(FCFLAGS) $(PROMOTION) $(FCSUFFIX) $*.f90
250#PGI    if [ ! -e $@ ] ; then \
251#PGI    sleep 10 ; $(FC) -c $(FCFLAGS) $(PROMOTION) $(FCSUFFIX) $*.f90 ; \
252#PGI    fi
253#PGI    if [ ! -e $@ ] ; then \
254#PGI    sleep 10 ; $(FC) -c $(FCFLAGS) $(PROMOTION) $(FCSUFFIX) $*.f90 ; \
255#PGI    fi
256
257.c.o:
258        $(RM) $@
259        $(CC) -c $(CFLAGS) $*.c
260
Note: See TracBrowser for help on using the repository browser.