# configure.wrf # # This file was automatically generated by the configure script in the # top level directory. You may make changes to the settings in this # file but be aware they will be overwritten each time you run configure. # Ordinarily, it is necessary to run configure once, when the code is # first installed. # # To permanently change options, change the settings for your platform # in the file arch/configure.defaults then rerun configure. # SHELL = /bin/sh DEVTOP = `pwd` LIBINCLUDE = . .SUFFIXES: .F .i .o .f90 .c #### Get core settings from environment (set in compile script) #### Note to add a core, this has to be added to. COREDEFS = -DEM_CORE=$(WRF_EM_CORE) \ -DNMM_CORE=$(WRF_NMM_CORE) -DNMM_MAX_DIM=2600 \ -DCOAMPS_CORE=$(WRF_COAMPS_CORE) \ -DEXP_CORE=$(WRF_EXP_CORE) #### Single location for defining total number of domains. You need #### at least 1 + 2*(number of total nests). For example, 1 coarse #### grid + three fine grids = 1 + 2(3) = 7, so MAX_DOMAINS=7. MAX_DOMAINS = 21 #### DM buffer length for the configuration flags. CONFIG_BUF_LEN = 16384 ############################################################################## #### The settings in this section are defaults that may be overridden by the #### architecture-specific settings in the next section. ############################################################################## ############################################################################## #### NOTE: Do not modify these default values here. To override these #### values, make changes after "Architecture specific settings". ############################################################################## #### Native size (in bytes) of Fortran REAL data type on this architecture #### #### Note: to change real wordsize (for example, to promote REALs from #### 4-byte to 8-byte), modify the definition of RWORDSIZE in the #### section following "Architecture specific settings". Do not #### change NATIVE_RWORDSIZE as is it architecture-specific. NATIVE_RWORDSIZE = 4 #### Default sed command and script for Fortran source files #### SED_FTN = sed -f ../arch/standard.sed # Hack to work around $(PWD) not changing during OSF1 build. # $(IO_GRIB_SHARE_DIR) is reset during the OSF1 build only. IO_GRIB_SHARE_DIR = #### ESMF switches #### #### These are set up by Config.pl #### # switch to use separately installed ESMF library for coupling: 1==true ESMF_COUPLING = 0 # select dependences on module_utility.o ESMF_MOD_DEPENDENCE = ../external/esmf_time_f90/module_utility.o # select -I options for separately installed ESMF library, if present ESMF_MOD_INC = # select -I options for external/io_esmf vs. external/esmf_time_f90 ESMF_IO_INC = -I../external/esmf_time_f90 # select cpp token for external/io_esmf vs. external/esmf_time_f90 ESMF_IO_DEFS = # select build target for external/io_esmf vs. external/esmf_time_f90 ESMF_TARGET = esmf_time ############################################################################## #### Architecture specific settings #### # Settings for PC Linux x86_64 (IA64 and Opteron), PGI compiler 5.2 or higher (Single-threaded, no nesting) # Note that for 5.1.x comment out -Mpia=fast # FC = pgf90 LD = pgf90 CC = gcc -DFSEEKO64_OK SCC = $(CC) SFC = $(FC) RWORDSIZE = $(NATIVE_RWORDSIZE) PROMOTION = -r$(RWORDSIZE) -i4 CFLAGS = -DLANDREAD_STUB FCOPTIM = -fastsse #-Mipa=fast FCDEBUG = #-g #FCBASEOPTS = -w -byteswapio -Ktrap=fp -Mfree $(FCDEBUG) FCBASEOPTS = -w -byteswapio -Mfree $(FCDEBUG) FCFLAGS = $(FCOPTIM) $(FCBASEOPTS) ARCHFLAGS = -DIWORDSIZE=4 -DDWORDSIZE=8 -DRWORDSIZE=$(RWORDSIZE) -DLWORDSIZE=4 \ -DNETCDF -DGRIB1 \ -DLIMIT_ARGS -DLANDREAD_STUB # machine-specific flags needed to link in ESMF library (C++ run-time-library, etc.) ESMF_LIB_FLAGS = ESMF_IO_LIB = -L../external/esmf_time_f90 -lesmf_time ESMF_IO_LIB_EXT = -L../../external/esmf_time_f90 -lesmf_time INCLUDE_MODULES = -module ../main -I../external/io_netcdf -I../external/io_int -I../external/esmf_time_f90 \ -I../frame -I../share -I../phys -I../inc -I../chem PERL = perl REGISTRY = Registry LIB = -L../external/io_netcdf -lwrfio_nf -L/donnees/emlmd/netcdf64/netcdf-3.6.1/lib -lnetcdf \ -L../external/io_grib1 -lio_grib1 \ \ -L../external/io_grib_share -lio_grib_share \ ../frame/module_internal_header_util.o ../frame/pack_utils.o -L../external/esmf_time_f90 -lesmf_time \ -L../mars_lmd/libo -llmd # *** last line is the library for the LMD physics (must be prepared prior to the WRF compilation) *** LDFLAGS = ENVCOMPDEFS = WRF_CHEM = 0 CPP = /lib/cpp -C -P -traditional POUND_DEF = -traditional $(COREDEFS) -DNONSTANDARD_SYSTEM -DCONFIG_BUF_LEN=$(CONFIG_BUF_LEN) -DMAX_DOMAINS_F=$(MAX_DOMAINS) CPPFLAGS = -I$(LIBINCLUDE) -C -P $(ARCHFLAGS) $(ENVCOMPDEFS) $(POUND_DEF) AR = ar ru M4 = m4 -B 14000 RANLIB = ranlib NETCDFPATH = /donnees/emlmd/netcdf64/netcdf-3.6.1 CC_TOOLS = $(CC) externals : wrf_ioapi_includes wrfio_nf wrfio_grib_share wrfio_grib1 wrfio_int module_dm.F esmf_time module_dm.F : ( /bin/cp module_dm_warning module_dm.F ; cat module_dm_stubs.F >> module_dm.F ) wrfio_nf : ( cd ../external/io_netcdf ; \ make NETCDFPATH=/donnees/emlmd/netcdf64/netcdf-3.6.1 RANLIB="$(RANLIB)" CPP="$(CPP)" FC="$(FC) $(PROMOTION) $(FCFLAGS) -w" TRADFLAG="-traditional" ) wrfio_grib_share : ( cd ../external/io_grib_share ; \ make CC="$(SCC)" CFLAGS="$(CFLAGS)" RM="$(RM)" RANLIB="$(RANLIB)" CPP="$(CPP)" FC="$(SFC) $(PROMOTION) -I. $(FCDEBUG) $(FCBASEOPTS) -w" TRADFLAG="-traditional" archive) wrfio_grib1 : ( cd ../external/io_grib1 ; \ make CC="$(SCC)" CFLAGS="$(CFLAGS)" RANLIB="$(RANLIB)" CPP="$(CPP)" FC="$(SFC) $(PROMOTION) -I. $(FCDEBUG) $(FCBASEOPTS) -w" TRADFLAG="-traditional" archive) wrfio_grib2 : ( cd ../external/io_grib2 ; \ make CC="$(SCC)" CFLAGS="$(CFLAGS) " RM="$(RM)" RANLIB="$(RANLIB)" CPP="$(CPP)" FC="$(SFC) $(PROMOTION) -I. $(FCDEBUG) $(FCBASEOPTS) -w" TRADFLAG="-traditional" FIXED="-Mfixed" archive) wrfio_int : ( cd ../external/io_int ; \ make CC="$(CC)" RANLIB="$(RANLIB)" CPP="$(CPP)" SFC="$(SFC) $(PROMOTION) $(FCDEBUG) $(FCBASEOPTS)" FC="$(SFC) $(PROMOTION) $(FCDEBUG) $(FCBASEOPTS) -w" \ TRADFLAG="-traditional" all ) esmf_time : ( cd ../external/esmf_time_f90 ; \ make FC="$(FC) $(PROMOTION) $(FCDEBUG) $(FCBASEOPTS)" RANLIB="$(RANLIB)" CPP="$(CPP) -I../../inc -I. $(POUND_DEF)" ) # compile these without high optimization to speed compile solve_interface.o : solve_interface.F shift_domain_em.o : shift_domain_em.F module_io_mm5.o : module_io_mm5.F module_si_io.o : module_si_io.F module_io_wrf.o : module_io_wrf.F module_domain.o : module_domain.F module_start.o : module_start.F module_initialize.o : module_initialize.F module_initialize_b_wave.o : module_initialize_b_wave.F module_initialize_hill2d_x.o : module_initialize_hill2d_x.F module_initialize_quarter_ss.o : module_initialize_quarter_ss.F module_initialize_squall2d_x.o : module_initialize_squall2d_x.F module_initialize_squall2d_y.o : module_initialize_squall2d_y.F module_initialize_real.o : module_initialize_real.F module_dm.o : module_dm.F start_domain.o : start_domain.F mediation_integrate.o : mediation_integrate.F module_configure.o : module_configure.F solve_interface.o \ shift_domain_em.o \ module_io_mm5.o module_si_io.o module_io_wrf.o module_domain.o \ module_start.o module_initialize.o module_initialize_b_wave.o \ module_initialize_hill2d_x.o module_initialize_quarter_ss.o \ module_initialize_squall2d_x.o module_initialize_squall2d_y.o \ mediation_integrate.o \ module_configure.o \ module_initialize_real.o module_dm.o start_domain.o : $(RM) $@ $(SED_FTN) $*.F > $*.b $(CPP) -I../inc $(CPPFLAGS) $*.b > $*.f90 $(RM) $*.b $(FC) -c $(PROMOTION) $(FCBASEOPTS) $(MODULE_DIRS) $*.f90 ########################################################### # These sub-directory builds are identical across all architectures wrfio_esmf : ( cd ../external/io_esmf ; \ make FC="$(FC) $(PROMOTION) $(FCDEBUG) $(FCBASEOPTS) $(ESMF_MOD_INC)" RANLIB="$(RANLIB)" CPP="$(CPP) $(POUND_DEF) " ) # # Macros, these should be generic for all machines LN = ln -sf MAKE = make -i -r RM = rm -f # There is probably no reason to modify these rules wrf_ioapi_includes : ( cd ../external/ioapi_share ; \ $(MAKE) NATIVE_RWORDSIZE="$(NATIVE_RWORDSIZE)" RWORDSIZE="$(RWORDSIZE)" ) .F.i: $(RM) $@ $(CPP) -I../inc $(CPPFLAGS) $*.F > $@ mv $*.i $(DEVTOP)/pick/$*.f90 cp $*.F $(DEVTOP)/pick .F.o: $(RM) $@ $(SED_FTN) $*.F > $*.b $(CPP) -I../inc $(CPPFLAGS) $*.b > $*.f90 $(RM) $*.b $(FC) -c $(FCFLAGS) $(MODULE_DIRS) $(PROMOTION) $(FCSUFFIX) $*.f90 #PGI if [ ! -e $@ ] ; then \ #PGI sleep 10 ; $(FC) -c $(FCFLAGS) $(MODULE_DIRS) $(PROMOTION) $(FCSUFFIX) $*.f90 ; \ #PGI fi #PGI if [ ! -e $@ ] ; then \ #PGI sleep 10 ; $(FC) -c $(FCFLAGS) $(MODULE_DIRS) $(PROMOTION) $(FCSUFFIX) $*.f90 ; \ #PGI fi .F.f90: $(RM) $@ $(SED_FTN) $*.F > $*.b $(CPP) -I../inc $(CPPFLAGS) $*.b > $@ $(RM) $*.b .f90.o: $(RM) $@ $(FC) -c $(FCFLAGS) $(PROMOTION) $(FCSUFFIX) $*.f90 #PGI if [ ! -e $@ ] ; then \ #PGI sleep 10 ; $(FC) -c $(FCFLAGS) $(PROMOTION) $(FCSUFFIX) $*.f90 ; \ #PGI fi #PGI if [ ! -e $@ ] ; then \ #PGI sleep 10 ; $(FC) -c $(FCFLAGS) $(PROMOTION) $(FCSUFFIX) $*.f90 ; \ #PGI fi .c.o: $(RM) $@ $(CC) -c $(CFLAGS) $*.c