# 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 Compaq OSF1 alpha DM-Parallel (RSL, MPICH, allows nesting, MOVING NESTS EXPERIMENTAL) # DMPARALLEL = 1 OMP = OMPCPP = FC = f90 LD = f90 CC = cc ARCHFLAGS = -DDEREF_KLUDGE -DIO_DEREF_KLUDGE -DNETCDF -DYYY -DINTIO -DWRF_RSL_IO \ -DDM_PARALLEL -DRSL \ -DIWORDSIZE=4 -DDWORDSIZE=8 -DRWORDSIZE=4 -DLWORDSIZE=4 \ -DTRIEDNTRUE \ -DLIMIT_ARGS -DFLOATSAFE \ -DMAXDOM_MAKE=$(MAX_DOMAINS) -DMAXPROC_MAKE=$(MAX_PROC) -DMOVE_NESTS CFLAGS = $(ARCHFLAGS) -I../external/RSL/RSL FCOPTIM = -fast -O4 FCDEBUG = # -g FCBASEOPTS = -w -convert big_endian -automatic -cpp -free -I. -arch host $(FCDEBUG) FCFLAGS = $(FCOPTIM) $(FCBASEOPTS) $(OMP) INCLUDE_MODULES = -I../external/io_netcdf -I../external/io_int -I../external/esmf_time_f90 \ -I../frame -I../share -I../phys -I../inc EXTRAMODULES = PERL = perl REGISTRY = Registry LIB = -L../external/io_netcdf -lwrfio_nf -L/usr/ulocal/lib -lnetcdf -L../external/io_int -lwrfio_int \ -L../external/RSL/RSL -lrsl \ ../frame/module_internal_header_util.o ../frame/pack_utils.o -L../external/esmf_time_f90 -lesmf_time \ -L../external/io_grib1 -lio_grib1 -lmpi LDFLAGS = $(FCOPTIM) -automatic -convert big_endian $(OMP) CPP = /usr/bin/cpp -C -P POUND_DEF = -DDEC_ALPHA -DNONSTANDARD_SYSTEM -DF90_STANDALONE -DCONFIG_BUF_LEN=$(CONFIG_BUF_LEN) -DMAX_DOMAINS_F=$(MAX_DOMAINS) CPPFLAGS = -I$(LIBINCLUDE) -C -P $(ARCHFLAGS) -I../external/RSL/RSL -C -P `cat ../inc/dm_comm_cpp_flags` $(OMPCPP) $(COREDEFS) $(POUND_DEF) MAX_PROC = 1024 AR = ar ru M4 = m4 -B 8000 RANLIB = ranlib NETCDFPATH = /usr/ulocal CC_TOOLS = cc externals : wrfio_nf wrfio_int librsl.a 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=/usr/ulocal CPP="$(CPP)" FC="$(FC) $(FCDEBUG) -convert big_endian -automatic -cpp -free -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_int : ( cd ../external/io_int ; \ make CC="$(CC)" CPP="$(CPP)" FC="$(FC) $(FCDEBUG) -convert big_endian -automatic -cpp -free -w" all ) wrfio_grib1 : ( cd ../external/io_grib1 ; \ make CC="$(CC)" CPP="$(CPP)" FC="$(FC) $(FCDEBUG) -convert big_endian -automatic -cpp -free -w " ) esmf_time : ( cd ../external/esmf_time_f90 ; \ make FC="$(FC) $(FCDEBUG) $(FCFLAGS)" CPP="$(CPP) -I../../inc -I. $(POUND_DEF)" ) librsl.a : ( cd ../external/RSL/RSL ; \ make CC="$(CC)" FC="$(FC)" MAX_DOMAINS=$(MAX_DOMAINS) MAX_PROC=$(MAX_PROC) LEARN_BCAST=-DLEARN_BCAST alpha ) # compile these without high optimization to speed compile 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 module_configure.o : module_configure.F 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 \ module_configure.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) -O0 $*.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