Changeset 4368 for LMDZ6/branches/Ocean_skin/makelmdz
- Timestamp:
- Dec 6, 2022, 12:01:16 AM (2 years ago)
- Location:
- LMDZ6/branches/Ocean_skin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/Ocean_skin
- Property svn:mergeinfo changed
-
LMDZ6/branches/Ocean_skin/makelmdz
r4013 r4368 111 111 [-prod / -dev / -debug] : compilation mode production (default) / developement / debug 112 112 [-c false/MPI1/MPI2] : coupling with ocean model : MPI1/MPI2/false (default: false) 113 [-v false/orchidee 2.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) 114 114 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 116 117 orchidee2.0 : compile using ORCHIDEE 2.0 (or more recent version) 117 118 orchidee1.9 : compile using ORCHIDEE up to the version including OpenMP in ORCHIDEE : tag 1.9-1.9.5(version AR5)-1.9.6 … … 442 443 443 444 #============================================================================== 444 if [ "$veget" = "true" -o "$veget" = "orchidee1.9" -o "$veget" = "orchidee2.0" -o "$veget" = "orchidee2.1" ]445 if [ "$veget" = "true" -o "$veget" = "orchidee1.9" -o "$veget" = "orchidee2.0" -o "$veget" = "orchidee2.1" -o "$veget" = "orchideetrunk" ] 445 446 then 446 447 … … 455 456 CPP_KEY="$CPP_KEY ORCHIDEE_NOUNSTRUCT" 456 457 elif [[ "$veget" == "orchidee2.1" ]] ; then 458 CPP_KEY="$CPP_KEY ORCHIDEE_NOLIC" 457 459 orch_libs="sechiba parameters stomate parallel orglob orchidee" 460 elif [[ "$veget" == "orchideetrunk" ]] ; then 461 orch_libs="orchidee" 458 462 else 459 463 orch_libs="sechiba parameters stomate parallel orglob" … … 645 649 ######################################################################## 646 650 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'`651 nomlib=`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'` 648 652 echo "Path to library: "$nomlib 649 653 … … 692 696 echo suf_make $suf_make 693 697 698 ######################################################################## 699 # (re)Creation du makefile 700 ######################################################################## 701 702 echo "Controle de la necessite de recreer le makefile" 694 703 \rm tmp77 tmp90 695 704 for 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 698 714 done 699 715 … … 715 731 \mv -f tmp $makefile 716 732 echo "New makefile created" 717 fi 733 else 734 echo Pas besoin de recreer le makefile 735 fi 736 718 737 719 738 ln -sf $makefile makefile 720 721 #Create a .makelmdz file containing main compilation option for later comparisons722 739 echo "$lmdz_configuration" > .makelmdz 723 740
Note: See TracChangeset
for help on using the changeset viewer.