Changeset 2852 for trunk/MESOSCALE


Ignore:
Timestamp:
Dec 21, 2022, 1:43:04 PM (2 years ago)
Author:
aslmd
Message:

meso_install.sh : make it work for spirit (still problems with netcdf for geogrid and metgrid) and removed LES option (now done with separate phy/dyn compilation in the LES_Mars_project)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MESOSCALE/LMD_MM_MARS/SIMU/meso_install.sh

    r2474 r2852  
    1616version="841f9fc0b74168c34dbbcd47fef2544654a3d763" #2315
    1717version="tags/mesoscale-compile-run"
     18version="tags/mesoscale-compile-run_MESOIPSL_tests"
    1819## once folder created, code may be updated using git reset --hard $commit_SHA
    1920################################
     
    2223gcm=""
    2324gcmcompile="on"
    24 les="off"
    2525fortcom="ifort"
    2626while getopts "gn:hv:f:ol" options; do
     
    3030   v ) version="${OPTARG}";;
    3131   o ) gcm="old" ;;
    32    l ) gcmcompile="off";les="on" ;;
    3332   f ) fortcom="${OPTARG}" ;;
    3433   h ) echo "
     
    3837# -v [version/tag] --> git commit or tag
    3938# -o               --> old GCM+meso version
    40 # -l               --> LES version (only new physics)
    4139# -f               --> fortran compiler (experimental)
    4240" ; exit ;;
     
    4745## machine on which you will compile
    4846machine="CICLAD"
     47machine="MESOIPSL"
    4948## server for sources
    5049where_is_svn="https://svn.lmd.jussieu.fr/Planeto/trunk/"
     
    8584echo "*** get gitlab repository"
    8685\rm $refrepo/code
    87 git clone --depth $depth $where_is_git $refrepo/code
     86git clone --no-single-branch --depth $depth $where_is_git $refrepo/code
    8887echo "*** set a branch with same name as repo for version "$version
    8988cd $refrepo/code
     
    126125   ./install_ioipsl_ciclad-ifort.bash > $log 2> $log
    127126 else
    128    ./install_ioipsl_$fortcom".bash" > $log 2> $log
     127   ./install_ioipsl_${fortcom}_${machine}".bash" > $log 2> $log
    129128 fi
    130129
     
    138137 echo "#! /bin/bash" > $refrepo/compile_gcm.sh
    139138 echo "cd $refrepo/code/LMDZ.COMMON" >> $refrepo/compile_gcm.sh
    140  echo "./makelmdz_fcm -cpp MESOINI -j 8 -d $dimgcm -arch $machine$fortcom -parallel mpi -p mars gcm" >> $refrepo/compile_gcm.sh
    141  echo "./makelmdz_fcm              -j 8 -d $dimgcm -arch $machine$fortcom               -p mars newstart" >> $refrepo/compile_gcm.sh
     139 if [[ "${machine}" == "CICLAD" ]]
     140 then
     141   echo "./makelmdz_fcm -cpp MESOINI -j 8 -d $dimgcm -arch $machine$fortcom -parallel mpi -p mars gcm" >> $refrepo/compile_gcm.sh
     142   echo "./makelmdz_fcm              -j 8 -d $dimgcm -arch $machine$fortcom               -p mars newstart" >> $refrepo/compile_gcm.sh
     143 else
     144   echo "./makelmdz_fcm -cpp MESOINI -j 8 -d $dimgcm -arch ${fortcom}_${machine} -parallel mpi -p mars gcm" >> $refrepo/compile_gcm.sh
     145   echo "./makelmdz_fcm              -j 8 -d $dimgcm -arch ${fortcom}_${machine}               -p mars newstart" >> $refrepo/compile_gcm.sh
     146 fi
    142147 echo "cd $refrepo/gcm ; \rm gcm.e ; ln -sf $refrepo/code/LMDZ.COMMON/bin/gcm_${dimgcm}_phymars_para.e gcm.e" >> $refrepo/compile_gcm.sh
    143148 echo "cd $refrepo/gcm/newstart ; \rm newstart.e ; ln -sf $refrepo/code/LMDZ.COMMON/bin/newstart_${dimgcm}_phymars_seq.e newstart.e" >> $refrepo/compile_gcm.sh
     
    176181## ----------------------
    177182echo "*** compile mesoscale"
    178 #
    179 if [[ "${les}" == "on" ]]
    180 then
    181   echo "*** LES LES LES LES"
    182   cd $refrepo/code/MESOSCALE/LMD_MM_MARS/SRC/LES/
    183   ./LMD_LES_MARS_install > /dev/null
    184   option=$option" -c les"
    185 fi
    186 #
    187183cd $refrepo/code/MESOSCALE/LMD_MM_MARS
    188184ls $refrepo/mesoin
     
    194190rm -rf $refrepo/mesoin
    195191
    196 if [[ "${les}" == "off" ]]
    197 then
    198192## -------------------------------
    199193## make ini&bdy tools in mesoscale
     
    216210rm -rf $refrepo/wpsin
    217211rm -rf logcompile
     212#### to avoid weird comments bug
     213#### .... still a problem with NETCDF
     214sed s+"-C -P"+"-P"+g configure.wps > yeah ; mv -f yeah configure.wps
     215####
    218216./compile > logcompile 2>&1
    219217
     
    233231  rm -rf $fff
    234232done
    235 fi
    236233
    237234## ------------------------
Note: See TracChangeset for help on using the changeset viewer.