Ignore:
Timestamp:
Nov 19, 2021, 4:58:59 PM (3 years ago)
Author:
lguez
Message:

Sync latest trunk changes to Ocean_skin

Location:
LMDZ6/branches/Ocean_skin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/Ocean_skin

  • LMDZ6/branches/Ocean_skin/makelmdz_fcm

    r3812 r4013  
    2323couple=false
    2424veget=false
    25 sisvat=false
    2625inlandsis=false
    2726rrtm=false
     27rad="old"
    2828dust=false
    2929strataer=false
    3030chimie=false
    3131parallel=none
    32 paramem="par"
     32paramem="mem"
    3333compil_mod=prod
    3434io=ioipsl
     
    4040full=''
    4141libphy=false
     42isotopes=false
     43isoverif=false
     44diagiso=false
     45isotrac=false
    4246
    4347arch_defined="FALSE"
     
    5458DYN_PHYS_SUB_PATH=$LMDGCM/.void_dir
    5559PHY_COMMON_PATH=$LMDGCM/.void_dir
    56 RRTM_PATH=$LMDGCM/.void_dir
     60RAD_PATH=$LMDGCM/.void_dir
     61INLANDSIS_PATH=$LMDGCM/.void_dir
    5762DUST_PATH=$LMDGCM/.void_dir
    5863STRATAER_PATH=$LMDGCM/.void_dir
    59 SISVAT_PATH=$LMDGCM/.void_dir
    6064COSP_PATH=$LMDGCM/.void_dir
    6165fcm_path=$LMDGCM/tools/fcm/bin
     
    99103[-cosp2 true/false]    : compile with/without cosp2 package (default: false)
    100104[-cospv2 true/false]    : compile with/without cospv2 package (default: false)
    101 [-sisvat true/false]  : compile with/without sisvat package (default: false)
    102105[-inlandsis true/false]  : compile with/without inlandsis package (default: false)
    103106[-rrtm true/false]    : compile with/without rrtm package (default: false)
     107[-rad old/rrtm/ecrad]    : compile with old/rrtm/ecrad radiatif code (default: old)
    104108[-dust true/false]    : compile with/without the dust package by Boucher and co (default: false)
    105109[-strataer true/false]    : compile with/without the strat aer package by Boucher and co (default: false)
     110[-isotopes true/false]    : compile with/without water isotopes in the physics
     111[-isoverif true/false]    : compile with/without verifications for water isotopes in the physics
     112[-diagiso true/false]    : compile with/without special diagnostics for water isotopes in the physics
     113[-isotrac true/false]    : compile with/without tracers of water isotopes in the physics
    106114[-parallel none/mpi/omp/mpi_omp] : parallelism (default: none) : mpi, openmp or mixted mpi_openmp
    107115[-g GRI]                   : grid configuration in dyn3d/GRI_xy.h  (default: reg, inclues a zoom)
     
    110118[-cpp CPP_KEY]             : additional preprocessing definitions
    111119[-adjnt]                   : adjoint model, not operational ...
    112 [-mem]                     : reduced memory dynamics (if in parallel mode)
     120[-mem]                     : reduced memory dynamics (obsolete flag; always on in parallel mode)
    113121[-filtre NOMFILTRE]        : use filtre from libf/NOMFILTRE (default: filtrez)
    114122[-link LINKS]              : additional links with other libraries
     
    151159          veget="$2" ; shift ; shift ;;
    152160
    153       "-sisvat")
    154           sisvat="$2" ; shift ; shift ;;
    155 
    156161      "-inlandsis")
    157     inlandsis="$2" ; shift ; shift ;;
     162          inlandsis="$2" ; shift ; shift ;;
    158163
    159164      "-rrtm")
    160           rrtm="$2" ; shift ; shift ;;
     165          rrtm="$2" ; if [ "$2" = "false" ] ; then rad="old" ; else rad="rrtm" ; fi ; shift ; shift ;;
     166
     167      "-rad")
     168          rad="$2" ; shift ; shift ;;
    161169
    162170      "-dust")
     
    168176      "-chimie")
    169177          chimie="$2" ; shift ; shift ;;
     178
     179      "-isotopes")
     180          isotopes="$2" ; shift ; shift ;;
     181
     182      "-isoverif")
     183          isoverif="$2" ; shift ; shift ;;
     184
     185      "-diagiso")
     186          diagiso="$2" ; shift ; shift ;;
     187
     188      "-isotrac")
     189          isotrac="$2" ; shift ; shift ;;
    170190
    171191      "-parallel")
     
    193213     
    194214      "-mem")
     215          echo "option -mem is obsolete (now always on in parallel)"
    195216          paramem="mem" ; shift ;;
    196217
     
    312333if [[ "${physique:0:5}" == "venus" ]] ; then phys_root=venus ; fi
    313334if [[ "${physique:0:5}" == "titan" ]] ; then phys_root=titan ; fi
    314 if [[ "${physique:0:3}" == "mar" ]] ; then phys_root=mar ; fi
    315335if [[ "${physique:0:3}" == "dev" ]] ; then phys_root=dev ; fi
    316336
     
    341361   INCLUDE="$INCLUDE -I${INCA_INCDIR}"
    342362   LIB="$LIB -L${INCA_LIBDIR} -lchimie"
     363fi
     364
     365if [[ "$isotopes" == "true" ]]
     366then
     367   CPP_KEY="$CPP_KEY ISO"
     368fi
     369
     370if [[ "$isoverif" == "true" ]]
     371then
     372   CPP_KEY="$CPP_KEY ISOVERIF"
     373fi
     374
     375if [[ "$diagiso" == "true" ]]
     376then
     377   CPP_KEY="$CPP_KEY DIAGISO"
     378fi
     379
     380if [[ "$isotrac" == "true" ]]
     381then
     382   CPP_KEY="$CPP_KEY ISOTRAC"
    343383fi
    344384
     
    414454fi
    415455
    416 if [[ "$sisvat" == "true" ]]
    417 then
    418    CPP_KEY="$CPP_KEY CPP_SISVAT"
    419    SISVAT_PATH="$LIBFGCM/%PHYS/sisvat"
    420 fi
    421 
    422456if [[ "$inlandsis" == "true" ]]
    423457then
     
    427461
    428462
    429 if [[ "$rrtm" == "true" ]]
     463if [[ "$rad" == "rrtm" ]]
    430464then
    431465   CPP_KEY="$CPP_KEY CPP_RRTM"
    432    RRTM_PATH="$LIBFGCM/%PHYS/rrtm"
     466   RAD_PATH="$LIBFGCM/%PHYS/rrtm"
     467fi
     468if [[ "$rad" == "ecrad" ]]
     469then
     470   CPP_KEY="$CPP_KEY CPP_ECRAD"
     471   RAD_PATH="$LIBFGCM/%PHYS/ecrad"
    433472fi
    434473
     
    658697fi
    659698
     699if [[ "$isotopes" == "true" ]]
     700then
     701  SUFF_NAME=${SUFF_NAME}_iso
     702fi
     703if [[ "$isoverif" == "true" ]]
     704then
     705  SUFF_NAME=${SUFF_NAME}_isoverif
     706fi
     707if [[ "$isotrac" == "true" ]]
     708then
     709  SUFF_NAME=${SUFF_NAME}_isotrac
     710fi
     711if [[ "$diagiso" == "true" ]]
     712then
     713  SUFF_NAME=${SUFF_NAME}_diagiso
     714fi
     715
    660716if [[ $libphy == "true" ]]
    661717then
     
    694750echo "%DYN_PHYS      $DYN_PHYS_PATH" >> $config_fcm
    695751echo "%DYN_PHYS_SUB  $DYN_PHYS_SUB_PATH" >> $config_fcm
    696 echo "%RRTM          $RRTM_PATH"     >> $config_fcm
     752echo "%RAD           $RAD_PATH"     >> $config_fcm
    697753echo "%DUST          $DUST_PATH"     >> $config_fcm
    698754echo "%STRATAER      $STRATAER_PATH" >> $config_fcm
    699 echo "%SISVAT        $SISVAT_PATH"   >> $config_fcm
    700755echo "%INLANDSIS     $INLANDSIS_PATH" >> $config_fcm
    701756echo "%COSP          $COSP_PATH"     >> $config_fcm
Note: See TracChangeset for help on using the changeset viewer.