Changeset 6840 for CONFIG/UNIFORM/v7/IPSLCM7/compile_ipslcm7.sh
- Timestamp:
- 05/21/24 10:22:32 (5 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CONFIG/UNIFORM/v7/IPSLCM7/compile_ipslcm7.sh
r6838 r6840 188 188 echo " Now tar XIOS repository" 189 189 echo " Now tar XIOS repository" >> $outfile 190 tar -cf $modipsl/modeles/XIOS.tar $modipsl/modeles/XIOS 191 rm -rf $modipsl/modeles/XIOS 190 cd $modipsl/modeles 191 tar -cf XIOS.tar XIOS 192 rm -rf XIOS 192 193 else 193 194 echo " No XIOS repository to compress" … … 198 199 echo "Now tar LMDZ/libo repository" 199 200 echo "Now tar LMDZ/libo repository" >> $outfile 200 tar -cf $modipsl/modeles/LMDZ/libo.tar $modipsl/modeles/LMDZ/libo 201 rm -rf $modipsl/modeles/LMDZ/libo 201 cd $modipsl/modeles/LMDZ 202 tar -cf libo.tar libo 203 rm -rf libo 202 204 else 203 205 echo " No LMDZ/libo repository to compress" … … 320 322 321 323 ## 2.3 Compile xios 324 cd $modipsl/modeles 322 325 echo; echo "NOW DECOMPRESS XIOS IF NEEDED" 323 326 # First check if XIOS needs to be decompressed … … 329 332 echo >> $outfile 330 333 echo "Found XIOS_${optmode}.tar -> decompress repository" >> $outfile 331 # Do not write "tar -xf ... -C $modipsl/modeles because it's modeles/XIOS that is compressed, not only XIOS/ 332 tar -xf $modipsl/modeles/XIOS_${optmode}.tar -C $modipsl/ >> $outfile 2>&1 334 tar -xf XIOS_${optmode}.tar >> $outfile 2>&1 333 335 elif [[ -f $modipsl/modeles/XIOS_prod.tar ]]; then 334 336 echo >> $outfile 335 337 echo "Found XIOS_prod.tar -> decompress repository" >> $outfile 336 tar -xf $modipsl/modeles/XIOS_prod.tar -C $modipsl/>> $outfile 2>&1338 tar -xf $modipsl/modeles/XIOS_prod.tar >> $outfile 2>&1 337 339 elif [[ -f $modipsl/modeles/XIOS_debug.tar ]]; then 338 340 echo >> $outfile 339 341 echo "Found XIOS_debug.tar -> decompress repository" >> $outfile 340 tar -xf $modipsl/modeles/XIOS_debug.tar -C $modipsl/>> $outfile 2>&1342 tar -xf $modipsl/modeles/XIOS_debug.tar >> $outfile 2>&1 341 343 elif [[ -f $modipsl/modeles/XIOS_dev.tar ]]; then 342 344 echo >> $outfile 343 345 echo "Found XIOS_dev.tar -> decompress repository" >> $outfile 344 tar -xf $modipsl/modeles/XIOS_dev.tar -C $modipsl/>> $outfile 2>&1346 tar -xf $modipsl/modeles/XIOS_dev.tar >> $outfile 2>&1 345 347 elif [[ -f $modipsl/modeles/XIOS.tar ]]; then 346 348 echo >> $outfile 347 349 echo "Found XIOS.tar -> decompress repository" >> $outfile 348 tar -xf $modipsl/modeles/XIOS.tar -C $modipsl/>> $outfile 2>&1350 tar -xf $modipsl/modeles/XIOS.tar >> $outfile 2>&1 349 351 else 350 352 echo "XIOS source code was not found. Exit" … … 537 539 538 540 ## 2.7 Compile LMDZ 539 cd $modipsl/modeles/LMDZ540 541 541 542 # First check if LMDZ/libo exist or if it could be decompressed … … 548 549 echo "Found LMDZ/libo_${optmode}.tar -> decompress repository"; >> $outfile 549 550 echo >> $outfile 550 tar -xf $modipsl/modeles/LMDZ/libo_${optmode}.tar -C $modipsl/ >> $outfile 2>&1 551 cd $modipsl/modeles/LMDZ 552 tar -xf libo_${optmode}.tar >> $outfile 2>&1 551 553 fi 552 554 … … 556 558 echo; echo "NOW COMPILE LMDZ FOR COUPLING TO DYNAMICO" 557 559 echo >> $outfile ; echo " NOW COMPILE LMDZ FOR COUPLING TO DYNAMICO" >> $outfile 558 560 cd $modipsl/modeles/LMDZ 559 561 560 562 # Check if the compilation of LMDZ was previsouly interupted prematured. … … 666 668 667 669 cd $modipsl/modeles/LMDZ 670 668 671 # Compile LMDZ regular lat-lon exectuable 669 672 echo; echo "NOW COMPILE LMDZ REGULAR LAT-LON MODE. Resolution = ${resol_atm}" … … 789 792 echo "Option comp_tar activated, now compress XIOS" 790 793 echo "Option comp_tar activated, now compress XIOS" >> $outfile 791 tar -cf $modipsl/modeles/XIOS_${optmode}.tar $modipsl/modeles/XIOS 792 rm -rf $modipsl/modeles/XIOS 793 fi 794 cd $modipsl/modeles 795 tar -cf XIOS_${optmode}.tar XIOS 796 rm -rf XIOS 797 fi 798 794 799 if [ $comp_tar == yes ] && [ -d $modipsl/modeles/LMDZ/libo ] ; then 795 800 echo "Option comp_tar activated, now compress LMDZ/libo" 796 801 echo "Option comp_tar activated, now compress LMDZ/libo" >> $outfile 797 tar -cf $modipsl/modeles/LMDZ/libo_${optmode}.tar $modipsl/modeles/LMDZ/libo 798 rm -rf $modipsl/modeles/LMDZ/libo 799 fi 800 802 cd $modipsl/modeles/LMDZ 803 tar -cf libo_${optmode}.tar libo 804 rm -rf libo 805 fi 806 801 807 echo >>$outfile ; echo "ALL COMPILING FINISHED" >> $outfile 802 808 echo ls -lrt modipsl/bin >> $outfile
Note: See TracChangeset
for help on using the changeset viewer.