Ignore:
Timestamp:
Jun 23, 2023, 4:10:41 PM (12 months ago)
Author:
Laurent Fairhead
Message:

Merged trunk revisions from r4443 to r4582 (HEAD) into branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/Portage_acc/makelmdz

    r4446 r4584  
    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#===============================================================================
     509INCLUDE="$INCLUDE ${NETCDF95_INCDIR}"
     510LIB="$LIB ${NETCDF95_LIBDIR} -l${LIBPREFIX}netcdf95"
     511
    478512if [[ $io == ioipsl ]]
    479513then
     
    521555
    522556
    523 if [[ "$inlandsis" == "true" ]]
    524 then
    525    CPP_KEY="$CPP_KEY CPP_INLANDSIS"
    526    src_dirs="$src_dirs phy${physique}/inlandsis"
    527 fi
    528 
    529 
    530 if [[ "$rad" == "rrtm" ]]
    531 then
    532    CPP_KEY="$CPP_KEY CPP_RRTM"
    533    src_dirs="$src_dirs phy${physique}/rrtm"
    534 fi
    535 if [[ "$rad" == "ecrad" ]]
    536 then
    537    CPP_KEY="$CPP_KEY CPP_ECRAD"
    538    src_dirs="$src_dirs phy${physique}/ecrad"
    539 fi
    540 
    541 if [[ "$dust" == "true" ]]
    542 then
    543    CPP_KEY="$CPP_KEY CPP_Dust"
    544    src_dirs="$src_dirs phy${physique}/Dust"
    545 fi
    546 
    547 if [[ "$strataer" == "true" ]]
    548 then
    549    CPP_KEY="$CPP_KEY CPP_StratAer"
    550    src_dirs="$src_dirs phy${physique}/StratAer"
    551 fi
    552557
    553558#add new ocean skin modelisation to source dir by default
     
    801806# Execution du make
    802807#################################################################
    803 echo $makecommand RANLIB=$ranlib -f $LMDGCM/makefile \
    804 OPTION_DEP="$opt_dep" OPTION_LINK="$LIB ${PARA_LD}" \
    805 OPTIM90="${COMPIL_FFLAGS} ${PARA_FFLAGS}" \
    806 OPTIMTRU90="${COMPIL_FFLAGS} ${PARA_FFLAGS}" \
    807 OPTIM="${COMPIL_FFLAGS} ${PARA_FFLAGS}" \
    808 INCLUDE="$INCLUDE" \
    809 $filtre \
    810 LIBO=${LIBOGCM}/${nomlib} \
    811 "PHYS=$physique" \
    812 LIBPHY=${LIBPHY} \
    813 LIBPHY_COMMON=${LIBPHY_COMMON} \
    814 LIBDYN_PHYS=${LIBDYN_PHYS} \
    815 DIM=$dimc \
    816 FLAG_PARA=$FLAG_PARA \
    817 L_PHY="$lib_phy" \
    818 L_DYN_PHY="$libdyn_phy" \
    819 L_ADJNT=$adjnt \
    820 L_COSP="$lcosp" \
    821 L_COSP2="$lcosp2" \
    822 L_COSPV2="$lcospv2" \
    823 L_CHIMIE="$libchimie" \
    824 LOCAL_DIR="$localdir"  \
    825 F77="$fcompiler" \
    826 F90="$fcompiler" \
    827 OPLINK="$LIB" \
    828 LINK="$linker" \
    829 GCM="$LMDGCM" \
    830 MOD_LOC_DIR=$mod_loc_dir \
    831 MOD_SUFFIX="mod" \
    832 AR=$arcommand \
    833 ARFLAGS="$arflags" \
    834 DIRMAIN=$dirmain \
    835 SOURCE=$source_code \
    836 PROG=$code
    837 
     808set -v
    838809$makecommand RANLIB=$ranlib -f $LMDGCM/makefile \
    839810OPTION_DEP="$opt_dep" OPTION_LINK="$LIB ${PARA_LD}" \
     
    871842PROG=$code
    872843
     844set +v
    873845
    874846if [[ -r $LIBFGCM/grid/dimensions.h ]]
Note: See TracChangeset for help on using the changeset viewer.