# 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 .f .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=1250 \ -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 = 8192 #### Default sed command and script for Fortran source files #### SED_FTN = sed -f ../arch/standard.sed #### Architecture specific settings #### # Settings for Intel xeon i686 ia32 Xeon Linux, ifort compiler DM-Parallel (RSL, MPICH, supports nesting) # # Note: if you use ifort 8.0, please remove option -xW (for vectorization). This option # has been identified to produce wrong results occationally. # Note: for experimental implementation of moving nests, add -DMOVE_NESTS to ARCHFLAGS # # DMPARALLEL = 1 MAX_PROC = 1024 FC = /usr/aero/mpi/mpich-1.2.6+ch_p4+gcc34+ifort/bin/mpif90 LD = /usr/aero/mpi/mpich-1.2.6+ch_p4+gcc34+ifort/bin/mpif90 CC = /usr/aero/mpi/mpich-1.2.6+ch_p4+gcc34+ifort/bin/mpicc SFC = ifort FCOPTIM = -O3 #-xW FCDEBUG = #-g FCBASEOPTS = -FR -cm -w -I. $(FCDEBUG) -convert big_endian -mp FCFLAGS = $(FCOPTIM) $(FCBASEOPTS) ARCHFLAGS = -DDEREF_KLUDGE -DIO_DEREF_KLUDGE -DYYY -DINTIO -DWRF_RSL_IO -DRSL -DDM_PARALLEL \ -DIWORDSIZE=4 -DDWORDSIZE=8 -DRWORDSIZE=4 -DLWORDSIZE=4 -DNETCDF \ -DTRIEDNTRUE -DMPI \ -DLIMIT_ARGS -DIFORT_KLUDGE CFLAGS = -w -DDM_PARALLEL -DWRF_RSL_IO $(ARCHFLAGS) \ -DMAXDOM_MAKE=$(MAX_DOMAINS) -DMAXPROC_MAKE=$(MAX_PROC) -I../external/RSL/RSL INCLUDE_MODULES = -module ../main -I../external/io_netcdf -I../external/io_int -I../external/esmf_time_f90 \ -I../external -I../frame -I../share -I../phys -I../inc EXTRAMODULES = PERL = perl REGISTRY = Registry LIB = -L../external/io_netcdf -lwrfio_nf -L/home/fovell/netcdf-3.5.1/lib -lnetcdf -L../external/RSL/RSL -lrsl \ -L../external/io_int -lwrfio_int -L../external/io_grib1 -lio_grib1 \ ../frame/module_internal_header_util.o ../frame/pack_utils.o -L../external/esmf_time_f90 -lesmf_time LDFLAGS = $(FCOPTIM) -convert big_endian CPP = /usr/bin/cpp -traditional POUND_DEF = -DNO_RRTM_PHYSICS $(COREDEFS) -DNONSTANDARD_SYSTEM -DF90_STANDALONE -DCONFIG_BUF_LEN=$(CONFIG_BUF_LEN) -DMAX_DOMAINS_F=$(MAX_DOMAINS) -DYYY CPPFLAGS = -I$(LIBINCLUDE) -C -P $(ARCHFLAGS) -I../external/RSL/RSL -C -P `cat ../inc/dm_comm_cpp_flags` $(POUND_DEF) AR = ar ru M4 = m4 RANLIB = ranlib NETCDFPATH = /home/fovell/netcdf-3.5.1 CC_TOOLS = $(CC) externals : wrfio_nf ../external/RSL/RSL/librsl.a wrfio_int gen_comms.c module_dm.F esmf_time gen_comms.c : ../external/RSL/gen_comms.c ( /bin/cp ../tools/gen_comms_warning ../tools/gen_comms.c ; \ cat ../external/RSL/gen_comms.c >> ../tools/gen_comms.c ) module_dm.F : ../external/RSL/module_dm.F ( /bin/cp module_dm_warning module_dm.F ; cat ../external/RSL/module_dm.F >> module_dm.F ) wrfio_nf : ( cd ../external/io_netcdf ; \ make NETCDFPATH=/home/fovell/netcdf-3.5.1 CPP="$(CPP)" FC="$(FC)" TRADFLAG="-traditional" \ FFLAGS='$(FCFLAGS) -I/home/fovell/netcdf-3.5.1/include -w' ; \ /bin/cp wrf_io_flags.h wrf_status_codes.h ../../inc ; \ /bin/cp wrf_io_flags.h wrf_status_codes.h ../io_phdf5 ; \ /bin/cp wrf_io_flags.h ../io_quilt ) wrfio_grib1 : ( cd ../external/io_grib1 ; \ make CC="$(CC)" CPP="$(CPP)" FC="$(SFC) -I. $(FCDEBUG) $(FCFLAGS) -w") wrfio_int : ( cd ../external/io_int ; \ make CC="$(CC)" CPP="$(CPP)" FC="$(SFC) $(FCDEBUG) $(FCBASEOPTS) -w" TRADFLAG="-traditional" all ) esmf_time : ( cd ../external/esmf_time_f90 ; \ make FC="$(FC) $(FCDEBUG) $(FCBASEOPTS)" CPP="$(CPP) -I../../inc -I. $(POUND_DEF)" ) ../external/RSL/RSL/librsl.a : ( cd ../external/RSL/RSL ; make CC="$(CC)" CFLAGS="$(CFLAGS)" FC="$(FC)" MAX_DOMAINS=$(MAX_DOMAINS) MAX_PROC=$(MAX_PROC) LEARN_BCAST=-DLEARN_BCAST linux ) # compile these without high optimization to speed compile solve_interface.o : solve_interface.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 \ module_configure.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_initialize_real.o module_dm.o start_domain.o : $(RM) $@ $(SED_FTN) $*.F > $*.b $(CPP) -I../inc $(CPPFLAGS) $*.b > $*.f $(RM) $*.b $(FC) -c $(FCBASEOPTS) $(MODULE_DIRS) $*.f ########################################################### # # 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 .F.i: $(RM) $@ $(CPP) -I../inc $(CPPFLAGS) $*.F > $@ mv $*.i $(DEVTOP)/pick/$*.f cp $*.F $(DEVTOP)/pick .F.o: $(RM) $@ $(SED_FTN) $*.F > $*.b $(CPP) -I../inc $(CPPFLAGS) $*.b > $*.f $(RM) $*.b $(FC) -c $(FCFLAGS) $(MODULE_DIRS) $*.f .F.f: $(RM) $@ $(SED_FTN) $*.F > $*.b $(CPP) -I../inc $(CPPFLAGS) $*.b > $@ $(RM) $*.b .f.o: $(RM) $@ $(FC) -c $(FCFLAGS) $*.f .c.o: $(RM) $@ $(CC) -c $(CFLAGS) $*.c