source: trunk/MESOSCALE/LMD_MM_MARS/SIMU/MESORUN_generic/lesmpifort_64.patch

Last change on this file was 2275, checked in by aslmd, 5 years ago

MESOSCALE-GENERIC
A new simple method to compile


  1. Compile physics as library
  2. Tweak configure.wrf
  3. Compile WRF with physics lib

A standalone folder with
install.sh and working test case
is provided in the case of
LES+generic with ifort on ciclad


Other configurations can easily be added
(and shall be committed)

  • adapt install.sh
  • create xxx.configure (WRF configure options)
  • create xxx.patch (tweaking of configure.wrf)
  • create xxx.compile (makemeso inputs)

TBD: merge install.sh and makemeso
into a simpler makemeso 2.0

File size: 2.8 KB
  • WRFV2/configure.wrf

    old new  
    118118OMP             =       # -openmp -fpp -auto
    119119SFC             =       ifort
    120120SCC             =       icc
    121 DM_FC           =       mpif90 -f90=$(SFC)
    122 DM_CC           =       mpicc -cc=$(SCC) -DMPI2_SUPPORT
     121DM_FC           =       /usr/lib64/openmpi/1.6.5-ifort/bin//mpif90 -f90=$(SFC)
     122DM_CC           =       /usr/lib64/openmpi/1.6.5-ifort/bin//mpicc -DMPI2_SUPPORT -cc=$(SCC) -DMPI2_SUPPORT
    123123FC              =        $(DM_FC)
    124124CC              =       $(DM_CC) -DFSEEKO64_OK
    125125LD              =       $(FC)
    126 RWORDSIZE       =       $(NATIVE_RWORDSIZE)
    127 PROMOTION       =       -i4
    128 ARCH_LOCAL      =       -DNONSTANDARD_SYSTEM_FUNC
    129 CFLAGS_LOCAL    =       -w -O3 -ip
     126RWORDSIZE       =       8 #$(NATIVE_RWORDSIZE)
     127PROMOTION       =       -i4 -real-size 64
     128ARCH_LOCAL      =       -DNEWPHYS -DNONSTANDARD_SYSTEM_FUNC
     129CFLAGS_LOCAL    =       -w -O3 -mcmodel=large -shared-intel -ip
    130130LDFLAGS_LOCAL   =       -ip
    131131CPLUSPLUSLIB    =       
    132132ESMF_LDFLAG     =       $(CPLUSPLUSLIB)
    133 FCOPTIM         =       -O3
     133FCOPTIM         =       -O3 -mcmodel=large -shared-intel
    134134FCREDUCEDOPT    =       $(FCOPTIM)
    135135FCNOOPT         =       -O0
    136136FCDEBUG         =       # -g $(FCNOOPT) -traceback
     
    141141FCBASEOPTS      =       -w -ftz -align all -fno-alias -fp-model precise $(FCDEBUG) $(FORMAT_FREE) $(BYTESWAPIO)
    142142MODULE_SRCH_FLAG =     
    143143TRADFLAG        =      -traditional
    144 CPP             =      /lib/cpp -C -P
     144CPP             =      /lib/cpp -P
    145145AR              =      ar
    146146ARFLAGS         =      ru
    147147M4              =      m4
     
    183183                      -I$(WRF_SRC_ROOT_DIR)/share \
    184184                      -I$(WRF_SRC_ROOT_DIR)/phys \
    185185                      -I$(WRF_SRC_ROOT_DIR)/chem -I$(WRF_SRC_ROOT_DIR)/inc \
     186                      -I$(WRF_SRC_ROOT_DIR)/../../../../LMDZ.COMMON/libo/CICLADifort/.config/inc \
     187                      -I/opt/netcdf3/ifort/include \
    186188                       \
    187189                     
    188190REGISTRY        =    Registry
     
    199201                     $(WRF_SRC_ROOT_DIR)/frame/pack_utils.o
    200202
    201203LIB_EXTERNAL    = \
    202                      $(WRF_SRC_ROOT_DIR)/external/io_netcdf/libwrfio_nf.a -L/opt/netcdf3/ifort/lib -lnetcdf   
     204                     $(WRF_SRC_ROOT_DIR)/external/io_netcdf/libwrfio_nf.a \
     205                     -L/opt/netcdf3/ifort/lib -lnetcdf -lnetcdff /opt/netcdf3/ifort/lib/libnetcdf.a \
     206                     -L$(WRF_SRC_ROOT_DIR)/../../../../LMDZ.COMMON/libo/CICLADifort/.config/lib -llmdz \
     207                     -lnetcdf 
    203208
    204209LIB             =    $(LIB_BUNDLED) $(LIB_EXTERNAL) $(LIB_LOCAL)
    205210LDFLAGS         =    $(OMP) $(FCFLAGS) $(LDFLAGS_LOCAL)
Note: See TracBrowser for help on using the repository browser.