Changeset 3089


Ignore:
Timestamp:
Nov 25, 2017, 5:20:22 PM (6 years ago)
Author:
fhourdin
Message:

Update install_lmdz.sh script to store successive component compilation outputs in log files.
IM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOL/script_install/install_lmdz.sh

    r3088 r3089  
    478478  ./configure --prefix=$localdir --enable-shared --disable-cxx
    479479  #sed -e 's/gfortran/'$gfortran'/g' Makefile >| tmp ; mv -f tmp Makefile
    480   $make check
    481   $make install
     480  $make check > netcdf.log 2>&1
     481  $make install >>netcdf.log 2>&1
    482482else
    483483  # download and compile hdf5 and netcdf, etc. using the install_netcdf4_hdf5.bash script
     
    562562echo EOEOFOOEOOOOOOOOOOOOOOOOOOOOOOOOOOOO
    563563    $make clean
    564     $make
     564    $make > ioipsl.log 2>&1
    565565    if [ "$compiler" = "$gfortran" -o "$compiler" = "mpif90" ] ; then # copy module files to lib
    566566      cp -f *.mod ../../../lib
     
    579579      fi
    580580      $make clean
    581       $make
     581      $make > ioipsl.log 2>&1
    582582    fi
    583583# fi # of if [ "$pclinux" = 1 ]
     
    658658     cd ../
    659659# compiling ORCHIDEE sequential mode
    660      ./makeorchidee_fcm -j 8 -noxios -prod -parallel none -arch $arch
     660     ./makeorchidee_fcm -j 8 -noxios -prod -parallel none -arch $arch > orchidee.log 2>&1
    661661     echo ./makeorchidee_fcm -j 8 -noxios -prod -parallel none -arch $arch
    662662     echo Fin de la premiere compilation orchidee ; pwd
     
    677677        if [ ! -d $src_d ] ; then echo Problem orchidee : no $src_d ; exit ; fi
    678678        cd $src_d ; \rm -f *.mod make ; $make clean
    679         $make ; if [ "$compiler" = "$gfortran" -o "$compiler" = "mpif90" ] ; then cp -f *.mod ../../../lib ; fi
     679        $make > orchidee.log 2>&1 ; if [ "$compiler" = "$gfortran" -o "$compiler" = "mpif90" ] ; then cp -f *.mod ../../../lib ; fi
    680680        cd ..
    681681     done
     
    763763# sequential compilation and bench
    764764if [ "$sequential" = 1 ] ; then
    765 echo "./$makelmdz $OPT_MAKELMDZ -rrtm true -d ${grid_resolution} -v $veget_version gcm" >> compile.sh
     765echo "./$makelmdz $OPT_MAKELMDZ -rrtm true -d ${grid_resolution} -v $veget_version gcm > lmdz.log 2>&1" >> compile.sh
    766766chmod +x ./compile.sh ; ./compile.sh
    767767echo install.sh apres_compilation `date`
     
    800800     cd ../
    801801     # compiling ORCHIDEE parallel mode
    802      ./makeorchidee_fcm -j 8 -clean -noxios -prod -parallel $parallel -arch $arch
    803      ./makeorchidee_fcm -j 8 -noxios -prod -parallel $parallel -arch $arch
     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
    804804     echo ./makeorchidee_fcm -j 8 -clean -noxios -prod -parallel $parallel -arch $arch
    805805     echo ./makeorchidee_fcm -j 8 -noxios -prod -parallel $parallel -arch $arch
     
    831831  if [ ${hostname:0:5} = ada33 ] ; then echo "module load intel/2013.0" > compile.sh ; fi
    832832  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 >> 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
    834834  chmod +x ./compile.sh ; ./compile.sh
    835835
Note: See TracChangeset for help on using the changeset viewer.