Ignore:
Timestamp:
Dec 6, 2022, 12:01:16 AM (2 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

    r4013 r4368  
    111111[-prod / -dev / -debug]    : compilation mode production (default) / developement / debug
    112112[-c false/MPI1/MPI2]       : coupling with ocean model : MPI1/MPI2/false (default: false)
    113 [-v false/orchidee2.0/orchidee1.9/true] : version of the vegetation model to include (default: false)
     113[-v false/orchideetrunk/orchidee2.1/orchidee2.0/orchidee1.9] : version of the vegetation model to include (default: false)
    114114          false       : no vegetation model
    115           orchidee2.1 : compile using ORCHIDEE 2.1 (or more recent version)
     115          orchideetrunk : compile using ORCHIDEE trunk from revision 7757 or higher
     116          orchidee2.1 : compile using ORCHIDEE 2.1 until 4.1 included or until revision 7757 on the trunk
    116117          orchidee2.0 : compile using ORCHIDEE 2.0 (or more recent version)
    117118          orchidee1.9 : compile using ORCHIDEE up to the version including OpenMP in ORCHIDEE : tag 1.9-1.9.5(version AR5)-1.9.6
     
    442443
    443444#==============================================================================
    444 if [ "$veget" = "true" -o "$veget" = "orchidee1.9" -o "$veget" = "orchidee2.0" -o "$veget" = "orchidee2.1" ]
     445if [ "$veget" = "true" -o "$veget" = "orchidee1.9" -o "$veget" = "orchidee2.0" -o "$veget" = "orchidee2.1" -o "$veget" = "orchideetrunk" ]
    445446then
    446447
     
    455456      CPP_KEY="$CPP_KEY ORCHIDEE_NOUNSTRUCT"
    456457   elif [[ "$veget" == "orchidee2.1" ]] ; then
     458      CPP_KEY="$CPP_KEY ORCHIDEE_NOLIC"
    457459      orch_libs="sechiba parameters stomate parallel orglob orchidee"
     460   elif [[ "$veget" == "orchideetrunk" ]] ; then
     461      orch_libs="orchidee"
    458462   else
    459463      orch_libs="sechiba parameters stomate parallel orglob"
     
    645649########################################################################
    646650
    647 nomlib=`echo ${arch}_${physique}_${dim_full}_${grille}_${compil_mod}_parall${parallel}_${CPP_KEY}_${FLAG_PARA} | sed -e 's/ //g' -e 's/-//g ' | sed -e 's/CPP_//g'`
     651nomlib=`echo ${arch}_${physique}_${rad}_${dim_full}_${grille}_${compil_mod}_parall${parallel}_${CPP_KEY}_${FLAG_PARA} | sed -e 's/ //g' -e 's/-//g ' | sed -e 's/CPP_//g'`
    648652echo "Path to library: "$nomlib
    649653
     
    692696echo suf_make $suf_make
    693697
     698########################################################################
     699# (re)Creation du makefile
     700########################################################################
     701
     702echo "Controle de la necessite de recreer le makefile"
    694703\rm tmp77 tmp90
    695704for dir in $src_dirs ; do
    696 find libf/$dir -name '*.[Fh]' -print | sort >> tmp77
    697 find libf/$dir -name '*.F90' -print | sort >> tmp90
     705   # On recupere la liste de tous les subroutine, use et include pour
     706   # vérifier que les dépendense n'ont pas changé et reconstuire le
     707   # makefile le cas échéant
     708   # On enleve tout apres ONLy et on met un "uniq" pour que ca ne recrée pas
     709   # le makefile si on se contente d'ajouter des lignes dans le ONLY
     710   for str in subroutine "use " "include " ; do
     711      grep -i "$str" libf/$dir/*.[Fh] | cut -d\( -f1 | sed -e 's/[Oo][Nn][Ll][Yy].*.$//' | uniq >> tmp77
     712      grep -i "$str" libf/$dir/*.F90  | cut -d\( -f1 | sed -e 's/[Oo][Nn][Ll][Yy].*.$//' | uniq >> tmp90
     713   done
    698714done
    699715
     
    715731  \mv -f tmp $makefile
    716732  echo "New makefile created"
    717 fi
     733else
     734  echo Pas besoin de recreer le makefile
     735fi
     736
    718737
    719738ln -sf $makefile makefile
    720 
    721 #Create a .makelmdz file containing main compilation option for later comparisons
    722739echo "$lmdz_configuration" > .makelmdz
    723740
Note: See TracChangeset for help on using the changeset viewer.