Changeset 3091 for BOL/script_install


Ignore:
Timestamp:
Nov 28, 2017, 3:04:30 AM (7 years ago)
Author:
fhourdin
Message:

echo de l'emplacement des fichiers log de la compilation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOL/script_install/install_lmdz.sh

    r3089 r3091  
    459459
    460460if [ $netcdf = 1 ] ; then
     461cd $MODEL
     462netcdflog=`pwd`/netcdf.log
    461463echo '##########################################################'
    462464echo Compiling the Netcdf library
    463465echo '##########################################################'
    464 cd $MODEL
     466echo log file : $netcdflog
    465467if [ "$with_xios" = "n" ] ; then
    466468  # keep it simple
     
    478480  ./configure --prefix=$localdir --enable-shared --disable-cxx
    479481  #sed -e 's/gfortran/'$gfortran'/g' Makefile >| tmp ; mv -f tmp Makefile
    480   $make check > netcdf.log 2>&1
    481   $make install >>netcdf.log 2>&1
     482  $make check > $netcdflog 2>&1
     483  $make install >> $netcdflog 2>&1
    482484else
    483485  # download and compile hdf5 and netcdf, etc. using the install_netcdf4_hdf5.bash script
     
    549551
    550552#=======================================================================================
     553  cd $MODEL/modipsl/modeles/IOIPSL/src
     554  ioipsllog=`pwd`/$ioipsl.log
    551555  echo '##########################################################'
    552556  echo 'Compiling IOIPSL, the interface library with Netcdf'
    553557  echo '##########################################################'
    554 
    555   cd $MODEL/modipsl/modeles/IOIPSL/src
     558  echo log file : $ioipsllog
     559
    556560  if [ "$use_shell" = "bash" ] ; then
    557561    cp Makefile Makefile.ksh
     
    560564# if [ "$pclinux" = 1 ] ; then
    561565    # Build IOIPSL modules and library
    562 echo EOEOFOOEOOOOOOOOOOOOOOOOOOOOOOOOOOOO
    563566    $make clean
    564     $make > ioipsl.log 2>&1
     567    $make > $ioipsllog 2>&1
    565568    if [ "$compiler" = "$gfortran" -o "$compiler" = "mpif90" ] ; then # copy module files to lib
    566569      cp -f *.mod ../../../lib
     
    579582      fi
    580583      $make clean
    581       $make > ioipsl.log 2>&1
     584      $make > $ioipsllog 2>&1
    582585    fi
    583586# fi # of if [ "$pclinux" = 1 ]
     
    633636veget_version=false
    634637if [ "$veget" = 1 ] ; then
     638  cd $MODEL/modipsl/modeles/ORCHIDEE
     639  orchideelog=`pwd`/orchidee.log
    635640  echo '########################################################'
    636641  echo 'Compiling ORCHIDEE, the continental surfaces model '
    637642  echo '########################################################'
    638   cd $MODEL/modipsl/modeles/ORCHIDEE
     643  echo log file : $orchideelog
    639644  export ORCHPATH=`pwd`
    640645  if [ -d tools ] ; then
     
    658663     cd ../
    659664# compiling ORCHIDEE sequential mode
    660      ./makeorchidee_fcm -j 8 -noxios -prod -parallel none -arch $arch > orchidee.log 2>&1
     665     ./makeorchidee_fcm -j 8 -noxios -prod -parallel none -arch $arch > $orchideelog 2>&1
    661666     echo ./makeorchidee_fcm -j 8 -noxios -prod -parallel none -arch $arch
    662667     echo Fin de la premiere compilation orchidee ; pwd
     
    677682        if [ ! -d $src_d ] ; then echo Problem orchidee : no $src_d ; exit ; fi
    678683        cd $src_d ; \rm -f *.mod make ; $make clean
    679         $make > orchidee.log 2>&1 ; if [ "$compiler" = "$gfortran" -o "$compiler" = "mpif90" ] ; then cp -f *.mod ../../../lib ; fi
     684        $make > $orchideelog 2>&1 ; if [ "$compiler" = "$gfortran" -o "$compiler" = "mpif90" ] ; then cp -f *.mod ../../../lib ; fi
    680685        cd ..
    681686     done
     
    741746
    742747cd $MODEL/modipsl/modeles/LMDZ*
     748lmdzlog=`pwd`/lmdzlog
    743749
    744750##################################################################
     
    749755if [ "$svn" != "" ] ; then set +e ; svn upgrade ; set -e ; svn update $svnopt ; fi
    750756
    751 ##################################################################
    752 # Compile LMDZ
    753 ##################################################################
     757echo '##################################################################'
     758echo Compile LMDZ
     759echo '##################################################################'
     760echo log file : $lmdzlog
    754761
    755762echo install.sh avant_compilation `date`
     
    763770# sequential compilation and bench
    764771if [ "$sequential" = 1 ] ; then
    765 echo "./$makelmdz $OPT_MAKELMDZ -rrtm true -d ${grid_resolution} -v $veget_version gcm > lmdz.log 2>&1" >> compile.sh
    766 chmod +x ./compile.sh ; ./compile.sh
     772echo "./$makelmdz $OPT_MAKELMDZ -rrtm true -d ${grid_resolution} -v $veget_version gcm " >> compile.sh
     773chmod +x ./compile.sh ; ./compile.sh > $lmdzlog 2>&1
    767774echo install.sh apres_compilation `date`
    768775
     
    799806     mv tmp.fcm arch-local.fcm
    800807     cd ../
    801      # compiling ORCHIDEE parallel mode
    802      ./makeorchidee_fcm -j 8 -clean -noxios -prod -parallel $parallel -arch $arch > orchidee.log 2>&1
    803      ./makeorchidee_fcm -j 8 -noxios -prod -parallel $parallel -arch $arch >> orchidee.log 2>&1
     808     echo compiling ORCHIDEE parallel mode
     809     echo logfile $orchideelog
     810     ./makeorchidee_fcm -j 8 -clean -noxios -prod -parallel $parallel -arch $arch > $orchideelog 2>&1
     811     ./makeorchidee_fcm -j 8 -noxios -prod -parallel $parallel -arch $arch >> $orchideelog 2>&1
    804812     echo ./makeorchidee_fcm -j 8 -clean -noxios -prod -parallel $parallel -arch $arch
    805813     echo ./makeorchidee_fcm -j 8 -noxios -prod -parallel $parallel -arch $arch
    806      echo deuxieme compilation orchidee ; pwd
    807814  else
    808815    echo '##########################################################'
     
    831838  if [ ${hostname:0:5} = ada33 ] ; then echo "module load intel/2013.0" > compile.sh ; fi
    832839  echo resol=${grid_resolution} >> compile.sh
    833   echo ./$makelmdz $OPT_MAKELMDZ -rrtm true $opt_makelmdz_xios -d \$resol -v $veget_version -mem -parallel $parallel gcm > lmdz.log 2>&1 >> compile.sh
    834   chmod +x ./compile.sh ; ./compile.sh
     840  echo ./$makelmdz $OPT_MAKELMDZ -rrtm true $opt_makelmdz_xios -d \$resol -v $veget_version -mem -parallel $parallel gcm >> compile.sh
     841  chmod +x ./compile.sh ; ./compile.sh > $lmdzlog 2>&1
    835842
    836843  echo "Compilation finished"
Note: See TracChangeset for help on using the changeset viewer.