Ignore:
Timestamp:
Jan 25, 2017, 4:02:54 PM (8 years ago)
Author:
emillour
Message:

Dynamical core: Further adaptations to stick with LMDZ5 (up to rev r2750)

  • libf
  • makelmdz[_fcm] : added Earth-specific "dust" and "strataer" cases and

-arch_path option

  • bld.cfg : added dust and strataer cases
  • dyn3d[par]
  • conf_gcm.F90 : added read_orop parameter (Earth-related) for

loading subgrid orography parameters.

  • guide[_p]_mod.F90: added output of nudging coefficients for winds

and temperature

  • temps_mod.F90 : cosmetics/comments
  • logic_mod.F90 : cosmetics/comments
  • dyn3d_common
  • comconst_mod.F90 : cosmetics/comments + added year_day module variable
  • conf_planete.F90 : added year_day from comconst_mod as done in LMDZ5
  • comvert_mod.F90 : cosmetics/comments
  • infotrac.F90 : added "startAer" case to follow up with LMDZ5
  • misc
  • wxios.F90 : follow up on changes in LMDZ5

EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.COMMON/makelmdz_fcm

    r1540 r1650  
    2424sisvat=false
    2525rrtm=false
     26dust=false
     27strataer=false
    2628chimie=false
    2729chemistry=false
     
    3840libphy=false
    3941
     42arch_defined="FALSE"
     43arch_path="arch"
     44arch_default_path="arch"
     45
    4046LMDGCM=`/bin/pwd`
    4147LIBOGCM=$LMDGCM/libo
     
    4854PHY_COMMON_PATH=$LMDGCM/.void_dir
    4955RRTM_PATH=$LMDGCM/.void_dir
     56DUST_PATH=$LMDGCM/.void_dir
     57STRATAER_PATH=$LMDGCM/.void_dir
    5058SISVAT_PATH=$LMDGCM/.void_dir
    5159COSP_PATH=$LMDGCM/.void_dir
     
    8593[-p PHYS]                  : set of physical parametrizations (in libf/phyPHYS), (default: lmd)
    8694[-prod / -dev / -debug]    : compilation mode production (default) / developement / debug .
    87 [-c false/MPI1/OMCT]       : coupling with ocean model : MPI1/OMCT/false (default: false)
    88 [-v false/orchidee2.0/orchidee1.9/true] : version of the vegetation model to include (default: false)
     95[-c false/MPI1/OMCT]       : (Earth) coupling with ocean model : MPI1/OMCT/false (default: false)
     96[-v false/orchidee2.0/orchidee1.9/true] : (Earth) version of the vegetation model to include (default: false)
    8997          false       : no vegetation model
    9098          orchidee2.0 : compile using ORCHIDEE 2.0 (or more recent version)
     
    95103[-sisvat true/false]  : (Earth) compile with/without sisvat package (default: false)
    96104[-rrtm true/false]    : (Earth) compile with/without rrtm package (default: false)
     105[-dust true/false]    : (Earth) compile with/without the dust package by Boucher and co (default: false)
     106[-strataer true/false]    : (Earth) compile with/without the strat aer package by Boucher and co (default: false)
    97107[-parallel none/mpi/omp/mpi_omp] : parallelism (default: none) : mpi, openmp or mixted mpi_openmp
    98108[-g GRI]                   : grid configuration in dyn3d/GRI_xy.h  (default: reg, inclues a zoom)
     
    108118[-fcm_path path]           : path to the fcm tool (default: tools/fcm/bin)
    109119[-ext_src path]            : path to an additional set of routines to compile with the model
     120[-arch_path path]          : path to architecture files (default: $arch_default_path)
    110121 -arch arch                : target architecture
    111122 exec                      : executable to build
     
    152163          rrtm="$2" ; shift ; shift ;;
    153164
     165      "-dust")
     166          dust="$2" ; shift ; shift ;;
     167
     168      "-strataer")
     169          strataer="$2" ; shift ; shift ;;
     170
    154171      "-chimie")
    155172          chimie="$2" ; shift ; shift ;;
     
    197214
    198215      "-arch")
    199           arch=$2 ; shift ; shift ;;
     216          arch=$2 ; arch_defined="TRUE" ; shift ; shift ;;
     217
     218      "-arch_path")
     219          arch_path=$2 ; arch_path_defined="TRUE"; shift ; shift ;;
    200220
    201221      *)
     
    227247rm -rf .void_dir
    228248mkdir .void_dir
    229 rm -f arch.path
    230 ln -s arch/arch-${arch}.path ./arch.path
    231 source arch.path
     249
     250if [[ "$arch_defined" == "TRUE" ]]
     251then
     252  rm -f arch.path
     253  rm -f arch.fcm
     254  rm -f arch.env
     255
     256  if test -f $arch_path/arch-${arch}.path
     257  then
     258    ln -s $arch_path/arch-${arch}.path arch.path
     259  elif test -f $arch_default_path/arch-${arch}.path
     260  then
     261    ln -s $arch_default_path/arch-${arch}.path arch.path
     262  fi
     263       
     264  if test -f $arch_path/arch-${arch}.fcm
     265  then
     266    ln -s $arch_path/arch-${arch}.fcm arch.fcm
     267  elif test -f $arch_default_path/arch-${arch}.fcm
     268  then
     269    ln -s $arch_default_path/arch-${arch}.fcm arch.fcm
     270  fi
     271
     272  if test -f $arch_path/arch-${arch}.env
     273  then
     274    ln -s $arch_path/arch-${arch}.env arch.env
     275  elif test -f $arch_default_path/arch-${arch}.env
     276  then
     277    ln -s $arch_default_path/arch-${arch}.env arch.env
     278  else
     279    ln -s .void_file arch.env
     280  fi
     281  # source architecture PATH and ENV files
     282  source arch.env
     283  source arch.path
     284else
     285  echo "You must define a target architecture"
     286  exit 1
     287fi
    232288
    233289########################################################################
     
    372428fi
    373429
     430if [[ "$dust" == "true" ]]
     431then
     432   CPP_KEY="$CPP_KEY CPP_Dust"
     433   DUST_PATH="$LIBFGCM/%PHYS/Dust"
     434fi
     435
     436if [[ "$strataer" == "true" ]]
     437then
     438   CPP_KEY="$CPP_KEY CPP_StratAer"
     439   STRATAER_PATH="$LIBFGCM/%PHYS/StratAer"
     440fi
     441
    374442if [[ $io == ioipsl ]]
    375443then
     
    642710echo "%DYN_PHYS_SUB  $DYN_PHYS_SUB_PATH" >> $config_fcm
    643711echo "%RRTM          $RRTM_PATH"     >> $config_fcm
     712echo "%DUST          $DUST_PATH"     >> $config_fcm
     713echo "%STRATAER      $STRATAER_PATH" >> $config_fcm
    644714echo "%SISVAT        $SISVAT_PATH"   >> $config_fcm
    645715echo "%COSP          $COSP_PATH"     >> $config_fcm
Note: See TracChangeset for help on using the changeset viewer.