Changeset 4567


Ignore:
Timestamp:
Jun 8, 2023, 6:26:41 PM (12 months ago)
Author:
Laurent Fairhead
Message:

Some cleanup before merging makelmdz_fcm and makelmdz
FH & LF

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/makelmdz

    r4489 r4567  
    1717couple=false
    1818veget=false
     19inlandsis=false
     20rrtm=false
     21rad="oldrad"
     22dust=false
     23strataer=false
    1924chimie=false
    2025parallel=none
     
    2732cosp2=false
    2833cospv2=false
    29 inlandsis=false
    30 rrtm=false
    31 rad=""
    32 dust=false
    33 strataer=false
     34
    3435full=""
    3536
     
    110111[-p PHYS]                  : set of physical parametrizations (in libf/phyPHYS), (default: lmd)
    111112[-prod / -dev / -debug]    : compilation mode production (default) / developement / debug
    112 [-c false/MPI1/MPI2]       : coupling with ocean model : MPI1/MPI2/false (default: false)
     113[-c false/MPI1/OMCT]       : coupling with ocean model : MPI1/OMCT/false (default: false)
    113114[-v false/orchideetrunk/orchidee2.1/orchidee2.0/orchidee1.9] : version of the vegetation model to include (default: false)
    114115          false       : no vegetation model
    115116          orchideetrunk : compile using ORCHIDEE trunk from revision 7757 or higher
    116117          orchidee2.1 : compile using ORCHIDEE 2.1 until 4.1 included or until revision 7757 on the trunk
    117           orchidee2.0 : compile using ORCHIDEE 2.0 (or more recent version)
     118          orchidee2.0 : compile using ORCHIDEE 2.0
    118119          orchidee1.9 : compile using ORCHIDEE up to the version including OpenMP in ORCHIDEE : tag 1.9-1.9.5(version AR5)-1.9.6
    119120          true        : (obsolete; for backward compatibility) use ORCHIDEE tag 1.9-1.9.6
     
    125126[-rrtm true/false]    : compile with/without rrtm package (default: false)
    126127[-rad oldrad/rrtm/ecrad]    : compile with oldrad/rrtm/ecrad radiatif code (default: oldrad)
    127 [-dust true/false]    : compile with/without the dust package from Boucher et al. (default: false)
    128 [-strataer true/false]    : compile with/without the strat aer package from Boucher et al. (default: false)
     128[-dust true/false]    : compile with/without the dust package by Boucher and co (default: false)
     129[-strataer true/false]    : compile with/without the strat aer package by Boucher and co (default: false)
    129130[-parallel none/mpi/omp/mpi_omp] : parallelism (default: none) : mpi, openmp or mixted mpi_openmp
    130131[-g GRI]                   : grid configuration in dyn3d/GRI_xy.h  (default: reg, inclues a zoom)
     
    135136[-mem]                     : reduced memory dynamics (obsolete flag; always on in parallel mode)
    136137[-filtre NOMFILTRE]        : use filtre from libf/NOMFILTRE (default: filtrez)
    137 [-full]                    : Full (re)compilation (from scratch)
    138138[-link LINKS]              : additional links with other libraries
     139[-full]                    : full recompiling
    139140[-fcm_path path]           : path to the fcm tool (default: tools/fcm/bin)
    140141[-ext_src path]            : path to an additional set of routines to compile with the model
     
    171172          veget="$2" ; shift ; shift ;;
    172173
    173       "-chimie")
    174           chimie="$2" ; shift ; shift ;;
    175 
    176       "-parallel")
    177           parallel="$2" ; shift ; shift ;;
    178      
    179       "-include")
    180           INCLUDE="$INCLUDE -I$2" ; shift ; shift ;;
    181 
    182       "-cpp")
    183           CPP_KEY="$CPP_KEY $2" ; shift ; shift ;;
    184 
    185       "-cosp")
    186           cosp="$2" ; shift ; shift ;;
    187 
    188       "-cosp2")
    189           cosp2="$2" ; shift ; shift ;;
    190 
    191       "-cosp2")
    192           cospv2="$2" ; shift ; shift ;;
    193      
    194174      "-inlandsis")
    195175          inlandsis="$2" ; shift ; shift ;; 
     
    207187          strataer="$2" ; shift ; shift ;;
    208188     
     189      "-chimie")
     190          chimie="$2" ; shift ; shift ;;
     191
     192      "-parallel")
     193          parallel="$2" ; shift ; shift ;;
     194     
     195      "-include")
     196          INCLUDE="$INCLUDE -I$2" ; shift ; shift ;;
     197
     198      "-cpp")
     199          CPP_KEY="$CPP_KEY $2" ; shift ; shift ;;
     200
     201      "-cosp")
     202          cosp="$2" ; shift ; shift ;;
     203
     204      "-cosp2")
     205          cosp2="$2" ; shift ; shift ;;
     206
     207      "-cospv2")
     208          cospv2="$2" ; shift ; shift ;;
     209     
    209210      "-mem")
    210211          echo "option -mem is obsolete (now always on in parallel)"
     
    214215          filtre=$2 ; shift ; shift ;;
    215216
     217      "-link")
     218          LIB="$LIB $2" ; shift ; shift ;;
     219
     220      "-fcm_path")
     221          fcm_path=$2 ; shift ; shift ;;
     222
     223      "-ext_src")
     224          EXT_SRC=$2 ; src_dirs="$src_dirs $EXT_SRC" ; shift ; shift ;;
     225
    216226      "-full")
    217227      full="full" ; shift ;;
    218 
    219       "-link")
    220           LIB="$LIB $2" ; shift ; shift ;;
    221 
    222       "-fcm_path")
    223           fcm_path=$2 ; shift ; shift ;;
    224 
    225       "-ext_src")
    226           EXT_SRC=$2 ; src_dirs="$src_dirs $EXT_SRC" ; shift ; shift ;;
    227228
    228229      "-arch")
     
    364365   lib_phy='-lphy'"$physique"' -lphy_common'
    365366   CPP_KEY="$CPP_KEY CPP_PHYS"
    366    if [[ $phys_root == "lmd" ]]
    367       then
    368       #For lmd physics, default planet type is Earth
    369       CPP_KEY="$CPP_KEY CPP_EARTH"
     367   if [[ "${phys_root}" == "lmd" ]]
     368   then
     369   #For lmd physics, default planet type is Earth
     370   CPP_KEY="$CPP_KEY CPP_EARTH"
    370371   fi
    371372fi
     
    475476fi
    476477
     478if [[ "$inlandsis" == "true" ]]
     479then
     480   CPP_KEY="$CPP_KEY CPP_INLANDSIS"
     481   src_dirs="$src_dirs phy${physique}/inlandsis"
     482fi
     483
     484
     485if [[ "$rad" == "rrtm" ]]
     486then
     487   CPP_KEY="$CPP_KEY CPP_RRTM"
     488   src_dirs="$src_dirs phy${physique}/rrtm"
     489fi
     490if [[ "$rad" == "ecrad" ]]
     491then
     492   CPP_KEY="$CPP_KEY CPP_ECRAD"
     493   src_dirs="$src_dirs phy${physique}/ecrad"
     494fi
     495
     496if [[ "$dust" == "true" ]]
     497then
     498   CPP_KEY="$CPP_KEY CPP_Dust"
     499   src_dirs="$src_dirs phy${physique}/Dust"
     500fi
     501
     502if [[ "$strataer" == "true" ]]
     503then
     504   CPP_KEY="$CPP_KEY CPP_StratAer"
     505   src_dirs="$src_dirs phy${physique}/StratAer"
     506fi
     507
    477508#===============================================================================
    478509INCLUDE="$INCLUDE ${NETCDF95_INCDIR}"
     
    524555
    525556
    526 if [[ "$inlandsis" == "true" ]]
    527 then
    528    CPP_KEY="$CPP_KEY CPP_INLANDSIS"
    529    src_dirs="$src_dirs phy${physique}/inlandsis"
    530 fi
    531 
    532 
    533 if [[ "$rad" == "rrtm" ]]
    534 then
    535    CPP_KEY="$CPP_KEY CPP_RRTM"
    536    src_dirs="$src_dirs phy${physique}/rrtm"
    537 fi
    538 if [[ "$rad" == "ecrad" ]]
    539 then
    540    CPP_KEY="$CPP_KEY CPP_ECRAD"
    541    src_dirs="$src_dirs phy${physique}/ecrad"
    542 fi
    543 
    544 if [[ "$dust" == "true" ]]
    545 then
    546    CPP_KEY="$CPP_KEY CPP_Dust"
    547    src_dirs="$src_dirs phy${physique}/Dust"
    548 fi
    549 
    550 if [[ "$strataer" == "true" ]]
    551 then
    552    CPP_KEY="$CPP_KEY CPP_StratAer"
    553    src_dirs="$src_dirs phy${physique}/StratAer"
    554 fi
    555557
    556558#add new ocean skin modelisation to source dir by default
     
    804806# Execution du make
    805807#################################################################
    806 echo $makecommand RANLIB=$ranlib -f $LMDGCM/makefile \
    807 OPTION_DEP="$opt_dep" OPTION_LINK="$LIB ${PARA_LD}" \
    808 OPTIM90="${COMPIL_FFLAGS} ${PARA_FFLAGS}" \
    809 OPTIMTRU90="${COMPIL_FFLAGS} ${PARA_FFLAGS}" \
    810 OPTIM="${COMPIL_FFLAGS} ${PARA_FFLAGS}" \
    811 INCLUDE="$INCLUDE" \
    812 $filtre \
    813 LIBO=${LIBOGCM}/${nomlib} \
    814 "PHYS=$physique" \
    815 LIBPHY=${LIBPHY} \
    816 LIBPHY_COMMON=${LIBPHY_COMMON} \
    817 LIBDYN_PHYS=${LIBDYN_PHYS} \
    818 DIM=$dimc \
    819 FLAG_PARA=$FLAG_PARA \
    820 L_PHY="$lib_phy" \
    821 L_DYN_PHY="$libdyn_phy" \
    822 L_ADJNT=$adjnt \
    823 L_COSP="$lcosp" \
    824 L_COSP2="$lcosp2" \
    825 L_COSPV2="$lcospv2" \
    826 L_CHIMIE="$libchimie" \
    827 LOCAL_DIR="$localdir"  \
    828 F77="$fcompiler" \
    829 F90="$fcompiler" \
    830 OPLINK="$LIB" \
    831 LINK="$linker" \
    832 GCM="$LMDGCM" \
    833 MOD_LOC_DIR=$mod_loc_dir \
    834 MOD_SUFFIX="mod" \
    835 AR=$arcommand \
    836 ARFLAGS="$arflags" \
    837 DIRMAIN=$dirmain \
    838 SOURCE=$source_code \
    839 PROG=$code
    840 
     808set -v
    841809$makecommand RANLIB=$ranlib -f $LMDGCM/makefile \
    842810OPTION_DEP="$opt_dep" OPTION_LINK="$LIB ${PARA_LD}" \
     
    874842PROG=$code
    875843
     844set +v
    876845
    877846if [[ -r $LIBFGCM/grid/dimensions.h ]]
Note: See TracChangeset for help on using the changeset viewer.