Changeset 3735 for BOL/script_install
- Timestamp:
- Jun 25, 2020, 11:15:04 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOL/script_install/install_lmdz.sh
r3733 r3735 112 112 cosp=0 ; opt_cosp1="" 113 113 cosp=0 ; opt_cosp2="" 114 cosp=0 ; opt_cospv2="" 114 115 opt_cosp="" 115 116 … … 168 169 -cosp to compile with cosp(v1) 169 170 170 -cosp2 to compile with cosp(v2) 171 -cosp2 to compile with cosp(1v2) 172 173 -cospv2 to compile with cosp(v2) 171 174 172 175 -nofcm to compile without fcm … … 197 200 "-cosp") cosp=1 ; opt_cosp1="-cosp true" ; shift ;; 198 201 "-cosp2") cosp2=1 ; opt_cosp2="-cosp2 true" ; shift ;; 202 "-cospv2") cospv2=1 ; opt_cospv2="-cospv2 true" ; shift ;; 199 203 "-orchidee_rev") orchidee_rev=$2 ; shift ; shift ;; 200 204 "-nofcm") compile_with_fcm=0 ; shift ;; … … 366 370 opt_cosp="$opt_cosp2" 367 371 fi 372 if [ "$cospv2" = 1 ] ; then 373 opt_cosp="$opt_cospv2" 374 fi 368 375 369 376 ## if also compiling XIOS, cosp must be activate to define axis in *.xml 370 377 if [ "$with_xios" = "y" ] ; then 371 if [ ! "$cosp" = 1 -o "$cosp2" = 1] ; then378 if [ "$cosp" = 0 -a "$cosp2" = 0 -a "$cospv2" = 0 ] ; then 372 379 echo "Error, you must use -cosp option when compiling with -xios" 373 380 echo "You need to call Cosp in physical first step to define axis variables" … … 375 382 fi 376 383 opt_makelmdz_xios="-io xios" 384 fi 385 386 if [ "$cospv2" = 1 -a "$with_xios" = "n" ] ; then 387 echo "Error, Cospv2 cannot run without Xios" 388 exit 377 389 fi 378 390 … … 1037 1049 tar xvf $bench.tar.gz 1038 1050 1039 if [ "$cosp" = 1 -o "$cosp2" = 1 ] ; then1051 if [ "$cosp" = 1 -o "$cosp2" = 1 -o "$cospv2" = 1 ] ; then 1040 1052 cd BENCH${grid_resolution} 1041 1053 # copier les fichiers namelist input et output our COSP 1042 cp ../DefLists/cosp _input_nl.txt .1043 cp ../DefLists/cosp _output_nl.txt .1054 cp ../DefLists/cosp*_input_nl.txt . 1055 cp ../DefLists/cosp*_output_nl.txt . 1044 1056 # Activer la cles ok_cosp pour tourner avec COSP 1045 1057 sed -e 's@ok_cosp=n@ok_cosp=y@' config.def > tmp … … 1089 1101 1090 1102 #activer les sorties pour Cosp 1091 if [ "$cosp" = 1 ] ; then1103 if [ "$cosp" = 1 -o "$cosp2" = 1 ] ; then 1092 1104 histfile=file_def_histdayCOSP_lmdz.xml 1093 1105 sed -e 's@enabled=".FALSE."@enabled=".TRUE."@' $histfile > tmp ; \mv -f tmp $histfile … … 1095 1107 sed -e 's@compression_level="2"@compression_level="0"@' $histfile > tmp ; \mv -f tmp $histfile 1096 1108 fi 1109 if [ "$cospv2" = 1 ] ; then 1110 histfile=file_def_histdayCOSPv2_lmdz.xml 1111 sed -e 's@compression_level="2"@compression_level="0"@' $histfile > tmp ; \mv -f tmp $histfile 1112 contextfile=context_lmdz.xml 1113 sed -e 's@src="./file_def_histdayCOSP_lmdz.xml"@src="./file_def_histdayCOSPv2_lmdz.xml"@' $contextfile > tmp ; \mv -f tmp $contextfile 1114 fieldfile=field_def_lmdz.xml 1115 sed -e 's@field_def_cosp1.xml@field_def_cospv2.xml@' $fieldfile > tmp ; \mv -f tmp $fieldfile 1116 fi 1117 1097 1118 cd .. 1098 1119 fi … … 1116 1137 echo "export OMP_NUM_THREADS=2" >> bench.sh 1117 1138 fi 1118 echo "ulimit -s unlimited" >> bench.sh 1139 if [ "$cospv2" = 1 -o "$cosp" = 1 -o "$cosp2" = 1 ] ; then 1140 echo "ulimit -s 200000" >> bench.sh 1141 else 1142 echo "ulimit -s unlimited" >> bench.sh 1143 fi 1119 1144 if [ ${hostname:0:5} = jean- ] ; then 1120 1145 echo "srun -n 2 -A $idris_acct@cpu gcm.e > listing 2>&1" >> bench.sh
Note: See TracChangeset
for help on using the changeset viewer.