Changeset 2852 for trunk/MESOSCALE
- Timestamp:
- Dec 21, 2022, 1:43:04 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MESOSCALE/LMD_MM_MARS/SIMU/meso_install.sh
r2474 r2852 16 16 version="841f9fc0b74168c34dbbcd47fef2544654a3d763" #2315 17 17 version="tags/mesoscale-compile-run" 18 version="tags/mesoscale-compile-run_MESOIPSL_tests" 18 19 ## once folder created, code may be updated using git reset --hard $commit_SHA 19 20 ################################ … … 22 23 gcm="" 23 24 gcmcompile="on" 24 les="off"25 25 fortcom="ifort" 26 26 while getopts "gn:hv:f:ol" options; do … … 30 30 v ) version="${OPTARG}";; 31 31 o ) gcm="old" ;; 32 l ) gcmcompile="off";les="on" ;;33 32 f ) fortcom="${OPTARG}" ;; 34 33 h ) echo " … … 38 37 # -v [version/tag] --> git commit or tag 39 38 # -o --> old GCM+meso version 40 # -l --> LES version (only new physics)41 39 # -f --> fortran compiler (experimental) 42 40 " ; exit ;; … … 47 45 ## machine on which you will compile 48 46 machine="CICLAD" 47 machine="MESOIPSL" 49 48 ## server for sources 50 49 where_is_svn="https://svn.lmd.jussieu.fr/Planeto/trunk/" … … 85 84 echo "*** get gitlab repository" 86 85 \rm $refrepo/code 87 git clone -- depth $depth $where_is_git $refrepo/code86 git clone --no-single-branch --depth $depth $where_is_git $refrepo/code 88 87 echo "*** set a branch with same name as repo for version "$version 89 88 cd $refrepo/code … … 126 125 ./install_ioipsl_ciclad-ifort.bash > $log 2> $log 127 126 else 128 ./install_ioipsl_$ fortcom".bash" > $log 2> $log127 ./install_ioipsl_${fortcom}_${machine}".bash" > $log 2> $log 129 128 fi 130 129 … … 138 137 echo "#! /bin/bash" > $refrepo/compile_gcm.sh 139 138 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 142 147 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 143 148 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 … … 176 181 ## ---------------------- 177 182 echo "*** compile mesoscale" 178 #179 if [[ "${les}" == "on" ]]180 then181 echo "*** LES LES LES LES"182 cd $refrepo/code/MESOSCALE/LMD_MM_MARS/SRC/LES/183 ./LMD_LES_MARS_install > /dev/null184 option=$option" -c les"185 fi186 #187 183 cd $refrepo/code/MESOSCALE/LMD_MM_MARS 188 184 ls $refrepo/mesoin … … 194 190 rm -rf $refrepo/mesoin 195 191 196 if [[ "${les}" == "off" ]]197 then198 192 ## ------------------------------- 199 193 ## make ini&bdy tools in mesoscale … … 216 210 rm -rf $refrepo/wpsin 217 211 rm -rf logcompile 212 #### to avoid weird comments bug 213 #### .... still a problem with NETCDF 214 sed s+"-C -P"+"-P"+g configure.wps > yeah ; mv -f yeah configure.wps 215 #### 218 216 ./compile > logcompile 2>&1 219 217 … … 233 231 rm -rf $fff 234 232 done 235 fi236 233 237 234 ## ------------------------
Note: See TracChangeset
for help on using the changeset viewer.