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

    r1540 r1650  
    2727sisvat=false
    2828rrtm=false
     29dust=false
     30strataer=false
    2931bands=""
    3032scatterers=""
    3133full=''
    3234
     35arch_defined="FALSE"
     36arch_path="arch"
     37arch_default_path="arch"
     38
    3339# guess a default 'arch'
    3440arch="local" # start with assuming we're on a local machine with local arch file
     41arch_defined="TRUE" # and thus also set arch_defined to true
    3542## try to recognise machine and infer arch from it
    3643machine=`hostname`
     
    120127[-sisvat true/false]  : (Earth) compile with/without sisvat package (default: false)
    121128[-rrtm true/false]    : (Earth) compile with/without rrtm package (default: false)
     129[-dust true/false]    : (Earth) compile with/without the dust package from Boucher et al. (default: false)
     130[-strataer true/false]    : (Earth) compile with/without the strat aer package from Boucher et al. (default: false)
    122131[-parallel none/mpi/omp/mpi_omp] : parallelism (default: none) : mpi, openmp or mixted mpi_openmp
    123132[-g GRI]                   : grid configuration in dyn3d/GRI_xy.h  (default: reg, inclues a zoom)
     
    131140[-full]                    : full (re-)compilation (from scratch)
    132141[-ext_src path]            : path to an additional set of routines to compile with the model
     142[-arch_path path]          : path to architecture files (default: $arch_default_path)
    133143 -arch arch                : target architecture
    134144 exec                      : executable to build
     
    189199          rrtm="$2" ; shift ; shift ;;
    190200     
     201      "-dust")
     202          dust="$2" ; shift ; shift ;;
     203     
     204      "-strataer")
     205          strataer="$2" ; shift ; shift ;;
     206     
    191207      "-mem")
    192208          paramem="mem" ; shift ;;
     
    205221
    206222      "-arch")
    207           arch=$2 ; shift ; shift ;;
     223          arch=$2 ; arch_defined="TRUE" ; shift ; shift ;;
     224
     225      "-arch_path")
     226          arch_path=$2 ; arch_path_defined="TRUE"; shift ; shift ;;
    208227
    209228      *)
     
    219238rm -rf .void_dir
    220239mkdir .void_dir
    221 rm -f arch.path
    222 if [[ -r arch/arch-${arch}.path ]]
    223 then
    224   ln -s arch/arch-${arch}.path ./arch.path
     240
     241if [[ "$arch_defined" == "TRUE" ]]
     242then
     243  rm -f arch.path
     244  rm -f arch.fcm
     245  rm -f arch.env
     246
     247  if test -f $arch_path/arch-${arch}.path
     248  then
     249    ln -s $arch_path/arch-${arch}.path arch.path
     250  elif test -f $arch_default_path/arch-${arch}.path
     251  then
     252    ln -s $arch_default_path/arch-${arch}.path arch.path
     253  fi
     254       
     255  if test -f $arch_path/arch-${arch}.fcm
     256  then
     257    ln -s $arch_path/arch-${arch}.fcm arch.fcm
     258  elif test -f $arch_default_path/arch-${arch}.fcm
     259  then
     260    ln -s $arch_default_path/arch-${arch}.fcm arch.fcm
     261  fi
     262
     263  if test -f $arch_path/arch-${arch}.env
     264  then
     265    ln -s $arch_path/arch-${arch}.env arch.env
     266  elif test -f $arch_default_path/arch-${arch}.env
     267  then
     268    ln -s $arch_default_path/arch-${arch}.env arch.env
     269  else
     270    ln -s .void_file arch.env
     271  fi
     272  # source architecture PATH and ENV files
     273  source arch.env
    225274  source arch.path
    226275else
    227   echo "Error: missing arch/arch-${arch}.path file !"
    228   exit
    229 fi
    230 rm -f arch.fcm
    231 if [[ -r arch/arch-${arch}.fcm ]]
    232 then
    233   ln -s arch/arch-${arch}.fcm arch.fcm
    234 else
    235   echo "Error: missing arch/arch-${arch}.fcm file !"
    236   exit
    237 fi
     276  echo "You must define a target architecture"
     277  exit 1
     278fi
     279
    238280########################################################################
    239281# Definition des clefs CPP, des chemins des includes et modules
     
    486528   CPP_KEY="$CPP_KEY CPP_RRTM"
    487529   src_dirs="$src_dirs phy${physique}/rrtm"
     530fi
     531
     532if [[ "$dust" == "true" ]]
     533then
     534   CPP_KEY="$CPP_KEY CPP_Dust"
     535   src_dirs="$src_dirs phy${physique}/Dust"
     536fi
     537
     538if [[ "$strataer" == "true" ]]
     539then
     540   CPP_KEY="$CPP_KEY CPP_StratAer"
     541   src_dirs="$src_dirs phy${physique}/StratAer"
    488542fi
    489543
Note: See TracChangeset for help on using the changeset viewer.