Index: BOL/script_install/install_lmdz.sh
===================================================================
--- BOL/script_install/install_lmdz.sh	(revision 3089)
+++ BOL/script_install/install_lmdz.sh	(revision 3091)
@@ -459,8 +459,10 @@
 
 if [ $netcdf = 1 ] ; then
+cd $MODEL
+netcdflog=`pwd`/netcdf.log
 echo '##########################################################'
 echo Compiling the Netcdf library
 echo '##########################################################'
-cd $MODEL
+echo log file : $netcdflog
 if [ "$with_xios" = "n" ] ; then
   # keep it simple
@@ -478,6 +480,6 @@
   ./configure --prefix=$localdir --enable-shared --disable-cxx
   #sed -e 's/gfortran/'$gfortran'/g' Makefile >| tmp ; mv -f tmp Makefile
-  $make check > netcdf.log 2>&1
-  $make install >>netcdf.log 2>&1
+  $make check > $netcdflog 2>&1
+  $make install >> $netcdflog 2>&1
 else
   # download and compile hdf5 and netcdf, etc. using the install_netcdf4_hdf5.bash script
@@ -549,9 +551,11 @@
 
 #=======================================================================================
+  cd $MODEL/modipsl/modeles/IOIPSL/src
+  ioipsllog=`pwd`/$ioipsl.log
   echo '##########################################################'
   echo 'Compiling IOIPSL, the interface library with Netcdf'
   echo '##########################################################'
-
-  cd $MODEL/modipsl/modeles/IOIPSL/src
+  echo log file : $ioipsllog
+
   if [ "$use_shell" = "bash" ] ; then
     cp Makefile Makefile.ksh
@@ -560,7 +564,6 @@
 # if [ "$pclinux" = 1 ] ; then
     # Build IOIPSL modules and library
-echo EOEOFOOEOOOOOOOOOOOOOOOOOOOOOOOOOOOO
     $make clean
-    $make > ioipsl.log 2>&1
+    $make > $ioipsllog 2>&1
     if [ "$compiler" = "$gfortran" -o "$compiler" = "mpif90" ] ; then # copy module files to lib
       cp -f *.mod ../../../lib
@@ -579,5 +582,5 @@
       fi
       $make clean
-      $make > ioipsl.log 2>&1
+      $make > $ioipsllog 2>&1
     fi
 # fi # of if [ "$pclinux" = 1 ] 
@@ -633,8 +636,10 @@
 veget_version=false
 if [ "$veget" = 1 ] ; then
+  cd $MODEL/modipsl/modeles/ORCHIDEE
+  orchideelog=`pwd`/orchidee.log
   echo '########################################################'
   echo 'Compiling ORCHIDEE, the continental surfaces model '
   echo '########################################################'
-  cd $MODEL/modipsl/modeles/ORCHIDEE
+  echo log file : $orchideelog
   export ORCHPATH=`pwd`
   if [ -d tools ] ; then
@@ -658,5 +663,5 @@
      cd ../ 
 # compiling ORCHIDEE sequential mode
-     ./makeorchidee_fcm -j 8 -noxios -prod -parallel none -arch $arch > orchidee.log 2>&1
+     ./makeorchidee_fcm -j 8 -noxios -prod -parallel none -arch $arch > $orchideelog 2>&1
      echo ./makeorchidee_fcm -j 8 -noxios -prod -parallel none -arch $arch
      echo Fin de la premiere compilation orchidee ; pwd
@@ -677,5 +682,5 @@
         if [ ! -d $src_d ] ; then echo Problem orchidee : no $src_d ; exit ; fi
         cd $src_d ; \rm -f *.mod make ; $make clean
-        $make > orchidee.log 2>&1 ; if [ "$compiler" = "$gfortran" -o "$compiler" = "mpif90" ] ; then cp -f *.mod ../../../lib ; fi
+        $make > $orchideelog 2>&1 ; if [ "$compiler" = "$gfortran" -o "$compiler" = "mpif90" ] ; then cp -f *.mod ../../../lib ; fi
         cd ..
      done
@@ -741,4 +746,5 @@
 
 cd $MODEL/modipsl/modeles/LMDZ*
+lmdzlog=`pwd`/lmdzlog
 
 ##################################################################
@@ -749,7 +755,8 @@
 if [ "$svn" != "" ] ; then set +e ; svn upgrade ; set -e ; svn update $svnopt ; fi
 
-##################################################################
-# Compile LMDZ
-##################################################################
+echo '##################################################################'
+echo Compile LMDZ
+echo '##################################################################'
+echo log file : $lmdzlog
 
 echo install.sh avant_compilation `date`
@@ -763,6 +770,6 @@
 # sequential compilation and bench
 if [ "$sequential" = 1 ] ; then
-echo "./$makelmdz $OPT_MAKELMDZ -rrtm true -d ${grid_resolution} -v $veget_version gcm > lmdz.log 2>&1" >> compile.sh
-chmod +x ./compile.sh ; ./compile.sh
+echo "./$makelmdz $OPT_MAKELMDZ -rrtm true -d ${grid_resolution} -v $veget_version gcm " >> compile.sh
+chmod +x ./compile.sh ; ./compile.sh > $lmdzlog 2>&1
 echo install.sh apres_compilation `date`
 
@@ -799,10 +806,10 @@
      mv tmp.fcm arch-local.fcm
      cd ../
-     # compiling ORCHIDEE parallel mode
-     ./makeorchidee_fcm -j 8 -clean -noxios -prod -parallel $parallel -arch $arch > orchidee.log 2>&1
-     ./makeorchidee_fcm -j 8 -noxios -prod -parallel $parallel -arch $arch >> orchidee.log 2>&1
+     echo compiling ORCHIDEE parallel mode
+     echo logfile $orchideelog
+     ./makeorchidee_fcm -j 8 -clean -noxios -prod -parallel $parallel -arch $arch > $orchideelog 2>&1
+     ./makeorchidee_fcm -j 8 -noxios -prod -parallel $parallel -arch $arch >> $orchideelog 2>&1
      echo ./makeorchidee_fcm -j 8 -clean -noxios -prod -parallel $parallel -arch $arch
      echo ./makeorchidee_fcm -j 8 -noxios -prod -parallel $parallel -arch $arch
-     echo deuxieme compilation orchidee ; pwd
   else
     echo '##########################################################'
@@ -831,6 +838,6 @@
   if [ ${hostname:0:5} = ada33 ] ; then echo "module load intel/2013.0" > compile.sh ; fi
   echo resol=${grid_resolution} >> compile.sh
-  echo ./$makelmdz $OPT_MAKELMDZ -rrtm true $opt_makelmdz_xios -d \$resol -v $veget_version -mem -parallel $parallel gcm > lmdz.log 2>&1 >> compile.sh
-  chmod +x ./compile.sh ; ./compile.sh
+  echo ./$makelmdz $OPT_MAKELMDZ -rrtm true $opt_makelmdz_xios -d \$resol -v $veget_version -mem -parallel $parallel gcm >> compile.sh
+  chmod +x ./compile.sh ; ./compile.sh > $lmdzlog 2>&1
 
   echo "Compilation finished"
