Index: /BOL/Replay/Readme
===================================================================
--- /BOL/Replay/Readme	(revision 4343)
+++ /BOL/Replay/Readme	(revision 4344)
@@ -1,12 +1,20 @@
+---------------------------------------------------------------------------
+
                *****  replay tools  ***********
 
 Developed by F. Hourdin, 2022, frederic.hourdin@lmd.ipsl.fr
 
-The idea is to rerun a unique from the LMDZ physcs package after a first
-simulations.
+---------------------------------------------------------------------------
+
+Purpose :
+---------
+
+The idea is to rerun a unique subroutine (which could istelf call others) from
+the LMDZ physcs package after a first simulations (i.e. routines in
+LMDZ/libf/phylmd).
 The variables in the interface of the routine are stored in binary files
 (dump_ini.bin and dump_param.bin).
-The tools also creates automatically an netcdf file with all the variables of
-the subroutine stored at each time-step.
+The tools also creates automatically an netcdf file phys.nc with all the
+variables of the subroutine stored at each time-step.
 
 1D : run lmdz1d.e first and then replay1d.e
@@ -16,15 +24,34 @@
    Available in sequential mode only (no parallel version so far)
 
+
 Contains :
+---------
+
 * replay_equip.sh
   The main script, to be run on the phylmd directory.
   It equips the fortran routine before compilation.
   The main documentation of the replay tools is in this script
+
 * replay_param.sh
   a first, simpler, but less powerfull version of replay_equip.sh
+
 * replay_clean.sh
   to be run on phylmd to clean all what was added automatically by
   replay_equip.sh
+
 * replay_1D.sh
   A script to run automatically replay tools in SCM mode on
   1D/EXEC/...
+
+It is suggested to add
+export PATH=$PATH:~/LMDZ/Replay
+(or any other location of the Replay directory on you computer)
+so that you can invoke the script from wherever on your computer.
+
+
+Available through
+-----------------
+svn checkout https://svn.lmd.jussieu.fr/LMDZ/BOL/Replay
+Rm : svn deposit created from FH laptop through :
+     svn import ./Replay https://svn.lmd.jussieu.fr/LMDZ/BOL/Replay -m "Import initial des outils Replay"
+
Index: /BOL/Replay/replay_1D.sh
===================================================================
--- /BOL/Replay/replay_1D.sh	(revision 4343)
+++ /BOL/Replay/replay_1D.sh	(revision 4344)
@@ -1,20 +1,39 @@
 #!/bin/bash
 
-routine=wake
+routine=wake # Nom par défaut de la subroutine rejouee. 
+             # Est écrasé par l'argument $1 si fourni
+
 if [ $# -ge 1 ] ; then routine=$1 ; fi
 
-simdir=`pwd | sed -e 's/^.*EXEC.//' -e 's:/.*$::'` ; if [ "`echo $simdir | grep lmd`" = "" ] ; then phys=lmd ; else phys=`echo $simdir | sed -e 's/^.*lmd/lmd/'` ; fi
+#------------------------------------------------------------------------------------------
+# Détection automatique des répertoires contenant le modèle et de la physique (libf/phylmd$pys)
+#------------------------------------------------------------------------------------------
+simdir=`pwd | sed -e 's/^.*EXEC.//' -e 's:/.*$::'`
+if [ "`echo $simdir | grep lmd`" = "" ] ; then phys=lmd ; else phys=`echo $simdir | sed -e 's/^.*lmd/lmd/'` ; fi
 LMDZdir=`pwd | sed -e 's/.1D.*$//'`
+
+
+#------------------------------------------------------------------------------------------
+# Preparation des fichieers fortran
+#------------------------------------------------------------------------------------------
 cd $LMDZdir/modipsl/modeles/LMDZ/libf/phy$phys
-
 replay_clean.sh
 replay_equip.sh $routine
 cd -
 
+#------------------------------------------------------------------------------------------
+# Compilation et execution
+#------------------------------------------------------------------------------------------
 \rm lmdz1d.e replay1d.e
+# Compilation de lmdz1d
 ./compile.sh
+# Compilation de replay1d
 ./compile.sh replay1d
+# Execution de lmdz1d.e
 ./lmdz1d.e
-\mv phys.nc phys0.nc
-\cp -f dump_param_out.bin dump_param_in.bin
+# Sauvegarde du fichier phys.nc
+\mv -f phys.nc phys0.nc
+# Renomage du fichier binaire contenant les variables de l'interface, pour la lecture en replay
+\mv -f dump_param_out.bin dump_param_in.bin
+# Lancement du replay
 ./replay1d.e
