Ignore:
Timestamp:
May 20, 2021, 9:11:13 AM (3 years ago)
Author:
idelkadi
Message:

Online implementation of the radiative transfer code ECRAD in the LMDZ model.

  • Inclusion of the ecrad directory containing the sources of the ECRAD code
    • interface routine : radiation_scheme.F90
  • Adaptation of compilation scripts :
    • compilation under CPP key CPP_ECRAD
    • compilation with option "-rad ecard" or "-ecard true"
    • The "-rad old/rtm/ecran" build option will need to replace the "-rrtm true" and "-ecrad true" options in the future.
  • Runing LMDZ simulations with ecrad, you need :
    • logical key iflag_rrtm = 2 in physiq.def
    • namelist_ecrad (DefLists?)
    • the directory "data" containing the configuration files is temporarily placed in ../libfphylmd/ecrad/
  • Compilation and execution are tested in the 1D case. The repository under svn would allow to continue the implementation work: tests, verification of the results, ...
File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/makelmdz_fcm

    r3901 r3908  
    2525inlandsis=false
    2626rrtm=false
     27ecrad=false
     28rad="old"
    2729dust=false
    2830strataer=false
     
    5355DYN_PHYS_SUB_PATH=$LMDGCM/.void_dir
    5456PHY_COMMON_PATH=$LMDGCM/.void_dir
    55 RRTM_PATH=$LMDGCM/.void_dir
     57RAD_PATH=$LMDGCM/.void_dir
    5658INLANDSIS_PATH=$LMDGCM/.void_dir
    5759DUST_PATH=$LMDGCM/.void_dir
     
    100102[-inlandsis true/false]  : compile with/without inlandsis package (default: false)
    101103[-rrtm true/false]    : compile with/without rrtm package (default: false)
     104[-ecrad true/false]    : compile with/without ecrad package (default: false)
     105[-rad old/rrtm/ecrad]    : compile with old/rrtm/ecrad radiatif code (default: old)
    102106[-dust true/false]    : compile with/without the dust package by Boucher and co (default: false)
    103107[-strataer true/false]    : compile with/without the strat aer package by Boucher and co (default: false)
     
    150154
    151155      "-inlandsis")
    152     inlandsis="$2" ; shift ; shift ;;
     156          inlandsis="$2" ; shift ; shift ;;
    153157
    154158      "-rrtm")
    155           rrtm="$2" ; shift ; shift ;;
     159          rrtm="$2" ; if [ "$2" = "false" ] ; then rad="old" ; else rad="rrtm" ; fi ; shift ; shift ;;
     160
     161      "-ecrad")
     162          ecrad="$2" ; if [ "$2" = "true" ] ; then rad="ecrad" ; fi ; shift ; shift ;;
     163
     164      "-rad")
     165          rad="$2" ; shift ; shift ;;
    156166
    157167      "-dust")
     
    416426
    417427
    418 if [[ "$rrtm" == "true" ]]
     428if [[ "$rad" == "rrtm" ]]
    419429then
    420430   CPP_KEY="$CPP_KEY CPP_RRTM"
    421    RRTM_PATH="$LIBFGCM/%PHYS/rrtm"
     431   RAD_PATH="$LIBFGCM/%PHYS/rrtm"
     432fi
     433if [[ "$rad" == "ecrad" ]]
     434then
     435   CPP_KEY="$CPP_KEY CPP_ECRAD"
     436   RAD_PATH="$LIBFGCM/%PHYS/ecrad"
    422437fi
    423438
     
    683698echo "%DYN_PHYS      $DYN_PHYS_PATH" >> $config_fcm
    684699echo "%DYN_PHYS_SUB  $DYN_PHYS_SUB_PATH" >> $config_fcm
    685 echo "%RRTM          $RRTM_PATH"     >> $config_fcm
     700echo "%RAD           $RAD_PATH"     >> $config_fcm
    686701echo "%DUST          $DUST_PATH"     >> $config_fcm
    687702echo "%STRATAER      $STRATAER_PATH" >> $config_fcm
Note: See TracChangeset for help on using the changeset viewer.