Index: /modipsl/branches/newconfig/doc/NEMO_CeCILL.txt
===================================================================
--- /modipsl/branches/newconfig/doc/NEMO_CeCILL.txt	(revision 1722)
+++ /modipsl/branches/newconfig/doc/NEMO_CeCILL.txt	(revision 1722)
@@ -0,0 +1,34 @@
+The following licence information concerns ONLY the NEMO SYSTEM
+===============================================================
+
+Copyright © Centre National de la Recherche Scientifique CNRS  
+
+This software is a computer program whose purpose is the numerical
+modelling of the ocean dynamics (direct, adjoint and linear-tangent
+components), tracers, biogeochemistry and sea-ice.
+
+This software is governed by the CeCILL  license under French law and
+abiding by the rules of distribution of free software.  You can  use, 
+modify and/ or redistribute the software under the terms of the CeCILL
+license as circulated by CEA, CNRS and INRIA at the following URL
+"http://www.cecill.info". 
+
+As a counterpart to the access to the source code and  rights to copy,
+modify and redistribute granted by the license, users are provided only
+with a limited warranty  and the software's author,  the holder of the
+economic rights,  and the successive licensors  have only  limited
+liability. 
+
+In this respect, the user's attention is drawn to the risks associated
+with loading,  using,  modifying and/or developing or reproducing the
+software by the user in light of its specific status of free software,
+that may mean  that it is complicated to manipulate,  and  that  also
+therefore means  that it is reserved for developers  and  experienced
+professionals having in-depth computer knowledge. Users are therefore
+encouraged to load and test the software's suitability as regards their
+requirements in conditions enabling the security of their systems and/or 
+data to be ensured and,  more generally, to use and operate it in the 
+same conditions as regards security. 
+
+The fact that you are presently reading this means that you have had
+knowledge of the CeCILL license and that you accept its terms.
Index: /modipsl/branches/newconfig/util/AA_make.gdef
===================================================================
--- /modipsl/branches/newconfig/util/AA_make.gdef	(revision 1722)
+++ /modipsl/branches/newconfig/util/AA_make.gdef	(revision 1722)
@@ -0,0 +1,1042 @@
+#-
+#- $Id$
+#-
+#- Validate the correlation between the target and the environment
+#-
+UTIL_DIR = '??'
+WW_h_t = $(shell cat $(UTIL_DIR)/.host_target)
+WW_h_w = $(shell $(UTIL_DIR)/w_i_h)
+WW_t_e = $(shell $(UTIL_DIR)/w_i_e $(WW_h_t) $(WW_h_w))
+ifeq "$(WW_t_e)" "NO"
+ $(error )
+endif
+#-
+#-Q- Darwin   #- Global definitions for Mac OSX, gfortran
+#-Q- Darwin   LIB_MPI = MPI1
+#-Q- Darwin   LIB_MPI_BIS = MPI1
+#-Q- Darwin   PRISM_ARCH = Darwin
+#-Q- Darwin   PRISM_NAME = Darwin
+#-Q- Darwin   FCM_ARCH = gfortran
+#-Q- Darwin   M_K = make
+#-Q- Darwin   P_C = cpp
+#-Q- Darwin   P_O = -fpreprocessed -P -C -traditional $(P_P)
+#-Q- Darwin   F_C = gfortran -c -cpp
+#-Q- Darwin   #-D- MD    F_D = -g -Wall -fbounds-check -pedantic -finit-real=nan
+#-Q- Darwin   #-D- MN    F_D =
+#-Q- Darwin   #-P- I4R4  F_P =
+#-Q- Darwin   #-P- I4R8  F_P = -fdefault-real-8
+#-Q- Darwin   #-P- I8R8  F_P = -fdefault-integer-8 -fdefault-real-8
+#-Q- Darwin   w_w = -O5 -funroll-all-loops $(F_D) $(F_P) -I$(MODDIR)
+#-Q- Darwin   F_O = $(w_w) -J$(MODDIR)
+#-Q- Darwin   F_L = gfortran
+#-Q- Darwin   M_M = 0
+#-Q- Darwin   L_X = 0
+#-Q- Darwin   L_O =
+#-Q- Darwin   A_C = ar -rs
+#-Q- Darwin   A_G = ar -x
+#-Q- Darwin   C_C = cc -c
+#-Q- Darwin   C_O =
+#-Q- Darwin   C_L = cc
+#-Q- Darwin   FC_C = cc -c
+#-Q- Darwin   FC_O =
+#-Q- Darwin   FC_L = cc
+#-Q- Darwin   #-
+#-Q- Darwin   NCDF_INC = /sw/opt/netcdf7/include
+#-Q- Darwin   NCDF_LIB = -L/sw/opt/netcdf7/lib -lnetcdf
+#-Q- Darwin   #-
+#-Q- Darwin_g95  #- Global definitions for Mac OSX, g95
+#-Q- Darwin_g95  M_K = make
+#-Q- Darwin_g95  P_C = cpp
+#-Q- Darwin_g95  P_O = -fpreprocessed -P -C -traditional $(P_P)
+#-Q- Darwin_g95  F_C = g95 -c
+#-Q- Darwin_g95  #-D- MD    F_D = -g -Wall -fbounds-check
+#-Q- Darwin_g95  #-D- MN    F_D =
+#-Q- Darwin_g95  #-P- I4R4  F_P = -i4
+#-Q- Darwin_g95  #-P- I4R8  F_P = -i4 -r8
+#-Q- Darwin_g95  #-P- I8R8  F_P = -i8 -r8
+#-Q- Darwin_g95  w_w = -O5 -funroll-all-loops $(F_D) $(F_P) -I$(MODDIR)
+#-Q- Darwin_g95  F_O = $(w_w) -fmod=$(MODDIR)
+#-Q- Darwin_g95  F_L = g95
+#-Q- Darwin_g95  M_M = 0
+#-Q- Darwin_g95  L_X = 0
+#-Q- Darwin_g95  L_O =
+#-Q- Darwin_g95  A_C = ar -rs
+#-Q- Darwin_g95  A_G = ar -x
+#-Q- Darwin_g95  C_C = cc -c
+#-Q- Darwin_g95  C_O =
+#-Q- Darwin_g95  C_L = cc
+#-Q- Darwin_g95  #-
+#-Q- Darwin_g95  NCDF_INC = /usr/install/include
+#-Q- Darwin_g95  NCDF_LIB = -L/usr/install/lib -lnetcdf
+#-Q- Darwin_g95  #-
+#-Q- aix      #- Global definitions for IBM AIX (MPP)
+#-Q- aix      LIB_MPI = MPI1
+#-Q- aix      LIB_MPI_BIS = MPI1
+#-Q- aix      PRISM_ARCH = AIX
+#-Q- aix      PRISM_NAME = zahir
+#-Q- aix      FCM_ARCH = AIX_ZAHIR
+#-Q- aix      M_K = gmake
+#-Q- aix      P_C = /usr/lib/cpp
+#-Q- aix      P_O = -P -I/usr/lpp/ppe.poe/include/thread64 -C $(P_P:-WF,-D%=-D%)
+#-Q- aix      F_C = mpxlf90_r -c
+#-Q- aix      #-D- MD    F_D =
+#-Q- aix      #-D- MN    F_D =
+#-Q- aix      #-P- I4R4  F_P = -qrealsize=4
+#-Q- aix      #-P- I4R8  F_P = -qrealsize=8
+#-Q- aix      #-P- I8R8  F_P =
+#-Q- aix      w_w = $(F_P) -O3 -qsuffix=f=f90
+#-Q- aix      F_O = $(w_w) -I$(MODDIR) -qmoddir=$(MODDIR)
+#-Q- aix      F_L = mpxlf90_r
+#-Q- aix      M_M = 0
+#-Q- aix      L_X = 0
+#-Q- aix      L_O = $(F_P) -q64 -bmaxdata:2000000000 -O3
+#-Q- aix      A_C = ar -rs -X64
+#-Q- aix      A_G = ar -x -X64
+#-Q- aix      C_C = cc -c
+#-Q- aix      C_O = -O
+#-Q- aix      C_L = cc
+#-Q- aix      #-
+#-Q- aix      NCDF_INC = /usr/local/pub/include
+#-Q- aix      NCDF_LIB = -L/usr/local/pub/lib -lnetcdf
+#-Q- aix      #-
+#-Q- aix6     #- Global definitions for IBM AIX Power6 (MPP)
+#-Q- aix6     LIB_MPI = MPI1
+#-Q- aix6     LIB_MPI_BIS = MPI1
+#-Q- aix6     PRISM_ARCH = AIX6
+#-Q- aix6     PRISM_NAME = vargas
+#-Q- aix6     FCM_ARCH = PW6_VARGAS
+#-Q- aix6     M_K = gmake
+#-Q- aix6     P_C = /usr/lib/cpp
+#-Q- aix6     P_O = -P -I/usr/lpp/ppe.poe/include/thread64 -C $(P_P:-WF,-D%=-D%)
+#-Q- aix6     F_C = mpxlf90_r -c
+#-Q- aix6     #-D- MD    F_D =
+#-Q- aix6     #-D- MN    F_D =
+#-Q- aix6     #-P- I4R4  F_P = -qrealsize=4
+#-Q- aix6     #-P- I4R8  F_P = -qrealsize=8
+#-Q- aix6     #-P- I8R8  F_P =
+#-Q- aix6     #w_w = $(F_P) -O3 -qsuffix=f=f90
+#-Q- aix6     w_w = $(F_P) -O3 -qsuffix=cpp=f90 -qfree=f90
+#-Q- aix6     F_O = $(w_w) -WF,-DCPP_PARA -I$(MODDIR) -qmoddir=$(MODDIR) -qextname=flush
+#-Q- aix6     F_L = mpxlf90_r
+#-Q- aix6     M_M = 0
+#-Q- aix6     L_X = 0
+#-Q- aix6     L_O = $(F_P) -q64 -O3
+#-Q- aix6     A_C = ar -rs -X64
+#-Q- aix6     A_G = ar -x -X64
+#-Q- aix6     C_C = cc -c
+#-Q- aix6     C_O = -O
+#-Q- aix6     C_L = cc
+#-Q- aix6     #-
+#-Q- aix6     NCDF_INC = /usr/local/pub/NetCDF/3.6.3/include
+#-Q- aix6     NCDF_LIB = -L/usr/local/pub/NetCDF/3.6.3/lib -lnetcdf
+#-Q- aix6     #-
+#-Q- ax_mono  #- Global definitions for IBM AIX (monoprocessing)
+#-Q- ax_mono  M_K = gmake
+#-Q- ax_mono  P_C = /usr/lib/cpp
+#-Q- ax_mono  P_O = -P -I/usr/lpp/ppe.poe/include/thread64 -C $(P_P:-WF,-D%=-D%)
+#-Q- ax_mono  F_C = xlf90_r -c
+#-Q- ax_mono  #-D- MD    F_D =
+#-Q- ax_mono  #-D- MN    F_D =
+#-Q- ax_mono  #-P- I4R4  F_P = -qrealsize=4
+#-Q- ax_mono  #-P- I4R8  F_P = -qrealsize=8
+#-Q- ax_mono  #-P- I8R8  F_P =
+#-Q- ax_mono  w_w = $(F_P) -O3 -qsuffix=f=f90
+#-Q- ax_mono  F_O = $(w_w) -I$(MODDIR) -qmoddir=$(MODDIR)
+#-Q- ax_mono  F_L = xlf90_r
+#-Q- ax_mono  M_M = 0
+#-Q- ax_mono  L_X = 0
+#-Q- ax_mono  L_O = $(F_P) -q64 -bmaxdata:2000000000 -O3
+#-Q- ax_mono  A_C = ar -rs -X64
+#-Q- ax_mono  A_G = ar -x -X64
+#-Q- ax_mono  C_C = cc -c
+#-Q- ax_mono  C_O = -O
+#-Q- ax_mono  C_L = cc
+#-Q- ax_mono  #-
+#-Q- ax_mono  NCDF_INC = /usr/local/pub/include
+#-Q- ax_mono  NCDF_LIB = -L/usr/local/pub/lib -lnetcdf
+#-Q- ax_mono  #-
+#-Q- ax6_mono #- Global definitions for IBM AIX Power6 (monoprocessing)
+#-Q- ax6_mono M_K = gmake
+#-Q- ax6_mono P_C = /usr/lib/cpp
+#-Q- ax6_mono P_O = -P -I/usr/lpp/ppe.poe/include/thread64 -C $(P_P:-WF,-D%=-D%)
+#-Q- ax6_mono F_C = xlf90_r -c
+#-Q- ax6_mono #-D- MD    F_D =
+#-Q- ax6_mono #-D- MN    F_D =
+#-Q- ax6_mono #-P- I4R4  F_P = -qrealsize=4
+#-Q- ax6_mono #-P- I4R8  F_P = -qrealsize=8
+#-Q- ax6_mono #-P- I8R8  F_P =
+#-Q- ax6_mono w_w = $(F_P) -O3 -qsuffix=f=f90
+#-Q- ax6_mono F_O = $(w_w) -I$(MODDIR) -qmoddir=$(MODDIR)
+#-Q- ax6_mono F_L = xlf90_r
+#-Q- ax6_mono M_M = 0
+#-Q- ax6_mono L_X = 0
+#-Q- ax6_mono L_O = $(F_P) -q64 -bmaxdata:2000000000 -O3
+#-Q- ax6_mono A_C = ar -rs -X64
+#-Q- ax6_mono A_G = ar -x -X64
+#-Q- ax6_mono C_C = cc -c
+#-Q- ax6_mono C_O = -O
+#-Q- ax6_mono C_L = cc
+#-Q- ax6_mono #-
+#-Q- ax6_mono NCDF_INC = /usr/local/pub/NetCDF/3.6.2/include
+#-Q- ax6_mono NCDF_LIB = -L/usr/local/pub/NetCDF/3.6.2/lib -lnetcdf
+#-Q- ax6_mono #-
+#-Q- babel    #- Global definitions for IBM Blue Gene
+#-Q- babel    M_K = gmake
+#-Q- babel    P_C = /usr/bin/cpp
+#-Q- babel    P_O = -P -C $(P_P:-WF,-D%=-D%)
+#-Q- babel    F_C = mpixlf90_r -c
+#-Q- babel    #-D- MD    F_D =
+#-Q- babel    #-D- MN    F_D =
+#-Q- babel    #-P- I4R4  F_P = -qrealsize=4
+#-Q- babel    #-P- I4R8  F_P = -qrealsize=8
+#-Q- babel    #-P- I8R8  F_P =
+#-Q- babel    w_w = $(F_P) -O3 -qsuffix=f=f90
+#-Q- babel    F_O = $(w_w) -I$(MODDIR) -qmoddir=$(MODDIR)
+#-Q- babel    F_L = mpixlf90_r
+#-Q- babel    M_M = 0
+#-Q- babel    L_X = 0
+#-Q- babel    L_O = $(F_P) -O3
+#-Q- babel    A_C = ar -rs
+#-Q- babel    A_G = ar -x
+#-Q- babel    C_C = cc -c
+#-Q- babel    C_O = -O
+#-Q- babel    C_L = cc
+#-Q- babel    #-
+#-Q- babel    NCDF_INC = /bglocal/prod/tools_ibm/netcdf-3.6.1/include
+#-Q- babel    NCDF_LIB = -L/bglocal/prod/tools_ibm/netcdf-3.6.1/lib -lnetcdf
+#-Q- babel    #-
+#-Q- bgfe     #- Global definitions for IBM Blue Gene Front End
+#-Q- bgfe     M_K = gmake
+#-Q- bgfe     P_C = /usr/bin/cpp
+#-Q- bgfe     P_O = -P -C $(P_P:-WF,-D%=-D%)
+#-Q- bgfe     F_C = xlf90_r -c
+#-Q- bgfe     #-D- MD    F_D =
+#-Q- bgfe     #-D- MN    F_D =
+#-Q- bgfe     #-P- I4R4  F_P = -qrealsize=4
+#-Q- bgfe     #-P- I4R8  F_P = -qrealsize=8
+#-Q- bgfe     #-P- I8R8  F_P =
+#-Q- bgfe     w_w = $(F_P) -O3 -qsuffix=f=f90
+#-Q- bgfe     F_O = $(w_w) -I$(MODDIR) -qmoddir=$(MODDIR)
+#-Q- bgfe     F_L = xlf90_r
+#-Q- bgfe     M_M = 0
+#-Q- bgfe     L_X = 0
+#-Q- bgfe     L_O = $(F_P) -O3
+#-Q- bgfe     A_C = ar -rs
+#-Q- bgfe     A_G = ar -x
+#-Q- bgfe     C_C = cc -c
+#-Q- bgfe     C_O = -O
+#-Q- bgfe     C_L = cc
+#-Q- bgfe     #-
+#-Q- bgfe     NCDF_INC = /local/pub/netcdf/netcdf-3.6.2/include
+#-Q- bgfe     NCDF_LIB = -L/local/pub/netcdf/netcdf-3.6.2/lib -lnetcdf
+#-Q- bgfe     #-
+#-Q- cesium  #- Global definitions for Cesium at CCRT
+#-Q- cesium  M_K = gmake
+#-Q- cesium  P_C = cpp
+#-Q- cesium  P_O = -P -C $(P_P)
+#-Q- cesium  F_C = ifort -c
+#-Q- cesium  #-D- MD    F_D = -g
+#-Q- cesium  #-D- MN    F_D =
+#-Q- cesium  #-P- I4R4  F_P = -i4
+#-Q- cesium  #-P- I4R8  F_P = -i4 -r8
+#-Q- cesium  #-P- I8R8  F_P = -i8 -r8
+#-Q- cesium  F_O = -O $(F_D) $(F_P) -I$(MODDIR) -module $(MODDIR)
+#-Q- cesium  F_L = ifort
+#-Q- cesium  M_M = 0
+#-Q- cesium  L_X = 0
+#-Q- cesium  L_O = -Vaxlib
+#-Q- cesium  A_C = ar -r
+#-Q- cesium  A_G = ar -x
+#-Q- cesium  C_C = cc -c
+#-Q- cesium  C_O =
+#-Q- cesium  C_L = cc
+#-Q- cesium  #-
+#-Q- cesium  NCDF_INC = /applications/netcdf-3.6.3/include
+#-Q- cesium  NCDF_LIB = -L/applications/netcdf-3.6.3/lib -lnetcdff -lnetcdf
+#-Q- curie  #-
+#-Q- curie  #- Global definitions for Curie at TGCC
+#-Q- curie LIB_MPI = MPI1
+#-Q- curie LIB_MPI_BIS = MPI1
+#-Q- curie PRISM_ARCH = X64
+#-Q- curie PRISM_NAME = curie
+#-Q- curie FCM_ARCH = X64_CURIE
+#-Q- curie  M_K = gmake
+#-Q- curie  P_C = cpp
+#-Q- curie  P_O = -P -C $(P_P)
+#-Q- curie  F_C = mpif90 -c -cpp
+#-Q- curie  #-D- MD    F_D = -g
+#-Q- curie  #-D- MN    F_D =
+#-Q- curie  #-P- I4R4  F_P = -i4
+#-Q- curie  #-P- I4R8  F_P = -i4 -r8
+#-Q- curie  #-P- I8R8  F_P = -i8 -r8
+#-Q- curie  F_O = -DCPP_PARA -xHost -O3 $(F_D) $(F_P) -I$(MODDIR) -module $(MODDIR)
+#-Q- curie  F_L = mpif90
+#-Q- curie  M_M = 0
+#-Q- curie  L_X = 0
+#-Q- curie  L_O =
+#-Q- curie  A_C = ar -r
+#-Q- curie  A_G = ar -x
+#-Q- curie  C_C = cc -c
+#-Q- curie  C_O =
+#-Q- curie  C_L = cc
+#-Q- curie  #-
+#-Q- curie  NCDF_INC = $(NETCDF_INC_DIR)
+#-Q- curie  NCDF_LIB = -L$(NETCDF_LIB_DIR) -lnetcdff -lnetcdf
+#-Q- curie  #-
+#-Q- ciclad   #- Global definitions for ciclad, gfortran
+#-Q- ciclad   M_K = make
+#-Q- ciclad   P_C = cpp
+#-Q- ciclad   P_O = -fpreprocessed -P -C -traditional $(P_P)
+#-Q- ciclad   F_C = gfortran -c
+#-Q- ciclad   #-D- MD    F_D = -g -Wall -fbounds-check -pedantic -finit-real=nan
+#-Q- ciclad   #-D- MN    F_D =
+#-Q- ciclad   #-P- I4R4  F_P =
+#-Q- ciclad   #-P- I4R8  F_P = -fdefault-real-8
+#-Q- ciclad   #-P- I8R8  F_P = -fdefault-integer-8 -fdefault-real-8
+#-Q- ciclad   w_w = -O5 -funroll-all-loops $(F_D) $(F_P) -I$(MODDIR)
+#-Q- ciclad   F_O = $(w_w) -J$(MODDIR)
+#-Q- ciclad   F_L = gfortran
+#-Q- ciclad   M_M = 0
+#-Q- ciclad   L_X = 0
+#-Q- ciclad   L_O =
+#-Q- ciclad   A_C = ar -rs
+#-Q- ciclad   A_G = ar -x
+#-Q- ciclad   C_C = cc -c
+#-Q- ciclad   C_O =
+#-Q- ciclad   C_L = cc
+#-Q- ciclad   #-
+#-Q- ciclad   NCDF_INC = /opt/netcdf/gfortran/include
+#-Q- ciclad   NCDF_LIB = -L/opt/netcdf/gfortran/lib -lnetcdf
+#-Q- ciclad   #-
+#-Q- cray     #- Obsolete definitions for CRAY
+#-Q- cray     M_K = make
+#-Q- cray     P_C = cpp
+#-Q- cray     P_O = -P -C $(P_P)
+#-Q- cray     F_C = f90 -c
+#-Q- cray     #-D- MD    F_D =
+#-Q- cray     #-D- MN    F_D =
+#-Q- cray     #-P- I4R4  F_P =
+#-Q- cray     #-P- I4R8  F_P =
+#-Q- cray     #-P- I8R8  F_P =
+#-Q- cray     F_O = $(F_D) $(F_P) -v -p $(MODEL_LIB)
+#-Q- cray     F_L = f90
+#-Q- cray     M_M = 0
+#-Q- cray     L_X = 0
+#-Q- cray     L_O =
+#-Q- cray     A_C = bld -r
+#-Q- cray     A_G = bld -x
+#-Q- cray     C_C = cc -c
+#-Q- cray     C_O = -Wall
+#-Q- cray     C_L = cc
+#-Q- cray     #-
+#-Q- cray     NCDF_INC = /usr/local/pub/include
+#-Q- cray     NCDF_LIB = -L/usr/local/pub/lib -lnetcdf
+#-Q- cray     #-
+#-Q- egi      #- Global definitions for ciclad, gfortran
+#-Q- egi      M_K = make
+#-Q- egi      P_C = cpp
+#-Q- egi      P_O = -fpreprocessed -P -C -traditional $(P_P)
+#-Q- egi      F_C = gfortran -c
+#-Q- egi      #-D- MD    F_D = -g -Wall -fbounds-check -pedantic -finit-real=nan
+#-Q- egi      #-D- MN    F_D =
+#-Q- egi      #-P- I4R4  F_P =
+#-Q- egi      #-P- I4R8  F_P = -fdefault-real-8
+#-Q- egi      #-P- I8R8  F_P = -fdefault-integer-8 -fdefault-real-8
+#-Q- egi      w_w = -O5 -funroll-all-loops $(F_D) $(F_P) -I$(MODDIR)
+#-Q- egi      F_O = $(w_w) -J$(MODDIR)
+#-Q- egi      F_L = gfortran
+#-Q- egi      M_M = 0
+#-Q- egi      L_X = 0
+#-Q- egi      L_O =
+#-Q- egi      A_C = ar -rs
+#-Q- egi      A_G = ar -x
+#-Q- egi      C_C = cc -c
+#-Q- egi      C_O =
+#-Q- egi      C_L = cc
+#-Q- egi      #-
+#-Q- egi      NCDF_INC = $(VO_ESR_SW_DIR)/netcdf/current/include
+#-Q- egi      NCDF_LIB = -L$(VO_ESR_SW_DIR)/netcdf/current/lib -lnetcdf
+#-Q- egi      #-
+#-Q- eshpux   #- Global definitions for hpux used as Earth Simulator front-end (moon)
+#-Q- eshpux   LIB_MPI = MPI1
+#-Q- eshpux   LIB_MPI_BIS = MPI1
+#-Q- eshpux   PRISM_ARCH = ES
+#-Q- eshpux   PRISM_NAME = moon
+#-Q- eshpux   FCM_ARCH = ES_MOON
+#-Q- eshpux   M_K = gmake
+#-Q- eshpux   P_C = escpp
+#-Q- eshpux   # FTRACE used for profiling
+#-Q- eshpux   FTRACE = -ftrace
+#-Q- eshpux   # FTRACE =
+#-Q- eshpux   P_O = -P -C $(P_P)
+#-Q- eshpux   F_C = esmpif90 -c
+#-Q- eshpux   #-D- MD    F_D =
+#-Q- eshpux   #-D- MN    F_D =
+#-Q- eshpux   #-P- I4R4  F_P = -dW
+#-Q- eshpux   #-P- I4R8  F_P = -dW -Wf\"-A idbl4\"
+#-Q- eshpux   #-P- I8R8  F_P = -ew
+#-Q- eshpux   F_O = $(F_D) $(F_P) $(FTRACE) -Ep -DCPP_PARA -Wf,"-pvctl loopcnt=999999" -I $(MODDIR)
+#-Q- eshpux   F_L = esmpif90
+#-Q- eshpux   M_M = 1
+#-Q- eshpux   L_X = 1
+#-Q- eshpux   L_O = $(F_P) $(FTRACE)
+#-Q- eshpux   A_C = ar -rv
+#-Q- eshpux   A_G = ar -x
+#-Q- eshpux   A_X = esar -rv
+#-Q- eshpux   C_C = esmpicc -c
+#-Q- eshpux   C_O =
+#-Q- eshpux   C_L = esmpicc
+#-Q- eshpux   FC_C = cc -c
+#-Q- eshpux   FC_O =
+#-Q- eshpux   FC_L = cc
+#-Q- eshpux   #-
+#-Q- eshpux   NCDF_INC = /S/home010/c0010/ES/include
+#-Q- eshpux   NCDF_LIB = -L/S/home010/c0010/ES/lib -lnetcdf
+#-Q- eshpux   #-
+#-Q- fjvpp    #- Obsolete definitions for FUJITSU VPP
+#-Q- fjvpp    M_K = gmake
+#-Q- fjvpp    P_C = cpp
+#-Q- fjvpp    P_O = -P -C $(P_P)
+#-Q- fjvpp    F_C = frt -c
+#-Q- fjvpp    #-D- MD    F_D =
+#-Q- fjvpp    #-D- MN    F_D =
+#-Q- fjvpp    #-P- I4R4  F_P = -AD
+#-Q- fjvpp    #-P- I4R8  F_P = -Ad
+#-Q- fjvpp    #-P- I8R8  F_P = -Ad
+#-Q- fjvpp    w_w = -X9 -Oe -Sw $(F_D) $(F_P) -Am -M$(MODDIR)
+#-Q- fjvpp    F_O = $(w_w) -Of -Wv,-Of,-ilfunc,-preload
+#-Q- fjvpp    F_L = frt
+#-Q- fjvpp    M_M = 0
+#-Q- fjvpp    L_X = 0
+#-Q- fjvpp    L_O = -Wg,-c -Wl,-J,-t,-dy
+#-Q- fjvpp    A_C = ar -r
+#-Q- fjvpp    A_G = ar -x
+#-Q- fjvpp    C_C = cc -c
+#-Q- fjvpp    C_O =
+#-Q- fjvpp    C_L = cc
+#-Q- fjvpp    #-
+#-Q- fjvpp    NCDF_INC = /usr/local/include/netcdf
+#-Q- fjvpp    NCDF_LIB = /usr/local/lib/netcdf/libnetcdf.a
+#-Q- fjvpp    #-
+#-Q- g95      #- Global definitions for gnu g95 compiler
+#-Q- g95      M_K = gmake
+#-Q- g95      P_C = cpp
+#-Q- g95      P_O = -P -C -traditional $(P_P)
+#-Q- g95      F_C = g95 -c
+#-Q- g95      #-D- MD    F_D =
+#-Q- g95      #-D- MN    F_D =
+#-Q- g95      #-P- I4R4  F_P = -i4
+#-Q- g95      #-P- I4R8  F_P = -i4 -r8
+#-Q- g95      #-P- I8R8  F_P = -i8 -r8
+#-Q- g95      w_w = -O5 -funroll-all-loops $(F_D) $(F_P) -I$(MODDIR)
+#-Q- g95      F_O = $(w_w) -fmod=$(MODDIR) -fno-second-underscore
+#-Q- g95      F_L = g95
+#-Q- g95      M_M = 0
+#-Q- g95      L_X = 0
+#-Q- g95      L_O =
+#-Q- g95      A_C = ar -r
+#-Q- g95      A_G = ar -x
+#-Q- g95      C_C = cc -c
+#-Q- g95      C_O =
+#-Q- g95      C_L = cc
+#-Q- g95      #-
+#-Q- g95      NCDF_INC = /usr/local/include
+#-Q- g95      NCDF_LIB = -L/usr/local/lib -lnetcdf
+#-Q- g95      #-
+#-Q- gfortran  #- Global definitions for gfortran, generic system
+#-Q- gfortran  M_K = make
+#-Q- gfortran  P_C = cpp
+#-Q- gfortran  P_O = -fpreprocessed -P -C -traditional $(P_P)
+#-Q- gfortran  F_C = gfortran -c
+#-Q- gfortran  #-D- MD    F_D = -g -Wall -fbounds-check -pedantic -finit-real=nan
+#-Q- gfortran  #-D- MN    F_D =
+#-Q- gfortran  #-P- I4R4  F_P =
+#-Q- gfortran  #-P- I4R8  F_P = -fdefault-real-8
+#-Q- gfortran  #-P- I8R8  F_P = -fdefault-integer-8 -fdefault-real-8
+#-Q- gfortran  w_w = -O3 -funroll-all-loops $(F_D) $(F_P) -I$(MODDIR)
+#-Q- gfortran  F_O = $(w_w) -J$(MODDIR)
+#-Q- gfortran  F_L = gfortran
+#-Q- gfortran  M_M = 0
+#-Q- gfortran  L_X = 0
+#-Q- gfortran  L_O =
+#-Q- gfortran  A_C = ar -rs
+#-Q- gfortran  A_G = ar -x
+#-Q- gfortran  C_C = cc -c
+#-Q- gfortran  C_O =
+#-Q- gfortran  C_L = cc
+#-Q- gfortran  #-
+#-Q- gfortran  NCDF_INC = /usr/local/include
+#-Q- gfortran  NCDF_LIB = -L/usr/local/lib -lnetcdf
+#-Q- gfortran  #-
+#-Q- idris_tx7 #- Global definitions for NEC TX7 front-end (Brodie) at Idris, gfortran
+#-Q- idris_tx7 M_K = gmake
+#-Q- idris_tx7 P_C = cpp
+#-Q- idris_tx7 P_O = -P -C $(P_P)
+#-Q- idris_tx7 F_C = gfortran -c
+#-Q- idris_tx7 #-D- MD    F_D = -g
+#-Q- idris_tx7 #-D- MN    F_D =
+#-Q- idris_tx7 #-P- I4R4  F_P =
+#-Q- idris_tx7 #-P- I4R8  F_P = -fdefault-real-8
+#-Q- idris_tx7 #-P- I8R8  F_P = -fdefault-integer-8 -fdefault-real-8
+#-Q- idris_tx7 F_O = -O $(F_D) $(F_P) -I$(MODDIR) -J$(MODDIR)
+#-Q- idris_tx7 F_L = gfortran
+#-Q- idris_tx7 M_M = 0
+#-Q- idris_tx7 L_X = 0
+#-Q- idris_tx7 L_O =
+#-Q- idris_tx7 A_C = ar -r
+#-Q- idris_tx7 A_G = ar -x
+#-Q- idris_tx7 C_C = gcc -c
+#-Q- idris_tx7 C_O =
+#-Q- idris_tx7 C_L = gcc
+#-Q- idris_tx7 #-
+#-Q- idris_tx7 NCDF_INC = /TXlocal/pub/netcdf/netcdf-3.6.2/include
+#-Q- idris_tx7 NCDF_LIB = -L/TXlocal/pub/netcdf/netcdf-3.6.2/lib -lnetcdf
+#-Q- idris_tx7 #-
+#-Q- lf95      #-
+#-Q- lf95      #- Global definitions for Lahai Fujitsu lf95 compiler
+#-Q- lf95      M_K = gmake
+#-Q- lf95      P_C = cpp
+#-Q- lf95      P_O = -P -C -traditional $(P_P) -DNC_DOUBLE
+#-Q- lf95      F_C = lf95 -c
+#-Q- lf95      #-D- MD    F_D = -g --chkglobal -v95d -D_ISNAN_ -D_MATHELP_ 
+#-Q- lf95      #-D- MN    F_D = -O                   -D_ISNAN_ -D_MATHELP_
+#-Q- lf95      #-P- I4R4  F_P =
+#-Q- lf95      #-P- I4R8  F_P = -CcdRR8 -DNC_DOUBLE
+#-Q- lf95      #-P- I8R8  F_P = -Ccdll8 -CcdRR8 -DNC_DOUBLE
+#-Q- lf95      w_w = -Cpp --lst $(F_D) $(F_P) -I $(MODDIR)
+#-Q- lf95      F_O = $(w_w) --mod $(MODDIR) 
+#-Q- lf95      F_L = lf95 $(w_w) 
+#-Q- lf95      M_M = 0
+#-Q- lf95      L_X = 0
+#-Q- lf95      #-D- MD    L_O =
+#-Q- lf95      #-D- MN    L_O = 
+#-Q- lf95      A_C = ar -r
+#-Q- lf95      A_G = ar -x
+#-Q- lf95      C_C = cc -c
+#-Q- lf95      #-D- MD    C_O = -g
+#-Q- lf95      #-D- MN    C_O = -O3
+#-Q- lf95      C_L = cc
+#-Q- lf95      #-
+#-Q- lf95      NCDF_INC = /home/orchidee01/mmancip/lf9562-g/include
+#-Q- lf95      NCDF_LIB = -L/home/orchidee01/mmancip/lf9562-g/lib -lnetcdf 
+#-Q- lf95      #-
+#-Q- linux    #- Global definitions for Linux, pgf90
+#-Q- linux    M_K = make
+#-Q- linux    P_C = /lib/cpp
+#-Q- linux    P_O = -P -C -traditional $(P_P)
+#-Q- linux    F_C = pgf90 -c
+#-Q- linux    #-D- MD    F_D =
+#-Q- linux    #-D- MN    F_D =
+#-Q- linux    #-P- I4R4  F_P = -i4
+#-Q- linux    #-P- I4R8  F_P = -i4 -r8
+#-Q- linux    #-P- I8R8  F_P = -i8 -r8
+#-Q- linux    F_O = $(F_D) $(F_P) -Mfree -module $(MODDIR)
+#-Q- linux    F_L = pgf90
+#-Q- linux    M_M = 0
+#-Q- linux    L_X = 0
+#-Q- linux    L_O = -Wl,-Bstatic -Mbounds
+#-Q- linux    A_C = ar -r
+#-Q- linux    A_G = ar -x
+#-Q- linux    C_C = gcc -c
+#-Q- linux    C_O = -Wall
+#-Q- linux    C_L = gcc
+#-Q- linux    #-
+#-Q- linux    NCDF_INC = /distrib/local/netcdf/pgf/include/
+#-Q- linux    NCDF_LIB = -L/distrib/local/netcdf/pgf/lib/ -lnetcdf
+#-Q- linux    #-
+#-Q- lxiv7    #- Global definitions for Linux, ifc
+#-Q- lxiv7    M_K = gmake
+#-Q- lxiv7    P_C = cpp
+#-Q- lxiv7    P_O = -P -C $(P_P)
+#-Q- lxiv7    F_C = ifc -c
+#-Q- lxiv7    #-D- MD    F_D = -g
+#-Q- lxiv7    #-D- MN    F_D =
+#-Q- lxiv7    #-P- I4R4  F_P = -i4
+#-Q- lxiv7    #-P- I4R8  F_P = -i4 -r8
+#-Q- lxiv7    #-P- I8R8  F_P = -i8 -r8
+#-Q- lxiv7    F_O = -O $(F_D) $(F_P) -I$(MODDIR) -module $(MODDIR)
+#-Q- lxiv7    F_L = ifc
+#-Q- lxiv7    M_M = 0
+#-Q- lxiv7    L_X = 0
+#-Q- lxiv7    L_O = -Vaxlib
+#-Q- lxiv7    A_C = ar -r
+#-Q- lxiv7    A_G = ar -x
+#-Q- lxiv7    C_C = cc -c
+#-Q- lxiv7    C_O =
+#-Q- lxiv7    C_L = cc
+#-Q- lxiv7    #-
+#-Q- lxiv7    NCDF_INC = /usr/local/include
+#-Q- lxiv7    NCDF_LIB = -L/usr/local/lib -lnetcdf
+#-Q- lxiv7    #-
+#-Q- lxiv8    #- Global definitions for Intel compiler (ifort) at LSCE
+#-Q- lxiv8    M_K = gmake
+#-Q- lxiv8    P_C = cpp
+#-Q- lxiv8    P_O = -P -C $(P_P)
+#-Q- lxiv8    F_C = ifort -c -cpp
+#-Q- lxiv8    #-D- MD    F_D = -g
+#-Q- lxiv8    #-D- MN    F_D =
+#-Q- lxiv8    #-P- I4R4  F_P = -i4
+#-Q- lxiv8    #-P- I4R8  F_P = -i4 -r8
+#-Q- lxiv8    #-P- I8R8  F_P = -i8 -r8
+#-Q- lxiv8    F_O = -O $(F_D) $(F_P) -I$(MODDIR) -module $(MODDIR)
+#-Q- lxiv8    F_L = ifort
+#-Q- lxiv8    M_M = 0
+#-Q- lxiv8    L_X = 0
+#-Q- lxiv8    L_O = -Vaxlib
+#-Q- lxiv8    A_C = ar -r
+#-Q- lxiv8    A_G = ar -x
+#-Q- lxiv8    C_C = cc -c
+#-Q- lxiv8    C_O =
+#-Q- lxiv8    C_L = cc
+#-Q- lxiv8    #-
+#-Q- lxiv8    NCDF_INC = /usr/local/include
+#-Q- lxiv8    NCDF_LIB = -L/usr/local/lib -lnetcdff -lnetcdf
+#-Q- lxiv8    #-
+#-Q- osf1     #- Obsolete definitions for DEC OSF1
+#-Q- osf1     M_K = gmake
+#-Q- osf1     P_C = cpp
+#-Q- osf1     P_O = -P -C $(P_P)
+#-Q- osf1     F_C = f90 -c
+#-Q- osf1     #-D- MD    F_D = -g
+#-Q- osf1     #-D- MN    F_D =
+#-Q- osf1     #-P- I4R4  F_P =
+#-Q- osf1     #-P- I4R8  F_P = -r8
+#-Q- osf1     #-P- I8R8  F_P = -i8 -r8
+#-Q- osf1     F_O = -O $(F_D) $(F_P) -I$(MODDIR) -module $(MODDIR)
+#-Q- osf1     F_L = f90
+#-Q- osf1     M_M = 0
+#-Q- osf1     L_X = 0
+#-Q- osf1     L_O =
+#-Q- osf1     A_C = ar -r
+#-Q- osf1     A_G = ar -x
+#-Q- osf1     C_C = cc -c
+#-Q- osf1     C_O =
+#-Q- osf1     C_L = cc
+#-Q- osf1     #-
+#-Q- osf1     NCDF_INC = /usr/local/include
+#-Q- osf1     NCDF_LIB = -L/usr/local/lib -lnetcdf
+#-Q- osf1     #-
+#-Q- osxxlf   #- Global definitions for Mac OS X and IBM xlf compiler
+#-Q- osxxlf   M_K = make
+#-Q- osxxlf   P_C = /usr/bin/cpp
+#-Q- osxxlf   P_O = -P -C $(P_P:-WF,-D%=-D%)
+#-Q- osxxlf   F_C = xlf90 -c
+#-Q- osxxlf   #-D- MD    F_D = -g -C
+#-Q- osxxlf   #-D- MN    F_D =
+#-Q- osxxlf   #-P- I4R4  F_P = -qintsize=4 -qrealsize=4
+#-Q- osxxlf   #-P- I4R8  F_P = -qintsize=4 -qrealsize=8
+#-Q- osxxlf   #-P- I8R8  F_P = -qintsize=8 -qrealsize=8
+#-Q- osxxlf   w_w = $(F_P) -O2 $(F_D) -qsuffix=f=f90
+#-Q- osxxlf   F_O = $(w_w) -I$(MODDIR) -qmoddir=$(MODDIR)
+#-Q- osxxlf   F_L = xlf90
+#-Q- osxxlf   M_M = 0
+#-Q- osxxlf   L_X = 0
+#-Q- osxxlf   L_O = $(F_P) -O2
+#-Q- osxxlf   A_C = ar -rs
+#-Q- osxxlf   A_G = ar -x
+#-Q- osxxlf   C_C = cc -c
+#-Q- osxxlf   C_O =
+#-Q- osxxlf   C_L = cc
+#-Q- osxxlf   #-
+#-Q- osxxlf   NCDF_INC = /usr/local/install/netcdf-3.6.0-p1/include
+#-Q- osxxlf   NCDF_LIB = -L/usr/local/install/netcdf-3.6.0-p1/lib -lnetcdf
+#-Q- osxxlf   #-
+#-Q- platine  #- Global definitions for Bull (Itanium) at CCRT
+#-Q- platine  LIB_MPI = MPI1
+#-Q- platine  LIB_MPI_BIS = MPI1
+#-Q- platine  PRISM_ARCH = IA64
+#-Q- platine  PRISM_NAME = platine
+#-Q- platine  FCM_ARCH = IA64_PLATINE
+#-Q- platine  M_K = gmake
+#-Q- platine  P_C = cpp
+#-Q- platine  P_O = -P -C $(P_P)
+#-Q- platine  F_C = mpif90 -c -cpp
+#-Q- platine  #-D- MD    F_D = -g
+#-Q- platine  #-D- MN    F_D =
+#-Q- platine  #-P- I4R4  F_P = -i4
+#-Q- platine  #-P- I4R8  F_P = -i4 -r8
+#-Q- platine  #-P- I8R8  F_P = -i8 -r8
+#-Q- platine  F_O = -DCPP_PARA -O3 $(F_D) $(F_P) -I$(MODDIR) -module $(MODDIR)
+#-Q- platine  F_L = mpif90
+#-Q- platine  M_M = 0
+#-Q- platine  L_X = 0
+#-Q- platine  L_O =
+#-Q- platine  A_C = ar -r
+#-Q- platine  A_G = ar -x
+#-Q- platine  C_C = cc -c
+#-Q- platine  C_O =
+#-Q- platine  C_L = cc
+#-Q- platine  #-
+#-Q- platine  NCDF_INC = /usr/include
+#-Q- platine  NCDF_LIB = -L/usr/lib -lnetcdff -lnetcdf
+#-Q- platine  #-
+#-Q- sgi6     #- Global definitions for IRIX64 (sgi6)
+#-Q- sgi6     M_K = gmake
+#-Q- sgi6     P_C = cpp
+#-Q- sgi6     P_O = -P -C $(P_P)
+#-Q- sgi6     F_C = f90 -c
+#-Q- sgi6     #-D- MD    F_D =
+#-Q- sgi6     #-D- MN    F_D =
+#-Q- sgi6     #-P- I4R4  F_P = -i4 -r4
+#-Q- sgi6     #-P- I4R8  F_P = -i4 -r8
+#-Q- sgi6     #-P- I8R8  F_P = -i8 -r8
+#-Q- sgi6     F_O = $(F_D) $(F_P) -I $(MODDIR)
+#-Q- sgi6     F_L = f90
+#-Q- sgi6     M_M = 0
+#-Q- sgi6     L_X = 0
+#-Q- sgi6     L_O =
+#-Q- sgi6     A_C = ar -r
+#-Q- sgi6     A_G = ar -x
+#-Q- sgi6     C_C = cc -c
+#-Q- sgi6     C_O =
+#-Q- sgi6     C_L = cc
+#-Q- sgi6     #-
+#-Q- sgi6     NCDF_INC = /usr/local/pub/include
+#-Q- sgi6     NCDF_LIB = -L/usr/local/pub/lib64 -lnetcdf
+#-Q- sgi6     #-
+#-Q- solaris  #- Global definitions for SOLARIS
+#-Q- solaris  M_K = make
+#-Q- solaris  P_C = cpp
+#-Q- solaris  P_O = -P -C $(P_P)
+#-Q- solaris  F_C = f90 -c
+#-Q- solaris  #-D- MD    F_D =
+#-Q- solaris  #-D- MN    F_D =
+#-Q- solaris  #-P- I4R4  F_P =
+#-Q- solaris  #-P- I4R8  F_P = -r8const
+#-Q- solaris  #-P- I8R8  F_P = -i8const -r8const
+#-Q- solaris  F_O = $(F_D) $(F_P) -M$(MODDIR) -fast
+#-Q- solaris  F_L = f90
+#-Q- solaris  M_M = 1
+#-Q- solaris  L_X = 0
+#-Q- solaris  L_O =
+#-Q- solaris  A_C = ar -r
+#-Q- solaris  A_G = ar -x
+#-Q- solaris  C_C = cc -c
+#-Q- solaris  C_O =
+#-Q- solaris  C_L = cc
+#-Q- solaris  #-
+#-Q- solaris  NCDF_INC = /distrib/local/include
+#-Q- solaris  NCDF_LIB = -L/distrib/local/lib -lnetcdf
+#-Q- solaris  #-
+#-Q- sx6nec   #- Global definitions for NEC SX8 at CCRT (alias)
+#-Q- sx6nec   LIB_MPI = MPI1
+#-Q- sx6nec   LIB_MPI_BIS = MPI1
+#-Q- sx6nec   PRISM_ARCH = SX
+#-Q- sx6nec   PRISM_NAME = mercure
+#-Q- sx6nec   FCM_ARCH = SX8_MERCURE
+#-Q- sx6nec   M_K = sxgmake
+#-Q- sx6nec   P_C = cpp
+#-Q- sx6nec   P_O = -P -C $(P_P)
+#-Q- sx6nec   F_C = sxmpif90 -c
+#-Q- sx6nec   #-D- MD    F_D =
+#-Q- sx6nec   #-D- MN    F_D =
+#-Q- sx6nec   #-P- I4R4  F_P = -dW
+#-Q- sx6nec   #-P- I4R8  F_P = -dW -Wf\"-A idbl4\"
+#-Q- sx6nec   #-P- I8R8  F_P = -ew
+#-Q- sx6nec   F_O = $(F_D) $(F_P) -Ep -DCPP_PARA -size_t64 -Wf,"-pvctl loopcnt=999999" -I $(MODDIR)
+#-Q- sx6nec   F_L = sxmpif90
+#-Q- sx6nec   M_M = 1
+#-Q- sx6nec   L_X = 0
+#-Q- sx6nec   L_O = -size_t64 $(F_P)
+#-Q- sx6nec   A_C = sxar -rv
+#-Q- sx6nec   A_G = sxar -x
+#-Q- sx6nec   A_X = sxar -rv
+#-Q- sx6nec   C_C = sxcc -size_t64 -c
+#-Q- sx6nec   C_O =
+#-Q- sx6nec   C_L = sxcc -size_t64
+#-Q- sx6nec   FC_C = gcc -c
+#-Q- sx6nec   FC_O =
+#-Q- sx6nec   FC_L = gcc
+#-Q- sx6nec   #-
+#-Q- sx6nec   NCDF_INC = /usr/local/SX8/soft/netcdf/include
+#-Q- sx6nec   NCDF_LIB = -L/usr/local/SX8/soft/netcdf/lib -lnetcdf
+#-Q- sx6nec   #-
+#-Q- sx8brodie   #- Global definitions for NEC SX8 at Idris
+#-Q- sx8brodie   LIB_MPI = MPI1
+#-Q- sx8brodie   LIB_MPI_BIS = MPI1
+#-Q- sx8brodie   PRISM_ARCH = SX
+#-Q- sx8brodie   PRISM_NAME = brodie
+#-Q- sx8brodie   FCM_ARCH = SX8_BRODIE
+#-Q- sx8brodie   M_K = sxgmake
+#-Q- sx8brodie   P_C = sxcpp
+#-Q- sx8brodie   P_O = -P -C $(P_P)
+#-Q- sx8brodie   F_C = sxmpif90 -c
+#-Q- sx8brodie   #-D- MD    F_D =
+#-Q- sx8brodie   #-D- MN    F_D =
+#-Q- sx8brodie   #-P- I4R4  F_P = -dW
+#-Q- sx8brodie   #-P- I4R8  F_P = -dW -Wf\"-A idbl4\"
+#-Q- sx8brodie   #-P- I8R8  F_P = -ew
+#-Q- sx8brodie   F_O = $(F_D) $(F_P) -Ep -DCPP_PARA -I $(MODDIR)
+#-Q- sx8brodie   F_L = sxmpif90
+#-Q- sx8brodie   M_M = 1
+#-Q- sx8brodie   L_X = 0
+#-Q- sx8brodie   L_O = $(F_P)
+#-Q- sx8brodie   A_C = sxar -rv
+#-Q- sx8brodie   A_G = sxar -x
+#-Q- sx8brodie   A_X = sxar -rv
+#-Q- sx8brodie   C_C = sxcc -c
+#-Q- sx8brodie   C_O =
+#-Q- sx8brodie   C_L = sxcc
+#-Q- sx8brodie   FC_C = gcc -c
+#-Q- sx8brodie   FC_O =
+#-Q- sx8brodie   FC_L = gcc
+#-Q- sx8brodie   #-
+#-Q- sx8brodie   NCDF_INC = /SXlocal/pub/netCDF/netCDF-3.6.1/include
+#-Q- sx8brodie   NCDF_LIB = -L/SXlocal/pub/netCDF/netCDF-3.6.1/lib -lnetcdf
+#-Q- sx8brodie   #-
+#-Q- sx8mercure   #- Global definitions for NEC SX8 at CCRT
+#-Q- sx8mercure   LIB_MPI = MPI1
+#-Q- sx8mercure   LIB_MPI_BIS = MPI1
+#-Q- sx8mercure   PRISM_ARCH = SX
+#-Q- sx8mercure   PRISM_NAME = mercure
+#-Q- sx8mercure   FCM_ARCH = SX8_MERCURE
+#-Q- sx8mercure   M_K = sxgmake
+#-Q- sx8mercure   P_C = cpp
+#-Q- sx8mercure   P_O = -P -C $(P_P)
+#-Q- sx8mercure   F_C = sxmpif90 -c
+#-Q- sx8mercure   #-D- MD    F_D =
+#-Q- sx8mercure   #-D- MN    F_D =
+#-Q- sx8mercure   #-P- I4R4  F_P = -dW
+#-Q- sx8mercure   #-P- I4R8  F_P = -dW -Wf\"-A idbl4\"
+#-Q- sx8mercure   #-P- I8R8  F_P = -ew
+#-Q- sx8mercure   F_O = $(F_D) $(F_P) -Ep -DCPP_PARA -size_t64 -Wf,"-pvctl loopcnt=999999" -I $(MODDIR)
+#-Q- sx8mercure   F_L = sxmpif90
+#-Q- sx8mercure   M_M = 1
+#-Q- sx8mercure   L_X = 0
+#-Q- sx8mercure   L_O = -size_t64 $(F_P)
+#-Q- sx8mercure   A_C = sxar -rv
+#-Q- sx8mercure   A_G = sxar -x
+#-Q- sx8mercure   A_X = sxar -rv
+#-Q- sx8mercure   C_C = sxcc -size_t64 -c
+#-Q- sx8mercure   C_O =
+#-Q- sx8mercure   C_L = sxcc -size_t64
+#-Q- sx8mercure   FC_C = gcc -c
+#-Q- sx8mercure   FC_O =
+#-Q- sx8mercure   FC_L = gcc
+#-Q- sx8mercure   #-
+#-Q- sx8mercure   NETCDF_SX_INCLUDEDIR ?= /usr/local/SX8/soft/netcdf/include
+#-Q- sx8mercure   NETCDF_SX_LIBDIR ?= /usr/local/SX8/soft/netcdf/lib
+#-Q- sx8mercure   NCDF_INC = ${NETCDF_SX_INCLUDEDIR}
+#-Q- sx8mercure   NCDF_LIB = -L${NETCDF_SX_LIBDIR} -lnetcdf
+#-Q- sx8mercure   #-
+#-Q- sx9mercure   #- Global definitions for NEC SX9 at CCRT
+#-Q- sx9mercure   LIB_MPI = MPI1
+#-Q- sx9mercure   LIB_MPI_BIS = MPI1
+#-Q- sx9mercure   PRISM_ARCH = SX
+#-Q- sx9mercure   PRISM_NAME = mercure
+#-Q- sx9mercure   FCM_ARCH = SX9_MERCURE
+#-Q- sx9mercure   M_K = sxgmake
+#-Q- sx9mercure   P_C = cpp
+#-Q- sx9mercure   P_O = -P -C $(P_P)
+#-Q- sx9mercure   F_C = sxmpif90 -c
+#-Q- sx9mercure   #-D- MD    F_D =
+#-Q- sx9mercure   #-D- MN    F_D =
+#-Q- sx9mercure   #-P- I4R4  F_P = -dW
+#-Q- sx9mercure   #-P- I4R8  F_P = -dW -Wf\"-A idbl4\"
+#-Q- sx9mercure   #-P- I8R8  F_P = -ew
+#-Q- sx9mercure   F_O = $(F_D) $(F_P) -Ep -DCPP_PARA -size_t64 -Wf,"-pvctl loopcnt=999999" -I $(MODDIR)
+#-Q- sx9mercure   F_L = sxmpif90
+#-Q- sx9mercure   M_M = 1
+#-Q- sx9mercure   L_X = 0
+#-Q- sx9mercure   L_O = -size_t64 $(F_P)
+#-Q- sx9mercure   A_C = sxar -rv
+#-Q- sx9mercure   A_G = sxar -x
+#-Q- sx9mercure   A_X = sxar -rv
+#-Q- sx9mercure   C_C = sxcc -size_t64 -c
+#-Q- sx9mercure   C_O =
+#-Q- sx9mercure   C_L = sxcc -size_t64
+#-Q- sx9mercure   FC_C = gcc -c
+#-Q- sx9mercure   FC_O =
+#-Q- sx9mercure   FC_L = gcc
+#-Q- sx9mercure   #-
+#-Q- sx9mercure   NETCDF_SX_INCLUDEDIR ?= /ccc/applications/sx9/netcdf-3.6.1/include
+#-Q- sx9mercure   NETCDF_SX_LIBDIR ?= /ccc/applications/sx9/netcdf-3.6.1/lib
+#-Q- sx9mercure   NCDF_INC = ${NETCDF_SX_INCLUDEDIR}
+#-Q- sx9mercure   NCDF_LIB = -L${NETCDF_SX_LIBDIR} -lnetcdf
+#-Q- sx9mercure   #-
+#-Q- sxdkrz   #- Global definitions for NEC SX8 at DKRZ
+#-Q- sxdkrz   LIB_MPI = MPI1
+#-Q- sxdkrz   LIB_MPI_BIS = MPI1
+#-Q- sxdkrz   PRISM_ARCH = SX
+#-Q- sxdkrz   PRISM_NAME = ds
+#-Q- sxdkrz   M_K = sxgmake
+#-Q- sxdkrz   P_C = cpp
+#-Q- sxdkrz   P_O = -P -C $(P_P)
+#-Q- sxdkrz   F_C = sxmpif90 -c
+#-Q- sxdkrz   #-D- MD    F_D =
+#-Q- sxdkrz   #-D- MN    F_D =
+#-Q- sxdkrz   #-P- I4R4  F_P = -dw
+#-Q- sxdkrz   #-P- I4R8  F_P = -dw -Wf\"-A idbl4\"
+#-Q- sxdkrz   #-P- I8R8  F_P = -ew
+#-Q- sxdkrz   F_O = $(F_D) $(F_P) -I $(MODDIR)
+#-Q- sxdkrz   F_L = sxmpif90
+#-Q- sxdkrz   M_M = 1
+#-Q- sxdkrz   L_X = 0
+#-Q- sxdkrz   L_O = $(F_P)
+#-Q- sxdkrz   A_C = ar -rv
+#-Q- sxdkrz   A_G = ar -x
+#-Q- sxdkrz   A_X = sxar -rv
+#-Q- sxdkrz   C_C = sxcc -c
+#-Q- sxdkrz   C_O =
+#-Q- sxdkrz   C_L = sxcc
+#-Q- sxdkrz   FC_C = cc -c
+#-Q- sxdkrz   FC_O =
+#-Q- sxdkrz   FC_L = cc
+#-Q- sxdkrz   #-
+#-Q- sxdkrz   NCDF_INC = /pool/SX-6/netcdf/netcdf-3.5.0/include
+#-Q- sxdkrz   NCDF_LIB = -L/pool/SX-6/netcdf/netcdf-3.5.0/lib -lnetcdf_A_idbl4
+#-Q- sxdkrz   #-
+#-Q- t3e      #- Obsolete definitions for T3E
+#-Q- t3e      M_K = gmake
+#-Q- t3e      P_C = cpp
+#-Q- t3e      P_O = -P -C $(P_P)
+#-Q- t3e      F_C = f90 -c
+#-Q- t3e      #-D- MD    F_D =
+#-Q- t3e      #-D- MN    F_D =
+#-Q- t3e      #-P- I4R4  F_P =
+#-Q- t3e      #-P- I4R8  F_P =
+#-Q- t3e      #-P- I8R8  F_P =
+#-Q- t3e      w_w = $(F_D) $(F_P) -rm -O2 -Ounroll2 -Osplit2 -dp
+#-Q- t3e      F_O = $(w_w) -p $(MODEL_LIB)
+#-Q- t3e      F_L = f90
+#-Q- t3e      M_M = 0
+#-Q- t3e      L_X = 0
+#-Q- t3e      L_O = -X 4
+#-Q- t3e      A_C = ar -r
+#-Q- t3e      A_G = ar -x
+#-Q- t3e      C_C = cc -c
+#-Q- t3e      C_O = -Wall
+#-Q- t3e      C_L = cc
+#-Q- t3e      #-
+#-Q- t3e      NCDF_INC = /usr/local/pub/include
+#-Q- t3e      NCDF_LIB = -L/usr/local/pub/lib -lnetcdf
+#-Q- t3e      #-
+#-Q- titane  #- Global definitions for Bull (Xeon) at CCRT
+#-Q- titane  LIB_MPI = MPI1
+#-Q- titane  LIB_MPI_BIS = MPI1
+#-Q- titane  PRISM_ARCH = X64
+#-Q- titane  PRISM_NAME = titane
+#-Q- titane  FCM_ARCH = X64_TITANE
+#-Q- titane  M_K = gmake
+#-Q- titane  P_C = cpp
+#-Q- titane  P_O = -P -C $(P_P)
+#-Q- titane  F_C = mpif90 -c -cpp
+#-Q- titane  #-D- MD    F_D = -g
+#-Q- titane  #-D- MN    F_D =
+#-Q- titane  #-P- I4R4  F_P = -i4
+#-Q- titane  #-P- I4R8  F_P = -i4 -r8
+#-Q- titane  #-P- I8R8  F_P = -i8 -r8
+#-Q- titane  F_O = -DCPP_PARA -O3 $(F_D) $(F_P) -I$(MODDIR) -module $(MODDIR)
+#-Q- titane  F_L = mpif90
+#-Q- titane  M_M = 0
+#-Q- titane  L_X = 0
+#-Q- titane  L_O =
+#-Q- titane  A_C = ar -r
+#-Q- titane  A_G = ar -x
+#-Q- titane  C_C = cc -c
+#-Q- titane  C_O =
+#-Q- titane  C_L = cc
+#-Q- titane  #-
+#-Q- titane  NCDF_INC = $(NETCDF_INC_DIR)
+#-Q- titane  NCDF_LIB = -L$(NETCDF_LIB_DIR) -lnetcdff -lnetcdf
+#-Q- titane  #-
+#-Q- tx7  #- Global definitions for NEC TX7 front-end (Mercure) at CCRT, ifort
+#-Q- tx7  M_K = gmake
+#-Q- tx7  P_C = cpp
+#-Q- tx7  P_O = -P -C $(P_P)
+#-Q- tx7  F_C = ifort -c
+#-Q- tx7  #-D- MD    F_D = -g
+#-Q- tx7  #-D- MN    F_D =
+#-Q- tx7  #-P- I4R4  F_P = -i4
+#-Q- tx7  #-P- I4R8  F_P = -i4 -r8
+#-Q- tx7  #-P- I8R8  F_P = -i8 -r8
+#-Q- tx7  F_O = -O $(F_D) $(F_P) -I$(MODDIR) -module $(MODDIR)
+#-Q- tx7  F_L = ifort
+#-Q- tx7  M_M = 0
+#-Q- tx7  L_X = 0
+#-Q- tx7  L_O = -Vaxlib
+#-Q- tx7  A_C = ar -r
+#-Q- tx7  A_G = ar -x
+#-Q- tx7  C_C = cc -c
+#-Q- tx7  C_O =
+#-Q- tx7  C_L = cc
+#-Q- tx7  #-
+#-Q- tx7  NCDF_INC = /usr/local/include
+#-Q- tx7  NCDF_LIB = -L/usr/local/lib -lnetcdf
+#-Q- tx7  #-
+#-Q- ulam   #- Global definitions for ulam at IDRIS
+#-Q- ulam   M_K = gmake
+#-Q- ulam   P_C = cpp
+#-Q- ulam   P_O = -P -C $(P_P)
+#-Q- ulam   F_C = ifort -c -cpp
+#-Q- ulam   #-D- MD    F_D = -g
+#-Q- ulam   #-D- MN    F_D =
+#-Q- ulam   #-P- I4R4  F_P = -i4
+#-Q- ulam   #-P- I4R8  F_P = -i4 -r8
+#-Q- ulam   #-P- I8R8  F_P = -i8 -r8
+#-Q- ulam   F_O = -O $(F_D) $(F_P) -I$(MODDIR) -module $(MODDIR)
+#-Q- ulam   F_L = ifort
+#-Q- ulam   M_M = 0
+#-Q- ulam   L_X = 0
+#-Q- ulam   L_O = -Vaxlib
+#-Q- ulam   A_C = ar -r
+#-Q- ulam   A_G = ar -x
+#-Q- ulam   C_C = cc -c
+#-Q- ulam   C_O =
+#-Q- ulam   C_L = cc
+#-Q- ulam   #-
+#-Q- ulam   NCDF_INC = /usr/local/pub/NetCDF/3.6.3/include
+#-Q- ulam   NCDF_LIB = -L/usr/local/pub/NetCDF/3.6.3/lib -lnetcdf
+#-Q- ulam   #-
+#-Q- unix   #- Skeleton definitions for UNIX
+#-Q- unix   M_K = make
+#-Q- unix   P_C = cpp
+#-Q- unix   P_O = -P -C $(P_P)
+#-Q- unix   F_C = f90 -c
+#-Q- unix   #-D- MD    F_D =
+#-Q- unix   #-D- MN    F_D =
+#-Q- unix   #-P- I4R4  F_P =
+#-Q- unix   #-P- I4R8  F_P =
+#-Q- unix   #-P- I8R8  F_P =
+#-Q- unix   F_O = $(F_D) $(F_P) -M$(MODDIR)
+#-Q- unix   F_L = f90
+#-Q- unix   M_M = 0
+#-Q- unix   L_X = 0
+#-Q- unix   L_O =
+#-Q- unix   A_C = ar -r
+#-Q- unix   A_G = ar -x
+#-Q- unix   C_C = cc -c
+#-Q- unix   C_O =
+#-Q- unix   C_L = cc
+#-Q- unix   #-
+#-Q- unix   NCDF_INC = /distrib/local/include
+#-Q- unix   NCDF_LIB = -L/distrib/local/lib -lnetcdf
+#-Q- unix   #-
+#-Q- x86_64  #- Global definitions for new mercure front-end at CCRT (05/2010)
+#-Q- x86_64  M_K = gmake
+#-Q- x86_64  P_C = cpp
+#-Q- x86_64  P_O = -P -C $(P_P)
+#-Q- x86_64  F_C = ifort -c
+#-Q- x86_64  #-D- MD    F_D = -g
+#-Q- x86_64  #-D- MN    F_D =
+#-Q- x86_64  #-P- I4R4  F_P = -i4
+#-Q- x86_64  #-P- I4R8  F_P = -i4 -r8
+#-Q- x86_64  #-P- I8R8  F_P = -i8 -r8
+#-Q- x86_64  F_O = -O $(F_D) $(F_P) -I$(MODDIR) -module $(MODDIR)
+#-Q- x86_64  F_L = ifort
+#-Q- x86_64  M_M = 0
+#-Q- x86_64  L_X = 0
+#-Q- x86_64  L_O = -Vaxlib
+#-Q- x86_64  A_C = ar -r
+#-Q- x86_64  A_G = ar -x
+#-Q- x86_64  C_C = cc -c
+#-Q- x86_64  C_O =
+#-Q- x86_64  C_L = cc
+#-Q- x86_64  #-
+#-Q- x86_64  NCDF_INC = /applications/netcdf-3.6.3/include
+#-Q- x86_64  NCDF_LIB = -L/applications/netcdf-3.6.3/lib -lnetcdff -lnetcdf
+#-Q- x86_64  #-
+RM      = rm -f
+STRIP   = strip
+SIZE    = size
+
Index: /modipsl/branches/newconfig/util/clr_make
===================================================================
--- /modipsl/branches/newconfig/util/clr_make	(revision 1722)
+++ /modipsl/branches/newconfig/util/clr_make	(revision 1722)
@@ -0,0 +1,31 @@
+#!/bin/ksh
+# $Id$
+#---------------------------------------------------------------------
+#- Remove Makefiles and data according to an environment
+#---------------------------------------------------------------------
+d_n=$(dirname ${0});
+#-
+l_rep=$(find ${d_n}/.. -name AA_make -print)
+#-
+echo "";
+echo "Remove Makefiles and data according to an environment";
+echo "";
+#-
+for i in $l_rep
+do
+  j=${i%/AA_make}
+  echo "Remove in $j ...";
+  rm -f ${j}/Makefile
+done
+echo "Remove ${d_n}/.host_target";
+rm -f ${d_n}/.host_target
+#-
+l_prism=${d_n}'/../prism' 
+if [ -d ${l_prism} ]; then
+  echo "Remove COMP_oasis3 and COMP_libs" 
+  rm -f ${l_prism}/src/mod/oasis3/COMP_oasis3*
+  rm -f ${l_prism}/util/COMP_libs*
+fi
+echo "";
+#-
+exit 0;
Index: /modipsl/branches/newconfig/util/correct-cvs-diff.awk
===================================================================
--- /modipsl/branches/newconfig/util/correct-cvs-diff.awk	(revision 1722)
+++ /modipsl/branches/newconfig/util/correct-cvs-diff.awk	(revision 1722)
@@ -0,0 +1,125 @@
+#!/usr/bin/awk -f 
+
+# correct-cvs-diff.awk try to correct files PATH in diff lines inside wrong 
+# CVS diff files for use with patch.
+# CVS diff give header like :
+#
+# Index: src/myfile.f90
+# ===================================================================
+# RCS file: ...DIR/src/myfile.f90,v
+# retrieving revision 1.8
+# diff -U 2 -r1.8 myfile.f90
+# --- src/myfile.f90	28 Jan 2009 08:32:45 -0000	1.8
+# +++ src/myfile.f90	7 Oct 2010 16:04:00 -0000
+# 
+# But the diff line is wrong because the path for myfile is incomplete.
+# The patch will ask for the true path :
+# 
+# can't find file to patch at input line 23
+# Perhaps you should have used the -p or --strip option?
+# The text leading up to this was:
+# --------------------------
+# |Index: src/myfile.f90
+# |===================================================================
+# |RCS file: ...DIR/src/myfile.f90,v
+# |retrieving revision 1.8
+# |diff -r1.8 myfile.f90
+# --------------------------
+# File to patch:
+#
+# This script will correct the diff file by adding the minimal true PATH : 
+# diff -U 2 -r1.8 src/myfile.f90
+# 
+# command :
+# correct-cvs-diff.awk [-d] cvs-diff-file
+
+#**************************************************************
+# Author: Martial.Mancip
+# Contact: Martial.Mancip_ipsl.jussieu.fr
+# $Date: 
+# $Author: $
+# $Revision: $
+# IPSL (2006)
+#  This software is governed by the CeCILL licence see libIGCM/libIGCM_CeCILL.LIC
+# History:
+# Modification:
+#
+#**************************************************************
+
+#==========================
+function myprint(str) {
+  if (debug) {
+     print str
+  }
+}
+
+
+#==========================
+BEGIN {
+#  print "traitement de " ARGV[1]
+
+  nbarg=ARGC
+
+  if (ARGV[1] == "-d") {
+    debug=1
+    file=ARGV[2]
+    delete ARGV[1] 
+    nbarg--
+  } else {
+    debug=0
+    file=ARGV[1]
+  }
+
+  exit_value=0
+  if (nbarg != 2) {
+        print "Usage: correct-cvs-diff.awk [-d] cvs-diff-file"
+        exit_value=-1
+        exit
+  }
+    
+  index_found=0
+  counter=0
+  errcounter=0
+  errorfile[1]=""
+}
+
+#==========================
+{
+
+  myprint($0) 
+
+  if (index_found == 0 && match($0, "Index:.*")) {
+    index_found=1
+    counter=counter+1
+
+    nb=split($0,index_line, " ")
+    myprint("Index " counter " found with nb : " nb)
+    for (elt in index_line) {
+	myprint("index " elt "- elt  :" index_line[elt])
+    }
+    myprint("Index_path : " index_line[2])
+    print $0
+  }
+  else if (index_found == 1 && match($0, "diff .*")) {
+    myprint("diff found")
+    index_found=0
+
+    nb=split($0,diff_line, " ")
+    myprint("nb  :" nb)
+    for (elt in diff_line) {
+	myprint("diff " elt "- elt  :" diff_line[elt])
+    }
+    myprint("diff_path : " diff_line[nb])
+
+    diff_line[nb]=index_line[2]
+    i=1
+    while (i <= nb) {
+	printf("%s ",diff_line[i])
+	i=i+1
+    }
+    printf("\n")
+  }
+  else {
+    print $0
+  }
+}
Index: /modipsl/branches/newconfig/util/env_make
===================================================================
--- /modipsl/branches/newconfig/util/env_make	(revision 1722)
+++ /modipsl/branches/newconfig/util/env_make	(revision 1722)
@@ -0,0 +1,97 @@
+#!/bin/bash
+# $Id$
+#---------------------------------------------------------------------
+#- Loading an environment and optionally running Makefile
+#---------------------------------------------------------------------
+shopt -s extglob
+#-
+function env_make_Usage
+{
+echo -e "
+${b_n} Loads an environment and runs a Makefile
+
+Usage :
+  ${b_n} [-h] [-v] [-m] [target_for_Makefile]
+
+Options :
+  -h : help
+  -v : verbose mode
+  -m : dont'runs the Makefile
+
+Defaults :
+   runs the Makefile
+
+Example for run a Makefile with target t_1 :
+  ${b_n} t_1
+"
+}
+#-
+#  dirname  and  basename
+#-
+   d_n=${0%/*};  b_n=${0##*/};
+#-
+# Retrieving and validation of the options
+#-
+x_v='silencious'; x_m='run';
+while getopts :hvm V
+  do
+   case ${V} in
+    (h) env_make_Usage; exit 0;;
+    (v) x_v='verbose';;
+    (m) x_m='no_run';;
+   (\?) echo ${b_n}" : -"${OPTARG}" option : not supported" 1>&2;
+         exit 2;;
+   esac
+  done
+shift $(($OPTIND-1));
+#-
+# Retrieve the target
+#-
+[[ ${#} -gt 1 ]] && \
+  { echo 'Only one target can be specified' 1>&2; exit 3; }
+x_t="";
+[[ ${#} -eq 1 ]] && { x_t="${1}"; }
+#-
+# Test availability of the definition file
+#-
+tgt_f="${d_n}/.host_target"
+[[ ! -f "${tgt_f}" ]] && \
+ { echo -e "\\n${b_n} : file ${tgt_f} unreachable\\n"; exit 3; }
+#-
+# Extract the host name and update the Makefile name
+#-
+read tgt_n < ${tgt_f}
+[[ -z "${tgt_n}" ]] && \
+ { echo -e "\\n${b_n} : invalid host name\\n"; exit 3; }
+mkf_n='Makefile'
+#-
+# Verbose mode
+#-
+[ ${x_v} = 'verbose' ] && \
+ { echo -e "---";
+   echo -e "Host     : ${tgt_n}";
+   echo -e "Mode     : ${x_m}";
+   echo -e "Makefile : ${mkf_n}";
+   echo -e "Target   : ${x_t}";
+   echo -e "---"; }
+#-
+# Loads the environment
+#-
+case ${tgt_n} in
+ ("sx8mercure") \
+  module load SX8
+  module load netcdf_sx8
+  ;;
+ ("sx9mercure") \
+  module load SX9
+  module load netcdf_sx9
+  ;;
+ (*) \
+  ;;
+esac
+#-
+# [eventually] run the Makefile
+#-
+[[ "${x_m}" = 'run' ]] && { gmake -f ${mkf_n} ${x_t}; };
+#-
+exit 0;
Index: /modipsl/branches/newconfig/util/ins_job
===================================================================
--- /modipsl/branches/newconfig/util/ins_job	(revision 1722)
+++ /modipsl/branches/newconfig/util/ins_job	(revision 1722)
@@ -0,0 +1,213 @@
+#!/bin/ksh
+# $Id$
+#---------------------------------------------------------------------
+#- Installation of jobs according to an environment
+#---------------------------------------------------------------------
+function ins_job_Usage
+{
+print - "
+ins_job installs the jobs in the directories
+which contain a file config.card
+
+ins_job must be launched on the host
+on which the job will be submitted
+
+Usage :
+  ${b_n} [-h] [-v]
+
+Options :
+  -h   : help
+  -v   : verbose mode
+"
+}
+function ins_job_Warning
+{
+   print - "\n############### WARNING ###############";
+   print - "File ${n_f} already exists\nin directory ${j}";
+   print - "You must delete this file to update !";
+}
+#-
+#     dirname     and      basename
+#-
+d_n=$(dirname ${0}); b_n=$(basename ${0});
+#-
+# Retrieving and validation of the options
+#-
+x_v='silencious';
+while getopts :hv V
+  do
+   case $V in
+    (h)  ins_job_Usage; exit 0;;
+    (v)  x_v='verbose';;
+    (:)  echo ${b_n}" : -"${OPTARG}" option : missing value" 1>&2;
+         exit 2;;
+    (\?) echo ${b_n}" : -"${OPTARG}" option : not supported" 1>&2;
+         exit 2;;
+    esac
+  done
+shift $(($OPTIND-1));
+#-
+# Define working files
+#-
+F_MOD=$(cd ${d_n}'/..';/bin/pwd;)
+# [[ ${F_MOD##*/} != 'modipsl' ]] && \
+#  { print - "directory 'modipsl' unreachable"; exit 3; }
+W_W=${d_n}'/../libIGCM'
+[[ ! -d ${W_W} ]] && { print - "${W_W} unreachable"; exit 3; }
+libIGCM=$(cd ${W_W};/bin/pwd;)
+F_JOB=${libIGCM}'/AA_job';
+[[ ! -f ${F_JOB} ]] && { print - "${F_JOB} unreachable"; exit 3; }
+F_RCI=${libIGCM}'/run.card.init';
+[[ ! -f ${F_RCI} ]] && { print - "${F_RCI} unreachable"; exit 3; }
+#-
+# Host Name
+#-
+x_t=$(${d_n}/w_i_h) 2>/dev/null;
+{ [[ ${?} != 0 ]] && \
+   { print - "\nw_i_h or uname unreachable\n" 1>&2; exit 1; }; } || \
+  [[ ${x_t} = "Unknown" ]] && \
+   { print - "\nLocal_Host not supported\n" 1>&2; exit 1; };
+#-
+W_W=$(sed -n -e "s/^#-Q-  *\([^ ]*\).*$/\1/p" ${F_JOB} | \
+       sort -u | sed -e "/${x_t}/!d");
+[[ '\?'"${W_W}" != '\?'${x_t} ]] && \
+  {
+   print - "\nHost  "${x_t}"  not supported" 1>&2;
+   print - "'default' will be used" 1>&2;
+   x_t='default'
+  }
+#-
+[[ ${x_v} = 'verbose' ]] && \
+ {
+  print - "";
+  print - '--- Host        : '${x_t};
+  print - '--- modipsl     : '${F_MOD};
+  print - '--- libIGCM     : '${libIGCM};
+  print - '--- basic job   : '${F_JOB};
+  print - '--- basic card  : '${F_RCI};
+ }
+#-
+print - "\nInstallation of jobs for '${x_t}'";
+#-
+# Accessing to functions (without stack)
+#-
+DEBUG_debug=false
+. ${libIGCM}/libIGCM_debug/libIGCM_debug.ksh
+. ${libIGCM}/libIGCM_card/libIGCM_card.ksh
+#-
+# Define the pattern string to substitute
+#-
+W_P='#-Q- '; W_W=${W_P}${x_t};
+#-
+# Extract list of 'config.card' files
+# and create jobs with AA_job
+#-
+F_CFG='config.card';
+for i in $(find ${d_n}/.. -name ${F_CFG} -print)
+do
+ j=$(cd ${i%/*};/bin/pwd;)
+ n_f=${F_RCI##*/};
+
+ if [ ! X$( echo ${j} | grep USER_SPEC ) = X ] ; then
+ # Do not treat config.card if it is in sub-directory of USER_SPEC
+ # Continue to next config.card
+     continue
+ else
+     print - "\nWorking with file ${F_CFG}\nin directory ${j}\nfor ${n_f}";
+ fi
+ 
+ # Get all variables declared in section UserChoices in config.card
+ IGCM_card_DefineArrayFromSection ${j}'/'${F_CFG} UserChoices
+ # Set default values
+ config_UserChoices_JobClass=mono
+ config_UserChoices_JobNumProcTot=1
+ config_UserChoices_UserSpec=""
+ RESOL_ATM_3D=this_is_a_test_string
+ RESOL=this_is_another_test_string
+ typeset option
+ for option in ${config_UserChoices[*]} ; do
+     IGCM_card_DefineVariableFromOption ${j}'/'${F_CFG} UserChoices ${option}
+ done
+
+# Find the JobName : JobName might contain the variable RESOL_ATM_3D that will be replaced by what is in .resol file
+ if [ ! X$( echo ${config_UserChoices_JobName} | grep ${RESOL_ATM_3D} ) = X ] ; then
+    TRUERESOL=$( find ../ -name ".resol" -exec tail -1 {} \; | awk "-F=" '{print $2}' )
+    JobName=$( echo ${config_UserChoices_JobName} | sed -e "s/${RESOL_ATM_3D}/${TRUERESOL}/" )
+    IGCM_card_WriteOption ${j}'/'${F_CFG} UserChoices JobName ${JobName}
+ elif [ ! X$( echo ${config_UserChoices_JobName} | grep ${RESOL} ) = X ] ; then
+     TRUERESOL=$( find ../ -name ".resol" -exec head -1 {} \; )
+     JobName=$( echo ${config_UserChoices_JobName} | sed -e "s/${RESOL}/${TRUERESOL}/" )
+     IGCM_card_WriteOption ${j}'/'${F_CFG} UserChoices JobName ${JobName}
+ else
+     JobName=${config_UserChoices_JobName}
+ fi
+ echo "JobName=${JobName}"
+
+# Add specific treatment for new type of directory structure 
+  if [ -d ${j}/USER_SPEC ] && [ -d ${j}/GENERAL ] ; then
+      echo "This is new configuration structure"
+
+      if [ "X${config_UserChoices_UserSpec}" = X ] ; then
+	echo "\nERROR in ${j}/config.card"
+	echo "ins_job stops here"
+	echo "=> The variable UserSpec must be added in config.card in section UserChoices"
+	echo "=> UserSpec gives the directory for the .card configurtaion files for the wanted experiement. For exemple UserSpec=IPSLCM5/historical"
+        exit 4
+      else
+	echo "UserSpec= ${config_UserChoices_UserSpec}"
+      fi
+
+      if [ -d ${j}/${JobName} ] ; then
+	  echo "Directory ${j}/${JobName} exist already, continue next config.card"
+	  continue
+      fi
+      cp -r ${j}/USER_SPEC/${config_UserChoices_UserSpec} ${j}/${JobName}
+      cp -r ${j}/GENERAL/* ${j}/${JobName}/.
+      cp -f ${j}/${F_CFG}  ${j}/${JobName}/.
+      j=${j}/${JobName}
+      echo new j=$j
+  fi
+# end specific treatment for new type directory structure 
+
+ [[ -f ${j}'/'${n_f} ]] && { ins_job_Warning; } || \
+  {
+   print - "\nCopying file ${F_RCI}\nin directory ${j}";
+   \cp ${F_RCI} ${j};
+  }
+
+ # File name for Job
+ n_f='Job_'${JobName};
+ [[ -f ${j}'/'${n_f} ]] && { ins_job_Warning; continue; }
+ print - "\nWorking with file ${F_CFG}\nin directory ${j}\nfor ${n_f}";
+ sed -e "/^${W_W} */ s///" \
+     -e "/^${W_P}/d"       \
+     -e "s%::modipsl::%${F_MOD}%" \
+     -e "s/::Jobname::/${JobName}/" \
+     -e "s/::JobClass::/${config_UserChoices_JobClass}/" \
+     -e "s/::JobNumProcTot::/${config_UserChoices_JobNumProcTot}/" \
+     ${F_JOB} > ${j}'/'${n_f}
+ chmod u+x ${j}'/'${n_f}
+done
+#-
+# Extract list of AA_* files in libIGCM
+# and create jobs (for all except AA_job)
+#-
+for i in $(find ${libIGCM} -name "AA_*" -print | grep -v .svn )
+do
+ i_f=${i##*/};
+ [[ ${i_f} = 'AA_job' ]] && { continue; }
+ j=${i%/*}; n_f=${i_f#AA_}'.job';
+ [[ -f ${j}'/'${n_f} ]] && { ins_job_Warning; continue; }
+ print - "\nIn directory ${j}\n${i_f} -> ${n_f}"
+ sed -e "/^${W_W} */ s///" \
+     -e "s%::modipsl::%${F_MOD}%" \
+     -e "/^${W_P}/d"       \
+     ${i} > ${j}'/'${n_f}
+ chmod u+x ${j}'/'${n_f}
+done
+#-
+print - "";
+#-
+# That's all folks
+#-
+exit 0;
Index: /modipsl/branches/newconfig/util/ins_m_prec
===================================================================
--- /modipsl/branches/newconfig/util/ins_m_prec	(revision 1722)
+++ /modipsl/branches/newconfig/util/ins_m_prec	(revision 1722)
@@ -0,0 +1,95 @@
+#!/bin/ksh
+# $Id$
+#---------------------------------------------------------------------
+#- ins_m_prec - Installation of the precision module
+#---------------------------------------------------------------------
+function ins_m_prec_Usage
+{
+echo "
+ins_m_prec install the precision module in IOIPSL/src
+
+Usage :
+  ${b_n} [-h] | [-v] [-i i_prec] [-r r_prec]
+
+Options :
+  -h        : help
+  -v        : verbose mode
+  -i i_prec : integer precision 4/8
+  -r r_prec : real    precision 4/8
+
+Defaults :
+  -i 4 -r 8
+
+Example for default precision :
+  ins_m_prec
+
+Example for INTEGER 4 and REAL 4 precision :
+  ins_m_prec -i 4 -r 4
+"
+}
+#-    dirname     and      basename
+d_n=$(dirname ${0}); b_n=$(basename ${0});
+#- Retrieving and validation of the options
+x_v='silencious'; x_i=""; x_r="";
+while getopts :hvi:r: V
+  do
+    case ${V} in
+      (h)  ins_m_prec_Usage; exit 0;;
+      (v)  x_v='verbose';;
+      (i)  x_i=${OPTARG};;
+      (r)  x_r=${OPTARG};;
+      (:)  echo ${b_n}" : -"${OPTARG}" option : missing value" 1>&2;
+           exit 2;;
+      (\?) echo ${b_n}" : -"${OPTARG}" option : not supported" 1>&2;
+           exit 2;;
+    esac
+  done
+shift $(($OPTIND-1));
+#-
+# INTEGER and REAL precision
+#-
+case ${x_i} in
+  ( 4 | 8 ) ;;
+  ("") x_i='4';;
+  (*)
+    echo 'Invalid INTEGER precision requested' 1>&2;
+    echo ${x_i}' (must be 4 or 8)' 1>&2;
+    exit 1;;
+esac
+case ${x_r} in
+  ( 4 | 8 ) ;;
+  ("") x_r='8';;
+  (*)
+    echo 'Invalid REAL precision requested' 1>&2;
+    echo ${x_r}' (must be 4 or 8)' 1>&2;
+    exit 1;;
+esac
+#-
+[[ ${x_v} = 'verbose' ]] && \
+  { echo "\nInstallation of the precision module";
+    echo '--- Integer precision  : '${x_i};
+    echo '--- Real    precision  : '${x_r}; }
+#-
+dp_d=${d_n}'/../modeles/IOIPSL/src';
+#-
+dp_b="${dp_d}"'/def.prec'
+[[ ! -f "${dp_b}" ]] && { echo "${dp_b} unreachable ..."; exit 3; }
+sed -e "s/i_std=i_?/i_std=i_${x_i}/" \
+    -e "s/r_std=r_?/r_std=r_${x_r}/" ${dp_b} > wmpf.$$;
+#-
+# Create the module "defprec.f90" or update it
+# if the default precision has been modified
+#-
+dp_p="${dp_d}"'/defprec.f90';
+diff -q wmpf.$$ ${dp_p} > /dev/null 2>&1; r_c=${?};
+[[ ${r_c} != 0 ]] && cp -p wmpf.$$ ${dp_p};
+[[ ${x_v} = 'verbose' ]] && \
+ { echo " ";
+  { [[ ${r_c} = 0 ]] && echo ${dp_p} 'already up to date'; } || \
+  { [[ ${r_c} = 1 ]] && echo 'Update '${dp_p}; } || \
+  { [[ ${r_c} = 2 ]] && echo 'Create '${dp_p}; }
+  echo " "; }
+#-
+unset dp_d dp_b dp_p x_v x_i x_r; rm -f wmpf.$$;
+#-
+exit 0;
Index: /modipsl/branches/newconfig/util/ins_make
===================================================================
--- /modipsl/branches/newconfig/util/ins_make	(revision 1722)
+++ /modipsl/branches/newconfig/util/ins_make	(revision 1722)
@@ -0,0 +1,185 @@
+#!/bin/bash
+# $Id$
+#---------------------------------------------------------------------
+#- Installation of Makefiles according to an environment
+#---------------------------------------------------------------------
+shopt -s extglob
+#-
+function ins_make_Usage
+{
+typeset v0 v1 v2 v3 v4 v5 v6 v7 h_n;
+echo -e "
+ins_make install the Makefile in the directories
+
+Usage :
+  ${b_n} [-h] [-v] [-d] [-p r] [-t h] [-m m]
+
+Options :
+  -h   : help
+  -v   : verbose mode
+  -d   : debug mode
+  -p p : int and real precision I4R4/I4R8/I8R8/4/8
+  -t h : target host_name
+  -m m : mpi context choosen for the coupling MPI1/MPI2
+
+Defaults :
+   -t local_host -p I4R8
+
+Example for remote host compilation :
+  ins_make -t sx8brodie
+"
+echo -e "Supported targets :\n"
+[[ ! -f "${MKTG}" ]] && { echo -e "? (${MKTG} unreachable)\n"; exit 3; }
+while read v1 v2 v3 v4 v5 v6 v7
+  do
+    [[ -n "${v1}" && "${v1}${v3}" = '#-Q-#-'                       && \
+       -n "${v4}" && "${v4}${v5}${v6}" = 'Globaldefinitionsfor' ]] && \
+     { h_n=${v2}'           '; echo -e "${h_n:0:13} : ${v7}"; }
+  done <${MKTG}
+echo -e "
+For other targets, look in ${MKTG}.
+"
+}
+#-    dirname     and      basename
+d_n=$(dirname ${0}); b_n=$(basename ${0});
+#- File containing global definitions
+MKTG=${d_n}'/AA_make.gdef'
+
+#- Retrieving and validation of the options
+x_v='silencious'; x_d='normal'; x_p="??"; x_t="??"; x_m='??';
+while getopts :hvdp:m:t: V
+  do
+   case ${V} in
+    (h)  ins_make_Usage; exit 0;;
+    (v)  x_v='verbose';;
+    (d)  x_d='debug';;
+    (p)  x_p=${OPTARG};;
+    (t)  x_t=${OPTARG};;
+    (m)  x_m=${OPTARG};;
+    (:)  echo ${b_n}" : -"${OPTARG}" option : missing value" 1>&2;
+         exit 2;;
+    (\?) echo ${b_n}" : -"${OPTARG}" option : not supported" 1>&2;
+         exit 2;;
+   esac
+  done
+shift $(($OPTIND-1));
+#-
+# Treatment of the options
+#-
+# Default INTEGER and REAL precision
+case ${x_p} in
+ ( I4R4 | 4 )  x_p='I4R4'; w_ip='4'; w_rp='4';;
+ ( I4R8 | ?? ) x_p='I4R8'; w_ip='4'; w_rp='8';;
+ ( I8R8 | 8 )  x_p='I8R8'; w_ip='8'; w_rp='8';;
+ (*)
+   echo 'Invalid precision ' 1>&2;
+   echo ${x_p}' (must be I4R4, I4R8, I8R8, 4 or 8)' 1>&2;
+   exit 1;;
+esac
+#-
+# Target_Host Name
+[[ ${x_t} = '??' ]] && \
+ { x_t=$(${d_n}/w_i_h);
+   { [[ ${?} != 0 ]] && \
+      { echo "Bad installation : w_i_h/uname unreachable" 1>&2;
+        exit 1; }; } || \
+     [[ ${x_t} = "Unknown" ]] && \
+      { echo "Local_Host not supported" 1>&2; exit 1; }; }
+#-
+# Get editing header
+#x_h=$(${d_n}/w_i_p ${x_t});
+x_h=${x_t};
+#-
+[[ ! -f "${MKTG}" ]] && { echo "${MKTG} unreachable ..."; exit 3; }
+#-
+W_X1=$(sed -n -e "s/^#-Q-  *\(${x_h}\)[\t ].*$/\1/p" ${MKTG} | sort -u);
+[[ '\?'"${W_X1}" != '\?'"${x_h}" ]] && \
+  { echo "Target_Host  "${x_t}"  not supported" 1>&2; exit 1; }
+#-
+case ${x_m} in
+ ( mpi1 | mpi2 | MPI1 | MPI2 | ?? );;
+ (*) echo "MPI context "${x_m}" not supported" 1>&2; exit 1;;
+esac
+#-
+[[ ${x_v} = 'verbose' ]] && \
+ { echo "";
+   echo '--- Mode         : '${x_v};
+   echo '--- Compilation  : '${x_d};
+   echo '--- Precision    : '${x_p};
+   echo '--- Target       : '${x_t};
+   echo '--- MPI context  : '${x_m}; }
+#-
+echo "";
+echo "Installation of makefiles, scripts and data for ${x_t}";
+echo "";
+#-
+w_t='AA_make';
+l_rep=$(cd ${d_n};find .. -name ${w_t} -print)
+for i in ${l_rep}
+do
+  k=${i%/${w_t}}; k=${k#./}; j=${d_n}'/'${k}; j=${j#./};
+  echo "Installation in ${j}";
+  MKTL="${j}"'/AA_make.ldef';
+  [[ ! -f "${MKTL}" ]] && { echo "${MKTL} unreachable ..."; exit 3; }
+  MKTR="${j}"'/AA_make';
+  cat ${MKTL} ${MKTG} ${MKTR} > mk1.$$;
+  W_PR='#-Q-  *'; W_X1=${W_PR}${x_h};
+  sed -e "/^${W_X1}[\t ]/ s/^${W_X1} *//" -e "/^${W_PR}/d" mk1.$$ > mk2.$$;
+#-
+# Default INTEGER and REAL precision
+  W_PR='#-P- '; W_X1=${W_PR}${x_p};
+  sed -e "/^${W_X1} */ s///" -e "/^${W_PR}/d" mk2.$$ > mk1.$$;
+#-
+# Handle the precision module "defprec.f90" in "IOIPSL/src"
+  [[ '!!'${j##*/modeles} = '!!/IOIPSL/src' ]] && \
+   { [[ ${x_v} = 'verbose' ]] && W_X1='-v' || W_X1="";
+     ${d_n}/ins_m_prec ${W_X1} -i ${w_ip} -r ${w_rp}; r_c=${?};
+     unset w_ip w_rp;
+     [[ ${r_c} != 0 ]] && exit ${r_c}; }
+#-
+# Debug
+  W_PR='#-D- ';
+  [[ ${x_d} = 'debug' ]] && W_X1=${W_PR}'MD' || W_X1=${W_PR}'MN';
+  sed -e "/^${W_X1} */ s///" -e "/^${W_PR}/d" mk1.$$ > mk2.$$;
+#-
+# Retrieve the path of the Makefile directory
+# and the path from the directory to modipsl/util
+  mk_dir=$(cd ${j};/bin/pwd;);
+  ut_dir=''; for ww in ${k//\//' '}; do ut_dir=${ut_dir}'../'; done
+  ut_dir=${ut_dir%'../'}'util';
+  echo "Path from Makefile to modipsl/util : ${ut_dir}";
+# Update the values
+  W_X1='UTIL_DIR ='; W_X2='MAKE_DIR =';
+  sed -e "s!^${W_X1}.*!${W_X1} ${ut_dir}!" \
+      -e "s!^${W_X2}.*!${W_X2} ${mk_dir}!" \
+      mk2.$$ > mk1.$$
+  unset mk_dir ut_dir;
+#-
+# Choice of mpi library for the coupling
+  W_X1='LIB_MPI ='; W_X2='LIB_MPI_BIS =';
+  case ${x_m} in
+   ( mpi1 | MPI1 )
+    lib_mpi='MPI1'; lib_mpi_bis='MPI1';
+    sed -e "s!^${W_X1}.*!${W_X1} ${lib_mpi}!" \
+        -e "s!^${W_X2}.*!${W_X2} ${lib_mpi_bis}!" \
+      mk1.$$ > ${j}/Makefile;;
+   ( mpi2 | MPI2 )
+    lib_mpi='MPI2'; lib_mpi_bis='';
+    sed -e "s!^${W_X1}.*!${W_X1} ${lib_mpi}!" \
+        -e "s!^${W_X2}.*!${W_X2} ${lib_mpi_bis}!" \
+      mk1.$$ > ${j}/Makefile;;
+   (??) 
+    cp mk1.$$ ${j}/Makefile;;
+   (*) ;;
+  esac
+  unset lib_mpi lib_mpi_bis;
+#-
+done
+#-
+# Creating environment file 
+echo ${x_t} > ${d_n}/.host_target
+#-
+echo "";
+unset W_X1 W_X2 w_t; rm -f mk1.$$ mk2.$$;
+#-
+exit 0;
Index: /modipsl/branches/newconfig/util/ins_post
===================================================================
--- /modipsl/branches/newconfig/util/ins_post	(revision 1722)
+++ /modipsl/branches/newconfig/util/ins_post	(revision 1722)
@@ -0,0 +1,284 @@
+#!/bin/ksh
+# $Id$
+#-----------------------------------------------
+#- Installation de scripts de post_traitement
+#-----------------------------------------------
+d_n=$(dirname ${0}); b_n=$(basename ${0});
+
+#- Saisie et validation des options
+x_v='silencious';
+x_d='normal';
+x_t="";
+x_n="";
+
+while getopts :hvd:t: ops
+  do
+    case $ops in
+      (h)  echo "Usage    : "${b_n} \
+                " [-h] [-v] [-d] [-t h]  [-n f]";
+           echo " -h       : help";
+           echo " -v       : verbose mode";
+           echo " -d       : debug mode";
+           echo " -t h     : target host_name";
+           echo "Defaults  : -t local_host";
+           exit 0;;
+      (v)  x_v='verbose';;
+      (d)  x_d='debug';;
+      (t)  x_t=${OPTARG};;
+      (:)  echo ${b_n}" : -"${OPTARG}" option : missing value" 1>&2;
+           exit 2;;
+      (\?) echo ${b_n}" : -"${OPTARG}" option : not supported" 1>&2;
+           exit 2;;
+    esac
+  done
+shift $(($OPTIND-1));
+
+if   [ "$x_t" = "sx8brodie" ]; then
+   b_n_post=$(basename $HOME)
+   d_n_post=$(dirname $HOME | sed 's/home/u/')
+elif [ "$x_t" = "fjvpp" ]; then
+   b_n_post=$(basename $DMFDIR)
+   d_n_post=\/$(dirname $DMFDIR | awk -F\/ '{print $4}')
+elif [ "$x_t" = "sx6nec" ]; then
+   b_n_post=$(basename $DMFDIR)
+   d_n_post=$(dirname $DMFDIR)
+elif [ "$x_t" = "sx8mercure" ]; then
+   b_n_post=$(basename $DMFDIR)
+   d_n_post=$(dirname $DMFDIR)
+else
+echo "        !!! WARNING !!!"
+echo " The path for the output files on the storage server,"
+echo " needed for post-traitement files, is not automaticaly set."
+echo " Please specify manually this path by replacing the AAAAAAA"
+echo " string in the Output Job with the desired path."
+echo "        !!! WARNING !!!"
+fi
+#- Traitement des options
+#- REAL precision
+# Target_Host Name
+if [ '\?'${x_t} = '\?' ]; then
+  x_t=`${d_n}/w_i_h`;
+  if [ $? -ne 0 ]; then
+    echo "Bad installation : w_i_h/uname unreachable" 1>&2;
+    exit 1;
+  elif [ "$x_t" = "Unknown" ]; then
+    echo "Local_Host not supported" 1>&2;
+    exit 1;
+  fi;
+fi;
+
+case ${x_t} in
+  ( aix | cray | fjvpp | linux | lxiv7 | lxiv8 | osf1 | \
+    solaris | t3e | sx8brodie | sx6nec | sx8mercure | unix ) ;;
+  (*)
+    echo "Target_Host "${x_t}" not supported" 1>&2;
+    exit 1;;
+esac
+#-
+x_m=$( (cd $d_n ; pwd) | sed -e "s,/util,," )
+
+if [ ${x_v} = 'verbose' ]; then
+  echo '--- Mode              : '${x_v};
+  echo '--- Compilation       : '${x_d};
+  echo '--- Target            : '${x_t};
+  echo '--- Name              : '${x_n};
+  echo '--- MODIPSL directory : '${x_m};
+fi;
+#-
+#-
+l_rep1=`find ${d_n}/.. -name mo2st -print`
+l_rep2=`find ${d_n}/.. -name da2st -print`
+l_rep3=`find ${d_n}/.. -name mo2se -print`
+l_rep4=`find ${d_n}/.. -name da2mo -print`
+l_rep5=`find ${d_n}/.. -name da4mo -print`
+l_rep6=`find ${d_n}/.. -name da2ye -print`
+l_rep7=`find ${d_n}/.. -name da4ye -print`
+l_rep8=`find ${d_n}/.. -name mo2ye -print`
+l_rep9=`find ${d_n}/.. -name mo4ye -print`
+l_rep10=`find ${d_n}/.. -name mo2sn -print`
+l_rep11=`find ${d_n}/.. -name da2sn -print`
+l_rep12=`find ${d_n}/.. -name txt2tar -print`
+l_rep13=`find ${d_n}/.. -name monitoring_script -print`
+l_rep14=`find ${d_n}/.. -name monitoring_loop_script -print`
+l_rep15=`find ${d_n}/.. -name monitoring_loop2_script -print`
+l_rep16=`find ${d_n}/.. -name atlas_cpl_se_ORCA_LIM -print`
+l_rep17=`find ${d_n}/.. -name atlas_cpl_se -print`
+l_rep18=`find ${d_n}/.. -name atlas_cpl_se_LMDZOR -print`
+l_rep19=`find ${d_n}/.. -name atlas_cpl_se_ORCA_LIM2 -print`
+l_rep20=`find ${d_n}/.. -name create_ts -print`
+#-
+#-
+
+
+W_OS=${x_t};
+
+if   [ ${W_OS}  = "sx8brodie" ]; then
+   format='\s'
+elif [ ${W_OS}  = "fjvpp" ]; then
+   format='\d'
+elif [ ${W_OS}  = "sx6nec" ]; then
+   format='\g'
+elif [ ${W_OS}  = "sx8mercure" ]; then
+   format='\g'
+else
+echo "        !!! WARNING !!!"
+echo " The display format of numbers,"
+echo " needed for the dates, is not automaticaly set."
+echo " Please specify manually this format by replacing the PPPPPPP"
+echo " string in the Output Job with the desired format."
+echo "        !!! WARNING !!!"
+fi
+
+echo " ";
+echo "Installation of simple execution jobs for $W_OS";
+echo " ";
+#-
+
+for i in $l_rep1 $l_rep2 $l_rep3 $l_rep4 $l_rep5 $l_rep6 $l_rep7 $l_rep8 $l_rep9 $l_rep10 $l_rep11 $l_rep12 $l_rep13 $l_rep14 $l_rep15 $l_rep16 $l_rep17 $l_rep18 $l_rep19 $l_rep20
+do
+  echo " "
+  case $i in
+  "$l_rep1") j=$(dirname $i);
+          MKTR="$j";
+          r=$(cd $j ; pwd);
+          echo "Installation of mo2st.job file in directory : $(cd $j ; pwd) ";
+          typeset -R W_XX[1];
+	  set -A W_XX '\#\-D\-' '#-Q- '$W_OS;
+          sed  -e "/^.*${W_XX[0]}$/d" -e "s,^${W_XX[1]}*,," -e "s,AAAAAAA,${d_n_post}\/${b_n_post},g" -e "s,PPPPPPP,${format},g" ${MKTR}/mo2st | grep -v '^#-Q- ' $1 > ${r}/mo2st.job ;;
+ "$l_rep2") j=$(dirname $i);
+          MKTR="$j";
+          r=$(cd $j ; pwd);
+          echo "Installation of da2st.job file in directory : $(cd $j ; pwd) ";
+          typeset -R W_XX[1];
+	  set -A W_XX '\#\-D\-' '#-Q- '$W_OS;
+          sed  -e "/^.*${W_XX[0]}$/d" -e "s,^${W_XX[1]}*,," -e "s,AAAAAAA,${d_n_post}\/${b_n_post},g" -e "s,PPPPPPP,${format},g" ${MKTR}/da2st | grep -v '^#-Q- ' $1 > ${r}/da2st.job ;;
+  "$l_rep3") j=$(dirname $i);
+          MKTR="$j";
+          r=$(cd $j ; pwd);
+          echo "Installation of mo2se.job file in directory : $(cd $j ; pwd) ";
+          typeset -R W_XX[1];
+	  set -A W_XX '\#\-D\-' '#-Q- '$W_OS;
+          sed  -e "/^.*${W_XX[0]}$/d" -e "s,^${W_XX[1]}*,," -e "s,AAAAAAA,${d_n_post}\/${b_n_post},g" -e "s,PPPPPPP,${format},g" ${MKTR}/mo2se | grep -v '^#-Q- ' $1 > ${r}/mo2se.job ;;
+  "$l_rep4") j=$(dirname $i);
+          MKTR="$j";
+          r=$(cd $j ; pwd);
+          echo "Installation of da2mo.job file in directory : $(cd $j ; pwd) ";
+          typeset -R W_XX[1];
+	  set -A W_XX '\#\-D\-' '#-Q- '$W_OS;
+          sed  -e "/^.*${W_XX[0]}$/d" -e "s,^${W_XX[1]}*,," -e "s,AAAAAAA,${d_n_post}\/${b_n_post},g" -e "s,PPPPPPP,${format},g" ${MKTR}/da2mo | grep -v '^#-Q- ' $1 > ${r}/da2mo.job ;;
+  "$l_rep5") j=$(dirname $i);
+          MKTR="$j";
+          r=$(cd $j ; pwd);
+          echo "Installation of da4mo.job file in directory : $(cd $j ; pwd) ";
+          typeset -R W_XX[1];
+	  set -A W_XX '\#\-D\-' '#-Q- '$W_OS;
+          sed  -e "/^.*${W_XX[0]}$/d" -e "s,^${W_XX[1]}*,," -e "s,AAAAAAA,${d_n_post}\/${b_n_post},g" -e "s,PPPPPPP,${format},g" ${MKTR}/da4mo | grep -v '^#-Q- ' $1 > ${r}/da4mo.job ;;
+  "$l_rep6") j=$(dirname $i);
+          MKTR="$j";
+          r=$(cd $j ; pwd);
+          echo "Installation of da2ye.job file in directory : $(cd $j ; pwd) ";
+          typeset -R W_XX[1];
+	  set -A W_XX '\#\-D\-' '#-Q- '$W_OS;
+          sed  -e "/^.*${W_XX[0]}$/d" -e "s,^${W_XX[1]}*,," -e "s,AAAAAAA,${d_n_post}\/${b_n_post},g" -e "s,PPPPPPP,${format},g" ${MKTR}/da2ye | grep -v '^#-Q- ' $1 > ${r}/da2ye.job ;;
+  "$l_rep7") j=$(dirname $i);
+          MKTR="$j";
+          r=$(cd $j ; pwd);
+          echo "Installation of da4ye.job file in directory : $(cd $j ; pwd) ";
+          typeset -R W_XX[1];
+	  set -A W_XX '\#\-D\-' '#-Q- '$W_OS;
+          sed  -e "/^.*${W_XX[0]}$/d" -e "s,^${W_XX[1]}*,," -e "s,AAAAAAA,${d_n_post}\/${b_n_post},g" -e "s,PPPPPPP,${format},g" ${MKTR}/da4ye | grep -v '^#-Q- ' $1 > ${r}/da4ye.job ;;
+  "$l_rep8") j=$(dirname $i);
+          MKTR="$j";
+          r=$(cd $j ; pwd);
+          echo "Installation of mo2ye.job file in directory : $(cd $j ; pwd) ";
+          typeset -R W_XX[1];
+	  set -A W_XX '\#\-D\-' '#-Q- '$W_OS;
+          sed  -e "/^.*${W_XX[0]}$/d" -e "s,^${W_XX[1]}*,," -e "s,AAAAAAA,${d_n_post}\/${b_n_post},g" -e "s,PPPPPPP,${format},g" ${MKTR}/mo2ye | grep -v '^#-Q- ' $1 > ${r}/mo2ye.job ;;
+  "$l_rep9") j=$(dirname $i);
+          MKTR="$j";
+          r=$(cd $j ; pwd);
+          echo "Installation of mo4ye.job file in directory : $(cd $j ; pwd) ";
+          typeset -R W_XX[1];
+	  set -A W_XX '\#\-D\-' '#-Q- '$W_OS;
+          sed  -e "/^.*${W_XX[0]}$/d" -e "s,^${W_XX[1]}*,," -e "s,AAAAAAA,${d_n_post}\/${b_n_post},g" -e "s,PPPPPPP,${format},g" ${MKTR}/mo4ye | grep -v '^#-Q- ' $1 > ${r}/mo4ye.job ;;
+  "$l_rep10") j=$(dirname $i);
+          MKTR="$j";
+          r=$(cd $j ; pwd);
+          echo "Installation of mo2sn.job file in directory : $(cd $j ; pwd) ";
+          typeset -R W_XX[1];
+	  set -A W_XX '\#\-D\-' '#-Q- '$W_OS;
+          sed  -e "/^.*${W_XX[0]}$/d" -e "s,^${W_XX[1]}*,," -e "s,AAAAAAA,${d_n_post}\/${b_n_post},g" -e "s,PPPPPPP,${format},g" ${MKTR}/mo2sn | grep -v '^#-Q- ' $1 > ${r}/mo2sn.job ;;
+  "$l_rep11") j=$(dirname $i);
+          MKTR="$j";
+          r=$(cd $j ; pwd);
+          echo "Installation of da2sn.job file in directory : $(cd $j ; pwd) ";
+          typeset -R W_XX[1];
+	  set -A W_XX '\#\-D\-' '#-Q- '$W_OS;
+          sed  -e "/^.*${W_XX[0]}$/d" -e "s,^${W_XX[1]}*,," -e "s,AAAAAAA,${d_n_post}\/${b_n_post},g" -e "s,PPPPPPP,${format},g" ${MKTR}/da2sn | grep -v '^#-Q- ' $1 > ${r}/da2sn.job ;;
+  "$l_rep12") j=$(dirname $i);
+          MKTR="$j";
+          r=$(cd $j ; pwd);
+          echo "Installation of txt2tar.job file in directory : $(cd $j ; pwd) ";
+          typeset -R W_XX[1];
+	  set -A W_XX '\#\-D\-' '#-Q- '$W_OS;
+          sed  -e "/^.*${W_XX[0]}$/d" -e "s,^${W_XX[1]}*,," -e "s,AAAAAAA,${d_n_post}\/${b_n_post},g" -e "s,PPPPPPP,${format},g" ${MKTR}/txt2tar | grep -v '^#-Q- ' $1 > ${r}/txt2tar.job ;;
+  "$l_rep13") j=$(dirname $i);
+          MKTR="$j";
+          r=$(cd $j ; pwd);
+          echo "Installation of monitoring_script.job file in directory : $(cd $j ; pwd) ";
+          typeset -R W_XX[1];
+	  set -A W_XX '\#\-D\-' '#-Q- '$W_OS;
+          sed  -e "/^.*${W_XX[0]}$/d" -e "s,^${W_XX[1]}*,," -e "s,AAAAAAA,${d_n_post}\/${b_n_post},g" -e "s,PPPPPPP,${format},g" ${MKTR}/monitoring_script | grep -v '^#-Q- ' $1 > ${r}/monitoring_script.job ;;
+  "$l_rep14") j=$(dirname $i);
+          MKTR="$j";
+          r=$(cd $j ; pwd);
+          echo "Installation of monitoring_loop_script.job file in directory : $(cd $j ; pwd) ";
+          typeset -R W_XX[1];
+	  set -A W_XX '\#\-D\-' '#-Q- '$W_OS;
+          sed  -e "/^.*${W_XX[0]}$/d" -e "s,^${W_XX[1]}*,," -e "s,AAAAAAA,${d_n_post}\/${b_n_post},g" -e "s,PPPPPPP,${format},g" ${MKTR}/monitoring_loop_script | grep -v '^#-Q- ' $1 > ${r}/monitoring_loop_script.job ;;
+  "$l_rep15") j=$(dirname $i);
+          MKTR="$j";
+          r=$(cd $j ; pwd);
+          echo "Installation of monitoring_loop2_script.job file in directory : $(cd $j ; pwd) ";
+          typeset -R W_XX[1];
+	  set -A W_XX '\#\-D\-' '#-Q- '$W_OS ;
+          sed  -e "/^.*${W_XX[0]}$/d" -e "s,^${W_XX[1]}*,," -e "s,AAAAAAA,${d_n_post}\/${b_n_post},g" -e "s,PPPPPPP,${format},g" ${MKTR}/monitoring_loop2_script | grep -v '^#-Q- ' $1 > ${r}/monitoring_loop2_script.job ;;
+  "$l_rep16") j=$(dirname $i);
+          MKTR="$j";
+          r=$(cd $j ; pwd);
+          echo "Installation of atlas_cpl_se_ORCA_LIM.job file in directory : $(cd $j ; pwd) ";
+          typeset -R W_XX[1];
+	  set -A W_XX '\#\-D\-' '#-Q- '$W_OS;
+          sed  -e "/^.*${W_XX[0]}$/d" -e "s,^${W_XX[1]}*,," -e "s,AAAAAAA,${d_n_post}\/${b_n_post},g" -e "s,PPPPPPP,${format},g" ${MKTR}/atlas_cpl_se_ORCA_LIM | grep -v '^#-Q- ' $1 > ${r}/atlas_cpl_se_ORCA_LIM.job ;;
+  "$l_rep17") j=$(dirname $i);
+          MKTR="$j";
+          r=$(cd $j ; pwd);
+          echo "Installation of atlas_cpl_se.job file in directory : $(cd $j ; pwd) ";
+          typeset -R W_XX[1];
+	  set -A W_XX '\#\-D\-' '#-Q- '$W_OS;
+          sed  -e "/^.*${W_XX[0]}$/d" -e "s,^${W_XX[1]}*,," -e "s,AAAAAAA,${d_n_post}\/${b_n_post},g" -e "s,PPPPPPP,${format},g" ${MKTR}/atlas_cpl_se | grep -v '^#-Q- ' $1 > ${r}/atlas_cpl_se.job ;;
+  "$l_rep18") j=$(dirname $i);
+          MKTR="$j";
+          r=$(cd $j ; pwd);
+          echo "Installation of atlas_cpl_se_LMDZOR.job file in directory : $(cd $j ; pwd) ";
+          typeset -R W_XX[1];
+	  set -A W_XX '\#\-D\-' '#-Q- '$W_OS;
+          sed  -e "/^.*${W_XX[0]}$/d" -e "s,^${W_XX[1]}*,," -e "s,AAAAAAA,${d_n_post}\/${b_n_post},g" -e "s,PPPPPPP,${format},g" ${MKTR}/atlas_cpl_se_LMDZOR | grep -v '^#-Q- ' $1 > ${r}/atlas_cpl_se_LMDZOR.job ;;
+  "$l_rep19") j=$(dirname $i);
+          MKTR="$j";
+          r=$(cd $j ; pwd);
+          echo "Installation of atlas_cpl_se_ORCA_LIM2.job file in directory : $(cd $j ; pwd) ";
+          typeset -R W_XX[1];
+          set -A W_XX '\#\-D\-' '#-Q- '$W_OS;
+          sed  -e "/^.*${W_XX[0]}$/d" -e "s,^${W_XX[1]}*,," -e "s,AAAAAAA,${d_n_post}\/${b_n_post},g" -e "s,PPPPPPP,${format},g" ${MKTR}/atlas_cpl_se_ORCA_LIM2 | grep -v '^#-Q- ' $1 > ${r}/atlas_cpl_se_ORCA_LIM2.job ;;
+  "$l_rep20") j=$(dirname $i);
+          MKTR="$j";
+          r=$(cd $j ; pwd);
+          echo "Installation of create_ts.job file in directory : $(cd $j ; pwd) ";
+          typeset -R W_XX[1];
+	  set -A W_XX '\#\-D\-' '#-Q- '$W_OS;
+          sed  -e "/^.*${W_XX[0]}$/d" -e "s,^${W_XX[1]}*,," -e "s,AAAAAAA,${d_n_post}\/${b_n_post},g" -e "s,PPPPPPP,${format},g" ${MKTR}/create_ts | grep -v '^#-Q- ' $1 > ${r}/create_ts.job ;;
+ esac
+done
+echo " ";
+exit 0;
Index: /modipsl/branches/newconfig/util/ins_script
===================================================================
--- /modipsl/branches/newconfig/util/ins_script	(revision 1722)
+++ /modipsl/branches/newconfig/util/ins_script	(revision 1722)
@@ -0,0 +1,186 @@
+#!/bin/ksh
+# $Id$
+#---------------------------------------------------------------------
+#- Installation de scripts de lancement d experiences propres a un environnement
+#---------------------------------------------------------------------
+d_n=$(dirname ${0}); b_n=$(basename ${0});
+
+#- Saisie et validation des options
+x_v='silencious';
+x_d='normal';
+x_t="";
+x_n="";
+
+while getopts :hvd:t:n: V
+  do
+    case $V in
+      (h)  echo "Usage    : "${b_n} \
+                " [-h] [-v] [-d] [-t h]  [-n f]";
+           echo " -h       : help";
+           echo " -v       : verbose mode";
+           echo " -d       : debug mode";
+           echo " -t h     : target host_name";
+           echo " -n f     : Name";
+           echo "Defaults  : -t local_host";
+           exit 0;;
+      (v)  x_v='verbose';;
+      (d)  x_d='debug';;
+      (t)  x_t=${OPTARG};;
+      (n)  x_n=${OPTARG};;
+      (:)  echo ${b_n}" : -"${OPTARG}" option : missing value" 1>&2;
+           exit 2;;
+      (\?) echo ${b_n}" : -"${OPTARG}" option : not supported" 1>&2;
+           exit 2;;
+    esac
+  done
+shift $(($OPTIND-1));
+#- Traitement des options
+#- REAL precision
+#- Target_Host Name
+if [ '\?'${x_t} = '\?' ]; then
+  x_t=`${d_n}/w_i_h`;
+  if [ $? -ne 0 ]; then
+    echo "Bad installation : w_i_h/uname unreachable" 1>&2;
+    exit 1;
+  elif [ "$x_t" = "Unknown" ]; then
+    echo "Local_Host not supported" 1>&2;
+    exit 1;
+  fi;
+fi;
+
+if   [ "$x_t" = "sx8brodie" ]; then
+   b_n_atlas=$(basename $HOME)
+   d_n_atlas=$(dirname $HOME | sed 's/home/u/')
+elif [ "$x_t" = "aix" ]; then
+   b_n_atlas=$LOGIN
+   d_n_atlas="/u/"$(dirname $HOME | awk -F\/ '{print $3"/"$4}')
+elif [ "$x_t" = "aix6" ]; then
+   b_n_atlas=$LOGIN
+   d_n_atlas="/u/"$(dirname $HOME | awk -F\/ '{print $3"/"$4}')
+elif [ "$x_t" = "babel" ]; then
+   b_n_atlas=$LOGIN
+   d_n_atlas="/u/"$(dirname $HOME | awk -F\/ '{print $3"/"$4}')
+elif [ "$x_t" = "fjvpp" ]; then
+   b_n_atlas=$(basename $DMFDIR)
+   d_n_atlas=\/$(dirname $DMFDIR | awk -F\/ '{print $4}')
+elif [ "$x_t" = "sx6nec" ]; then
+   b_n_atlas=$(basename $DMFDIR)
+   d_n_atlas=$(dirname $DMFDIR)
+elif [ "$x_t" = "sx8mercure" ]; then
+   b_n_atlas=$(basename $DMFDIR)
+   d_n_atlas=$(dirname $DMFDIR)
+else
+echo "        !!! WARNING !!!"
+echo " The path for the output files on the storage server,"
+echo " needed for the descriptor files, is not automaticaly set."
+echo " Please specify manually this path by replacing the AAAAAAA"
+echo " string in the Output Job with the desired path."
+echo "        !!! WARNING !!!"
+fi
+
+case ${x_t} in
+  ( aix6 | aix | babel | cray | fjvpp | linux | lxiv7 | lxiv8 | osf1 | \
+    solaris | t3e | sx8brodie | sx6nec | sx8mercure | unix ) ;;
+  (*)
+    echo "Target_Host "${x_t}" not supported" 1>&2;
+    exit 1;;
+esac
+#-
+x_m=$( (cd $d_n ; pwd) | sed -e "s,/util,," )
+
+if [ ${x_v} = 'verbose' ]; then
+  echo '--- Mode              : '${x_v};
+  echo '--- Compilation       : '${x_d};
+  echo '--- Target            : '${x_t};
+  echo '--- Name              : '${x_n};
+  echo '--- MODIPSL directory : '${x_m};
+fi;
+#-
+#-
+l_rep=`find ${d_n}/.. -name AA_job -print`
+#-
+W_OS=${x_t};
+#
+if   [ ${W_OS}  = "sx8brodie" ]; then
+   format='\s'
+elif [ ${W_OS}  = "aix" ]; then
+   format='\s'
+elif [ ${W_OS}  = "babel" ]; then
+   format='\s'
+elif [ ${W_OS}  = "fjvpp" ]; then
+   format='\d'
+elif [ ${W_OS}  = "sx6nec" ]; then
+   format='\s'
+elif [ ${W_OS}  = "sx8mercure" ]; then
+   format='\s'
+else
+echo "        !!! WARNING !!!"
+echo " The display format of numbers,"
+echo " needed for the dates, is not automaticaly set."
+echo " Please specify manually this format by replacing the PPPPPPP"
+echo " string in the Output Job with the desired format."
+echo "        !!! WARNING !!!"
+fi
+echo " ";
+echo "Installation of simple execution jobs for $W_OS";
+echo " ";
+#-
+for i in $l_rep
+do
+  j=${i%/AA_job}
+  MKTR="$j"'/AA_job'
+  Job_name=`( grep '#-Q- '${W_OS}' #@$-r' ${MKTR} || grep '#-Q- '${W_OS}' #PBS -N' ${MKTR} || grep '#-Q- '${W_OS}' #@job_name' ${MKTR} ) | awk -F: '{print $3}'`
+  JN2=`( grep '#-Q- '${W_OS}' #@$-r' ${MKTR} || grep '#-Q- '${W_OS}' #PBS -N' ${MKTR} || grep '#-Q- '${W_OS}' #@job_name' ${MKTR} ) | awk -F: '{print $2}'`
+  JN4=`( grep '#-Q- '${W_OS}' #@$-r' ${MKTR} || grep '#-Q- '${W_OS}' #PBS -N' ${MKTR} || grep '#-Q- '${W_OS}' #@job_name' ${MKTR} ) | awk -F: '{print $4}'`
+  r=$( (cd $j ; pwd) )
+  echo "Installation in directory : $(cd $j ; pwd) ";
+  sed -e "s,MMMMMMM,${x_m}," -e "s,RRRRRRR,${r}," -e "s,AAAAAAA,${d_n_atlas}\/${b_n_atlas},g" ${MKTR}  > jb1.$$
+  W_XX='#-Q- '$W_OS
+  FILE_NAME="";
+
+if [ '\?'${x_n} = '\?' ] && [ '\?'${Job_name} = '\?' ]; then
+    FILE_NAME="$j/Job"
+elif [ '\?'${x_n} = '\?' ] && [ -n "${Job_name}" ] && [ ${Job_name} = XXX ]; then
+    FILE_NAME="$j/Job_LO1"
+elif [ '\?'${x_n} != '\?' ] && [ ${Job_name} = XXX ]; then
+  FILE_NAME="$j/Job_${x_n}"
+elif [ '\?'${x_n} = '\?' ] && [ -n "${Job_name}" ] && [ ${Job_name} != XXX ]; then
+  FILE_NAME="$j/Job_${Job_name}"
+elif [ '\?'${x_n} != '\?' ] && [ ${Job_name} != XXX ]; then
+  FILE_NAME="$j/Job_${x_n}"
+fi
+
+ if [ ! -f "${FILE_NAME}" ]; then
+   case ${FILE_NAME} in
+      "$j/Job") sed -e "s,PPPPPPP,${format},g" -e "s,^$W_XX *,," -e "s,JJJJJJJ,Job," jb1.$$ | grep -v '^#-Q- ' > ${FILE_NAME};;
+      "$j/Job_LO1") sed -e "s,PPPPPPP,${format},g" -e "s,^$W_XX *,," -e "s,XXXXXXX,LO1," -e "s,JJJJJJJ,Job_LO1," -e "s,:${JN2}:,," -e "s,${Job_name},LO1.1,"  -e "s,:${JN4}:,," jb1.$$ | grep -v '^#-Q- ' > ${FILE_NAME};;
+      "$j/Job_${x_n}") sed -e "s,PPPPPPP,${format},g" -e "s,^$W_XX *,," -e "s,XXXXXXX,${x_n}," -e "s,JJJJJJJ,Job_${x_n},"  -e "s,:${JN2}:,," -e "s,${Job_name},${x_n}.1,"  -e "s,:${JN4}:,,"  jb1.$$ | grep -v '^#-Q- ' > ${FILE_NAME};;
+      "$j/Job_${Job_name}") sed -e "s,PPPPPPP,${format},g" -e "s,^$W_XX *,," -e "s,XXXXXXX,${Job_name}," -e "s,JJJJJJJ,Job_${Job_name},"  -e "s,:${JN2}:,," -e "s,${Job_name},${Job_name}.1,"  -e "s,:${JN4}:,," jb1.$$ | grep -v '^#-Q- ' > ${FILE_NAME};;
+   esac
+   chmod 755 ${FILE_NAME}
+ else
+        echo " "
+        echo "WARNING : The file ${FILE_NAME} already exists, "
+        echo "WARNING : installation was not completed correctly "
+        echo "WARNING :       !!! NO FILE REPLACED !!!"
+        echo "WARNING : use parameter -n new_name to obtain Job_new_name script file"
+        echo "WARNING :   for example : ins_script -n LP1  "
+        echo " "
+   rm -f jb1.$$ 
+   exit 0;    
+ fi
+echo "Installation in file : `echo ${FILE_NAME} | sed -e 's,/.*/,,' ` ";
+ 
+#-$$ Introduire ici la selection de la technique de communication
+#-$$ pour OASIS (prefixe #-C- )
+done
+#-
+rm -f jb1.$$ 
+#-
+#-$$ launch ins_post if at least one post-processing utility exists
+#-$$
+OK_POST=`find ${d_n}/.. -name da2st`
+if [ -n "$OK_POST" ]; then
+${d_n}/ins_post -t ${x_t}
+fi
+exit 0;
Index: /modipsl/branches/newconfig/util/mod.def
===================================================================
--- /modipsl/branches/newconfig/util/mod.def	(revision 1722)
+++ /modipsl/branches/newconfig/util/mod.def	(revision 1722)
@@ -0,0 +1,644 @@
+#- $Id$
+#---------------------------------------------------------------------
+#-This file is the definition file of the script "model".
+#---------------------------------------------------------------------
+#- Each model is defined by
+#- (prefix #-H-) model informations,
+#- (prefix #-M-) the email address of the model manager,
+#- (prefix #-C-) elements to extract for the model, in the order :
+#-   name of the component in the repository
+#-   tag/revision of the component
+#-   index of the repository in the server table
+#-   installation path in the local working directory
+#-   local working directory in modipsl
+#- (prefix #-S-) containing the control system and server address.
+#-
+#- The tag "?" correspond to the default model version.
+#- Invoking "model" with -H overrides any tag with "?".
+#---------------------------------------------------------------------
+#- Repository informations
+#-
+#-S- 1 cvs anonymous@cvs.ipsl.jussieu.fr:/home/ioipsl/CVSROOT
+#-S- 2 cvs sechiba@cvs.ipsl.jussieu.fr:/home/ssipsl/CVSREP
+#-S- 3 cvs lmdzbrowse@cvs.lmd.jussieu.fr:/home/cvsroot
+#-S- 4 cvs opa@cvs.ipsl.jussieu.fr:/home/opalod/CVSROOT
+#-S- 5 cvs nemo@cvs.ipsl.jussieu.fr:/home/opalod/NEMOCVSROOT
+#-S- 6 cvs inca@cvs.ipsl.jussieu.fr:/home/incaipsl/CVSROOT
+#-S- 7 svn http://forge.ipsl.jussieu.fr/nemo/svn
+#-S- 8 svn http://forge.ipsl.jussieu.fr/igcmg/svn
+#-S- 9 svn --username inca http://forge.ipsl.jussieu.fr/inca/svn
+#-S- 10 svn http://forge.ipsl.jussieu.fr/libigcm/svn
+#-S- 11 svn http://svn.lmd.jussieu.fr/LMDZ
+#-S- 12 svn http://forge.ipsl.jussieu.fr/ioserver/svn 
+#-S- 13 svn http://forge.ipsl.jussieu.fr/fcm/svn
+#-S- 14 svn svn://forge.ipsl.jussieu.fr/orchidee
+#-S- 15 svn --username sechiba svn://forge.ipsl.jussieu.fr/orchidee
+#-S- 16 svn svn+ssh://XXLOGIN@forge.ipsl.jussieu.fr/projets/lmdz-reprobus/svn
+#---------------------------------------------------------------------
+#- Models description
+#-
+#-H- IOIPSL  IOIPSL source only
+#-H- IOIPSL  IOIPSL last tagged public version
+#-M- IOIPSL  foujols@ipsl.jussieu.fr
+#-C- IOIPSL  IOIPSL/tags/v2_2_1/src HEAD 8 IOIPSL/src modeles
+#-
+#-H- IOIPSL_PLUS  IOIPSL
+#-H- IOIPSL_PLUS  IOIPSL last tagged public version
+#-M- IOIPSL_PLUS  foujols@ipsl.jussieu.fr
+#-C- IOIPSL_PLUS  IOIPSL/tags/v2_2_1 HEAD 8 IOIPSL modeles
+#-
+#-H- libIGCM  libIGCM latest tagged version 
+#-M- libIGCM  Sebastien.Denvil@ipsl.jussieu.fr
+#-C- libIGCM  tags/libIGCM_v2.0_beta2  HEAD  10 libIGCM    .
+#-
+#-H- IPSLCM4_v1  Modele couple IPSL dit IPCC
+#-H- IPSLCM4_v1  ORCA tag ipsl_cm4_v1_10
+#-H- IPSLCM4_v1  IOIPSL/src tag ipsl_cm4_v1_9_1
+#-H- IPSLCM4_v1  LMDZ tag IPSL-CM4_IPCC
+#-H- IPSLCM4_v1  ORCHIDEE tag orchidee_1_3
+#-H- IPSLCM4_v1  CPL Oasis tag IPSL : ipsl_cm4_v1_2
+#-H- IPSLCM4_v1  IPSLCM4_v1 configuration tag IPSL : ipsl_cm4_v1_6
+#-M- IPSLCM4_v1  patricia.cadule@ipsl.jussieu.fr
+#-C- IPSLCM4_v1  IOIPSL/src         ipsl_cm4_v1_9_1  1  .
+#-C- IPSLCM4_v1  CPL                ipsl_cm4_v1_2    1  .
+#-C- IPSLCM4_v1  ORCHIDEE           orchidee_1_3     2  .
+#-C- IPSLCM4_v1  LMDZ.3.3           IPSL-CM4_IPCC    3  .
+#-C- IPSLCM4_v1  IPSLCM4_v1         ipsl_cm4_v1_6    1  .
+#-C- IPSLCM4_v1  OPA/SRC_ORCA       ipsl_cm4_v1_10   4  .
+#-C- IPSLCM4_v1  OPA/SRC_UCL        ipsl_cm4_v1_10   4  .
+#-C- IPSLCM4_v1  UTIL/fait_AA_make  ipsl_cm4_v1_8    4  .
+#-
+#-H- IPSLCM4_LOOP  IPSL coupled model with tracer model and carbon cycle
+#-H- IPSLCM4_LOOP  ORCA (OPA+TRC+LIM) : tag ipsl_cm4_loop_1
+#-H- IPSLCM4_LOOP  IOIPSL/src tag ioipsl-2-0
+#-H- IPSLCM4_LOOP  LMDZ4 tag IPSL-CM4_LOOP
+#-H- IPSLCM4_LOOP  ORCHIDEE tag orchidee_1_4
+#-H- IPSLCM4_LOOP  CPL Oasis tag IPSL : HEAD
+#-H- IPSLCM4_LOOP  IPSLCM4_LOOP configuration tag IPSL : ipsl_cm4_loop_v1
+#-H- IPSLCM4_LOOP  Message sent to Patricia CADULE (IPSL)
+#-M- IPSLCM4_LOOP  patricia.cadule@ipsl.jussieu.fr
+#-C- IPSLCM4_LOOP  IOIPSL/src    ioipsl-2-0      1 . modeles
+#-C- IPSLCM4_LOOP  CPL           ?               1 . modeles
+#-C- IPSLCM4_LOOP  ORCHIDEE      orchidee_1_4    2 . modeles
+#-C- IPSLCM4_LOOP  LMDZ4         IPSL-CM4_LOOP   3 . modeles
+#-C- IPSLCM4_LOOP  IPSLCM4_LOOP  ?               1 IPSLCM4_LOOP config
+#-C- IPSLCM4_LOOP  IPSLCM4_v1/Utilitaires ipsl_cm4_v1_6 1 post_util .
+#-C- IPSLCM4_LOOP  OPA/SRC_ORCA  ipsl_cm4_loop_1 4 . modeles
+#-C- IPSLCM4_LOOP  OPA/SRC_UCL   ipsl_cm4_loop_1 4 . modeles
+#-C- IPSLCM4_LOOP  OPA/SRC_TRC   ipsl_cm4_loop_1 4 . modeles
+#-C- IPSLCM4_LOOP  UTIL/fait_AA_make ipsl_cm4_v1_8 4 .  modeles
+#-
+#-H- IPSLCM4_v1_OASIS3  IPSLCM4_v1_OASIS3 configuration with OASIS3 coupler 23/03/05
+#-H- IPSLCM4_v1_OASIS3  ORCA tag ipsl_cm4_v1_10
+#-H- IPSLCM4_v1_OASIS3  IOIPSL/src tag ioipsl-2-1
+#-H- IPSLCM4_v1_OASIS3  LMDZ4 tag IPSL-CM4_IPCC_branch
+#-H- IPSLCM4_v1_OASIS3  ORCHIDEE tag orchidee_1_3_1
+#-H- IPSLCM4_v1_OASIS3  OASIS3 tag ipslcm4_v2
+#-M- IPSLCM4_v1_OASIS3  arnaud.caubel@cea.fr
+#-C- IPSLCM4_v1_OASIS3  IOIPSL/src    ioipsl-2-1 1 . modeles
+#-C- IPSLCM4_v1_OASIS3  ORCHIDEE      orchidee_1_3_1 2 . modeles
+#-C- IPSLCM4_v1_OASIS3  OASIS3        ipslcm4_v2 1 prism .
+#-C- IPSLCM4_v1_OASIS3  LMDZ4         IPSL-CM4_IPCC_branch 3 . modeles
+#-C- IPSLCM4_v1_OASIS3  IPSLCM4_v1_OASIS3  ? 1 . config
+#-C- IPSLCM4_v1_OASIS3  IPSLCM4_v1/Utilitaires ipsl_cm4_v1_6 1 post_util .
+#-C- IPSLCM4_v1_OASIS3  OPA/SRC_ORCA   ipsl_cm4_v1_10 4 . modeles
+#-C- IPSLCM4_v1_OASIS3  OPA/SRC_UCL    ipsl_cm4_v1_10 4 . modeles
+#-C- IPSLCM4_v1_OASIS3  UTIL/fait_AA_make ipsl_cm4_v1_8 4 .  modeles
+#-
+#-H- IPSLCM4_v2  IPSLCM4_v2 configuration with parallel LMDZ4 and ORCHIDEE
+#-H- IPSLCM4_v2  Official beta release
+#-H- IPSLCM4_v2  ORCA tag ipsl_cm4_v2
+#-H- IPSLCM4_v2  IOIPSL/src svn tags/v2_1_2
+#-H- IPSLCM4_v2  LMDZ4 tag LMDZ4_V3_4
+#-H- IPSLCM4_v2  ORCHIDEE tag orchidee_1_9_2
+#-H- IPSLCM4_v2  OASIS3 tag ipslcm4_v2
+#-H- IPSLCM4_v2  IPSLCM4_v2 svn tag IPSLCM4_v2_6 for usage with libIGCM v1_4 and offline rebuild
+#-H- IPSLCM4_v2  libIGCM tag libIGCM_v1_4 to allow ulam and forget rhodes
+#-M- IPSLCM4_v2  arnaud.caubel@lsce.ipsl.fr
+#-C- IPSLCM4_v2  IOIPSL/tags/v2_1_2/src HEAD 8 IOIPSL/src modeles
+#-C- IPSLCM4_v2  ORCHIDEE               orchidee_1_9_2 2 . modeles
+#-C- IPSLCM4_v2  OASIS3                 ipslcm4_v2     1 prism .
+#-C- IPSLCM4_v2  LMDZ4                  LMDZ4_V3_4     3 . modeles
+#-C- IPSLCM4_v2  CONFIG/IPSLCM/IPSLCM4_v2/tags/IPSLCM4_v2_6  HEAD 8 IPSLCM4_v2 config
+#-C- IPSLCM4_v2  tags/libIGCM_v1_4      ?              10 libIGCM .
+#-C- IPSLCM4_v2  OPA/SRC_ORCA           ipsl_cm4_v2    4 . modeles
+#-C- IPSLCM4_v2  OPA/SRC_UCL            ipsl_cm4_v2    4 . modeles
+#-C- IPSLCM4_v2  UTIL/fait_AA_make      ipsl_cm4_v1_8  4 .  modeles
+#-
+#-H- IPSLCM5_v2  IPSLCM5_v2 coupled configuration
+#-H- IPSLCM5_v2  CMIP5 configuration  
+#-H- IPSLCM5_v2  NEMO svn tags/nemo_v3_2/
+#-H- IPSLCM5_v2  XMLF90 svn trunk revision 51
+#-H- IPSLCM5_v2  XMLIO_SERVER svn trunk revision 51
+#-H- IPSLCM5_v2  IOIPSL/src svn tags/v2_1_9
+#-H- IPSLCM5_v2  LMDZ4 trunk revision 1329
+#-H- IPSLCM5_v2  ORCHIDEE tag orchidee_1_9_4_2
+#-H- IPSLCM5_v2  OASIS3 tag ipslcm5a 
+#-H- IPSLCM5_v2  IPSLCM5_v2 svn branches 
+#-H- IPSLCM5_v2  libIGCM trunk revision 246
+#-M- IPSLCM5_v2  arnaud.caubel@lsce.ipsl.fr
+#-C- IPSLCM5_v2  IOIPSL/tags/v2_1_9/src        HEAD         8  IOIPSL/src modeles
+#-C- IPSLCM5_v2  ORCHIDEE            orchidee_1_9_4_2     2  .          modeles
+#-C- IPSLCM5_v2  OASIS3                    ipslcm5a         1  prism      .
+#-C- IPSLCM5_v2  LMDZ4/trunk                   1329        11  LMDZ4      modeles
+#-C- IPSLCM5_v2  CONFIG/IPSLCM/IPSLCM5/branches/IPSLCM5_v2  HEAD     8  IPSLCM5    config
+#-C- IPSLCM5_v2  trunk/libIGCM                  246        10  libIGCM    .
+#-C- IPSLCM5_v2  tags/nemo_v3_2/NEMO           HEAD         7  .          modeles
+#-C- IPSLCM5_v2  tags/nemo_v3_2/UTIL           HEAD         7  .          modeles
+#-C- IPSLCM5_v2  XMLF90                          54        12  .          modeles
+#-C- IPSLCM5_v2  XMLIO_SERVER/trunk              54        12  XMLIO_SERVER       modeles
+#-
+#-H- IPSLCM5_v3  IPSLCM5_v3 coupled configuration
+#-H- IPSLCM5_v3  IPSLCM5_v2 + PISCES = test configuration
+#-H- IPSLCM5_v3  NEMO svn branches/CMIP5_IPSL 1807 including PISCES
+#-H- IPSLCM5_v3  XMLF90 svn trunk revision 54
+#-H- IPSLCM5_v3  XMLIO_SERVER svn trunk revision 54
+#-H- IPSLCM5_v3  IOIPSL/src svn tags/v2_1_9
+#-H- IPSLCM5_v3  LMDZ4 trunk revision 1329
+#-H- IPSLCM5_v3  ORCHIDEE tag orchidee_1_9_4_2
+#-H- IPSLCM5_v3  OASIS3 tag ipslcm5a
+#-H- IPSLCM5_v3  IPSLCM5_v3 svn branches 
+#-H- IPSLCM5_v3  libIGCM trunk revision 246
+#-M- IPSLCM5_v3  patricia.cadule@ipsl.jussieu.fr
+#-C- IPSLCM5_v3  IOIPSL/tags/v2_1_9/src        HEAD         8  IOIPSL/src modeles
+#-C- IPSLCM5_v3  ORCHIDEE            orchidee_1_9_4_2     2  .          modeles
+#-C- IPSLCM5_v3  OASIS3                    ipslcm5a         1  prism      .
+#-C- IPSLCM5_v3  LMDZ4/trunk                   1329        11  LMDZ4      modeles
+#-C- IPSLCM5_v3  CONFIG/IPSLCM/IPSLCM5/branches/IPSLCM5_v3  HEAD     8  IPSLCM5_v3 config
+#-C- IPSLCM5_v3  trunk/libIGCM                  246        10  libIGCM    .
+#-C- IPSLCM5_v3  branches/CMIP5_IPSL/NEMO      1830         7  .          modeles
+#-C- IPSLCM5_v3  branches/CMIP5_IPSL/UTIL      1810         7  .          modeles
+#-C- IPSLCM5_v3  XMLF90                          54        12  .          modeles
+#-C- IPSLCM5_v3  XMLIO_SERVER/trunk              54        12  XMLIO_SERVER       modeles
+#-
+#-H- IPSLCM5A  IPSLCM5A coupled configuration
+#-H- IPSLCM5A  CMIP5 version 08/12/2011
+#-H- IPSLCM5A  with 5 NEMO sub-domains for vargas or titane by default
+#-H- IPSLCM5A  NEMO svn branches/CMIP5_IPSL 3205 
+#-H- IPSLCM5A  XMLF90 svn trunk revision 297
+#-H- IPSLCM5A  XMLIO_SERVER svn trunk revision 297
+#-H- IPSLCM5A  IOIPSL/src svn tags/v2_2_1
+#-H- IPSLCM5A  LMDZ4 branches LMDZ4_AR5 revision 1602
+#-H- IPSLCM5A  ORCHIDEE version orchidee_1_9_5
+#-H- IPSLCM5A  OASIS3 tag ipslcm5a
+#-H- IPSLCM5A  IPSLCM5A svn 
+#-H- IPSLCM5A  libIGCM tag libIGCM_v2.0_beta2
+#-M- IPSLCM5A  arnaud.caubel@lsce.ipsl.fr
+#-C- IPSLCM5A  IOIPSL/tags/v2_2_1/src        HEAD         8  IOIPSL/src modeles
+#-C- IPSLCM5A  ORCHIDEE            orchidee_1_9_5         2  .          modeles
+#-C- IPSLCM5A  OASIS3                    ipslcm5a         1  prism      .
+#-C- IPSLCM5A  LMDZ4/branches/LMDZ4_AR5/     1602        11  LMDZ4      modeles
+#-C- IPSLCM5A  CONFIG/IPSLCM/IPSLCM5A        HEAD         8  IPSLCM5A   config
+#-C- IPSLCM5A  tags/libIGCM_v2.0_beta2       HEAD        10  libIGCM    .
+#-C- IPSLCM5A  branches/CMIP5_IPSL/NEMO      3205         7  .          modeles
+#-C- IPSLCM5A  branches/CMIP5_IPSL/UTIL      3205         7  .          modeles
+#-C- IPSLCM5A  XMLF90                         297        12  .          modeles
+#-C- IPSLCM5A  XMLIO_SERVER/trunk             297        12  XMLIO_SERVER       modeles
+#-
+#-H- IPSLCM5A_C  IPSLCM5A_C coupled configuration
+#-H- IPSLCM5A_C  CMIP5 with interactive carbon cycle : version 03/01/2011
+#-H- IPSLCM5A_C  NEMO svn branches/CMIP5_IPSL 2763 
+#-H- IPSLCM5A_C  XMLF90 svn trunk revision 136
+#-H- IPSLCM5A_C  XMLIO_SERVER svn trunk revision 136
+#-H- IPSLCM5A_C  IOIPSL/src svn tags/v2_2_1
+#-H- IPSLCM5A_C  LMDZ4 branches LMDZ4_AR5 revision 1483
+#-H- IPSLCM5A_C  ORCHIDEE version orchidee_1_9_5
+#-H- IPSLCM5A_C  OASIS3 tag ipslcm5a
+#-H- IPSLCM5A_C  IPSLCM5A svn 
+#-H- IPSLCM5A_C  libIGCM tag libIGCM_v2.0_beta2
+#-M- IPSLCM5A_C  arnaud.caubel@lsce.ipsl.fr
+#-C- IPSLCM5A_C  IOIPSL/tags/v2_2_1/src        HEAD         8  IOIPSL/src modeles
+#-C- IPSLCM5A_C  ORCHIDEE          orchidee_1_9_5_1         2  .          modeles
+#-C- IPSLCM5A_C  OASIS3                    ipslcm5a         1  prism      .
+#-C- IPSLCM5A_C  LMDZ4/branches/LMDZ4_AR5/     1483        11  LMDZ4      modeles
+#-C- IPSLCM5A_C  CONFIG/IPSLCM/IPSLCM5A        HEAD         8  IPSLCM5A_C config
+#-C- IPSLCM5A_C  tags/libIGCM_v2.0_beta2       HEAD        10  libIGCM    .
+#-C- IPSLCM5A_C  branches/CMIP5_IPSL/NEMO      2763         7  .          modeles
+#-C- IPSLCM5A_C  branches/CMIP5_IPSL/UTIL      2763         7  .          modeles
+#-C- IPSLCM5A_C  XMLF90                         193        12  .          modeles
+#-C- IPSLCM5A_C  XMLIO_SERVER/trunk             193        12  XMLIO_SERVER       modeles
+#-
+#-H- IPSLCM5B  IPSLCM5B coupled configuration
+#-H- IPSLCM5B  CMIP5 version 10/11/2010
+#-H- IPSLCM5B  NEMO svn branches/CMIP5_IPSL 2763 
+#-H- IPSLCM5B  XMLF90 svn trunk revision 136
+#-H- IPSLCM5B  XMLIO_SERVER svn trunk revision 136
+#-H- IPSLCM5B  IOIPSL/src svn tags/v2_2_1
+#-H- IPSLCM5B  LMDZ5 trunk revision 1458
+#-H- IPSLCM5B  ORCHIDEE version orchidee_1_9_5
+#-H- IPSLCM5B  OASIS3 tag ipslcm5a
+#-H- IPSLCM5B  IPSLCM5B svn 
+#-H- IPSLCM5B  libIGCM tag libIGCM_v2.0_beta2
+#-M- IPSLCM5B  laurent.fairhead@lmd.jussieu.fr
+#-C- IPSLCM5B  IOIPSL/tags/v2_2_1/src        HEAD         8  IOIPSL/src modeles
+#-C- IPSLCM5B  ORCHIDEE            orchidee_1_9_5         2  .          modeles
+#-C- IPSLCM5B  OASIS3                    ipslcm5a         1  prism      .
+#-C- IPSLCM5B  LMDZ5/trunk                   HEAD        11  LMDZ5      modeles
+#-C- IPSLCM5B  CONFIG/IPSLCM/IPSLCM5B        HEAD         8  IPSLCM5B   config
+#-C- IPSLCM5B  tags/libIGCM_v2.0_beta2       HEAD        10  libIGCM    .
+#-C- IPSLCM5B  branches/CMIP5_IPSL/NEMO      2763         7  .          modeles
+#-C- IPSLCM5B  branches/CMIP5_IPSL/UTIL      2763         7  .          modeles
+#-C- IPSLCM5B  XMLF90                         193        12  .          modeles
+#-C- IPSLCM5B  XMLIO_SERVER/trunk             193        12  XMLIO_SERVER       modeles
+#-
+#-H- IPSLCM5_WORK  IPSLCM5_WORK coupled configuration with NEMO as ocean component
+#-H- IPSLCM5_WORK  working configuration
+#-H- IPSLCM5_WORK  NEMO svn trunk revision 1719
+#-H- IPSLCM5_WORK  IOIPSL/src svn tags/v2_1_9
+#-H- IPSLCM5_WORK  LMDZ4 branches LMDZ4-dev-20091210 rev 1260
+#-H- IPSLCM5_WORK  ORCHIDEE tag orchidee_1_9_4_2
+#-H- IPSLCM5_WORK  OASIS3 cvs HEAD
+#-H- IPSLCM5_WORK  IPSLCM5_WORK svn branches (new tree)
+#-H- IPSLCM5_WORK  libIGCM tag libIGCM_v1_4 (10/11/09)
+#-M- IPSLCM5_WORK  arnaud.caubel@lsce.ipsl.fr
+#-C- IPSLCM5_WORK  IOIPSL/tags/v2_1_9/src HEAD         8  IOIPSL/src modeles
+#-C- IPSLCM5_WORK  ORCHIDEE               orchidee_1_9_4_2 2  .    modeles
+#-C- IPSLCM5_WORK  OASIS3                 ?            1   prism      .
+#-C- IPSLCM5_WORK  LMDZ4/branches/LMDZ4-dev-20091210   1260    11  LMDZ4      modeles
+#-C- IPSLCM5_WORK  CONFIG/IPSLCM/IPSLCM5/branches/IPSLCM5_WORK  HEAD  8  IPSLCM5    config
+#-C- IPSLCM5_WORK  trunk/libIGCM                207    10  libIGCM    .
+#-C- IPSLCM5_WORK  trunk/NEMO                  1719     7   .         modeles
+#-C- IPSLCM5_WORK  trunk/UTIL                  1719     7   .         modeles
+#-
+#-H- ORCHIDEE_SVN_HEAD  Modele ORCHIDEE pour utilisation OFFLINE
+#-H- ORCHIDEE_SVN_HEAD  ORCHIDEE trunk
+#-H- ORCHIDEE_SVN_HEAD  IOIPSL trunk
+#-H- ORCHIDEE_SVN_HEAD  libIGCM tag libIGCM_v2.0_beta2
+#-H- ORCHIDEE_SVN_HEAD  FCM svn version PATCHED/FCM_V1.2
+#-M- ORCHIDEE_SVN_HEAD  Josefine.Ghattas@ipsl.jussieu.fr
+#-C- ORCHIDEE_SVN_HEAD  IOIPSL/trunk/src       HEAD   8 IOIPSL/src      modeles
+#-C- ORCHIDEE_SVN_HEAD  tags/libIGCM_v2.0_beta2 HEAD 10 libIGCM         .
+#-C- ORCHIDEE_SVN_HEAD  PATCHED/FCM_V1.2       HEAD  13 tools/FCM/V1.2  .
+#-C- ORCHIDEE_SVN_HEAD  trunk/ORCHIDEE                 ?       14 .
+#-C- ORCHIDEE_SVN_HEAD  trunk/ORCHIDEE_OL              ?       14 .
+#-C- ORCHIDEE_SVN_HEAD  trunk/ORCHIDEE_OL/OOL_SEC_STO  ?       14 config/ORCHIDEE_OL/OOL_SEC_STO .
+#-C- ORCHIDEE_SVN_HEAD  trunk/ORCHIDEE_OL/OOL_SEC      ?       14 . config/ORCHIDEE_OL
+#-C- ORCHIDEE_SVN_HEAD  trunk/ORCHIDEE_OL/FORCESOIL    ?       14 . config/ORCHIDEE_OL
+#-C- ORCHIDEE_SVN_HEAD  trunk/ORCHIDEE_OL/TESTSTOMATE  ?       14 . config/ORCHIDEE_OL
+#-C- ORCHIDEE_SVN_HEAD  trunk/ORCHIDEE_OL/SPINUP       ?       14 . config/ORCHIDEE_OL
+#-C- ORCHIDEE_SVN_HEAD  trunk/ORCHIDEE_OL/ENSEMBLE     ?       14 . config/ORCHIDEE_OL
+#-C- ORCHIDEE_SVN_HEAD  trunk/ORCHIDEE_OL/FLUXNET      ?       14 . config/ORCHIDEE_OL
+#-
+#-H- ORCHIDEE_SVN_DEV  Modele ORCHIDEE pour utilisation OFFLINE
+#-H- ORCHIDEE_SVN_DEV  ORCHIDEE trunk
+#-H- ORCHIDEE_SVN_DEV  IOIPSL with tag 2.2.1
+#-H- ORCHIDEE_SVN_DEV  libIGCM tag libIGCM_v2.0_beta2
+#-H- ORCHIDEE_SVN_DEV  FCM svn version PATCHED/FCM_V1.2
+#-M- ORCHIDEE_SVN_DEV  Josefine.Ghattas@ipsl.jussieu.fr
+#-C- ORCHIDEE_SVN_DEV  IOIPSL/tags/v2_2_1/src HEAD   8 IOIPSL/src      modeles
+#-C- ORCHIDEE_SVN_DEV  tags/libIGCM_v2.0_beta2 HEAD  10 libIGCM         .
+#-C- ORCHIDEE_SVN_DEV  PATCHED/FCM_V1.2       HEAD  13 tools/FCM/V1.2  .
+#-C- ORCHIDEE_SVN_DEV  perso/yourlogin/ORCHIDEE                 ?       15 .
+#-C- ORCHIDEE_SVN_DEV  perso/yourlogin/ORCHIDEE_OL              ?       15 .
+#-C- ORCHIDEE_SVN_DEV  perso/yourlogin/ORCHIDEE_OL/OOL_SEC_STO  ?       15 config/ORCHIDEE_OL/OOL_SEC_STO .
+#-C- ORCHIDEE_SVN_DEV  perso/yourlogin/ORCHIDEE_OL/OOL_SEC      ?       15 . config/ORCHIDEE_OL
+#-C- ORCHIDEE_SVN_DEV  perso/yourlogin/ORCHIDEE_OL/FORCESOIL    ?       15 . config/ORCHIDEE_OL
+#-C- ORCHIDEE_SVN_DEV  perso/yourlogin/ORCHIDEE_OL/TESTSTOMATE  ?       15 . config/ORCHIDEE_OL
+#-C- ORCHIDEE_SVN_DEV  perso/yourlogin/ORCHIDEE_OL/SPINUP       ?       15 . config/ORCHIDEE_OL
+#-C- ORCHIDEE_SVN_DEV  perso/yourlogin/ORCHIDEE_OL/ENSEMBLE     ?       15 . config/ORCHIDEE_OL
+#-C- ORCHIDEE_SVN_DEV  perso/yourlogin/ORCHIDEE_OL/FLUXNET      ?       15 . config/ORCHIDEE_OL
+#-
+#-H- ORCHIDEE_AR5  Modele ORCHIDEE AR5 pour utilisation OFFLINE
+#-H- ORCHIDEE_AR5  ORCHIDEE with tag orchidee_1_9_5
+#-H- ORCHIDEE_AR5  ORCHIDEE_OL with tag OOL_1_9_5
+#-H- ORCHIDEE_AR5  ORCHIDEE_OL SCRIPTS with no tag
+#-H- ORCHIDEE_AR5  IOIPSL with tag 2.2.1
+#-H- ORCHIDEE_AR5  libIGCM tag libIGCM_v2.0_beta2
+#-H- ORCHIDEE_AR5  FCM svn version PATCHED/FCM_V1.2
+#-M- ORCHIDEE_AR5  Josefine.Ghattas@ipsl.jussieu.fr
+#-C- ORCHIDEE_AR5  IOIPSL/tags/v2_2_1/src   HEAD            8  IOIPSL/src modeles
+#-C- ORCHIDEE_AR5  tags/libIGCM_v2.0_beta2  HEAD            10 libIGCM .
+#-C- ORCHIDEE_AR5  PATCHED/FCM_V1.2         HEAD            13 tools/FCM/V1.2  .
+#-C- ORCHIDEE_AR5  ORCHIDEE                 orchidee_1_9_5  2  .
+#-C- ORCHIDEE_AR5  ORCHIDEE_OL              OOL_1_9_5       2  .
+#-C- ORCHIDEE_AR5  ORCHIDEE_OL/OOL_SEC_STO  ?       2  . config
+#-C- ORCHIDEE_AR5  ORCHIDEE_OL/OOL_SEC      ?       2  . config
+#-C- ORCHIDEE_AR5  ORCHIDEE_OL/FORCESOIL    ?       2  . config
+#-C- ORCHIDEE_AR5  ORCHIDEE_OL/TESTSTOMATE  ?       2  . config
+#-C- ORCHIDEE_AR5  ORCHIDEE_OL/SPINUP       ?       2  . config
+#-C- ORCHIDEE_AR5  ORCHIDEE_OL/FLUXNET      ?       2  . config
+#-
+#-H- ORCHIDEE_SVN_AR5 Modele ORCHIDEE AR5 pour utilisation OFFLINE
+#-H- ORCHIDEE_SVN_AR5 ORCHIDEE tag ORCHIDEE_1_9_5
+#-H- ORCHIDEE_SVN_AR5 IOIPSL with tag 2.2.1
+#-H- ORCHIDEE_SVN_AR5 libIGCM tag libIGCM_v2.0_beta2
+#-H- ORCHIDEE_SVN_AR5 FCM svn version PATCHED/FCM_V1.2
+#-M- ORCHIDEE_SVN_AR5 Josefine.Ghattas@ipsl.jussieu.fr
+#-C- ORCHIDEE_SVN_AR5 IOIPSL/tags/v2_2_1/src   HEAD            8  IOIPSL/src      modeles
+#-C- ORCHIDEE_SVN_AR5 tags/libIGCM_v2.0_beta2  HEAD            10 libIGCM         .
+#-C- ORCHIDEE_SVN_AR5 PATCHED/FCM_V1.2         HEAD            13 tools/FCM/V1.2  .
+#-C- ORCHIDEE_SVN_AR5 tags/ORCHIDEE_1_9_5/ORCHIDEE                 ?       14 .
+#-C- ORCHIDEE_SVN_AR5 tags/ORCHIDEE_1_9_5/ORCHIDEE_OL              ?       14 .
+#-C- ORCHIDEE_SVN_AR5 tags/ORCHIDEE_1_9_5/ORCHIDEE_OL/OOL_SEC_STO  ?       14 config/ORCHIDEE_OL/OOL_SEC_STO .
+#-C- ORCHIDEE_SVN_AR5 tags/ORCHIDEE_1_9_5/ORCHIDEE_OL/OOL_SEC      ?       14 . config/ORCHIDEE_OL
+#-C- ORCHIDEE_SVN_AR5 tags/ORCHIDEE_1_9_5/ORCHIDEE_OL/FORCESOIL    ?       14 . config/ORCHIDEE_OL
+#-C- ORCHIDEE_SVN_AR5 tags/ORCHIDEE_1_9_5/ORCHIDEE_OL/TESTSTOMATE  ?       14 . config/ORCHIDEE_OL
+#-C- ORCHIDEE_SVN_AR5 tags/ORCHIDEE_1_9_5/ORCHIDEE_OL/SPINUP       ?       14 . config/ORCHIDEE_OL
+#-C- ORCHIDEE_SVN_AR5 tags/ORCHIDEE_1_9_5/ORCHIDEE_OL/FLUXNET      ?       14 . config/ORCHIDEE_OL
+#-
+#-H- ORCHIDEE_TAG Modele ORCHIDEE last TAG pour utilisation OFFLINE
+#-H- ORCHIDEE_TAG ORCHIDEE tag ORCHIDEE_1_9_6
+#-H- ORCHIDEE_TAG IOIPSL trunk
+#-H- ORCHIDEE_TAG libIGCM tag libIGCM_v2.0_beta2
+#-H- ORCHIDEE_TAG FCM svn version PATCHED/FCM_V1.2
+#-M- ORCHIDEE_TAG Josefine.Ghattas@ipsl.jussieu.fr
+#-C- ORCHIDEE_TAG IOIPSL/trunk/src           HEAD            8  IOIPSL/src      modeles
+#-C- ORCHIDEE_TAG tags/libIGCM_v2.0_beta2  HEAD            10 libIGCM         .
+#-C- ORCHIDEE_TAG PATCHED/FCM_V1.2         HEAD            13 tools/FCM/V1.2  .
+#-C- ORCHIDEE_TAG tags/ORCHIDEE_1_9_6/ORCHIDEE                 ?       14 .
+#-C- ORCHIDEE_TAG tags/ORCHIDEE_1_9_6/ORCHIDEE_OL              ?       14 .
+#-C- ORCHIDEE_TAG tags/ORCHIDEE_1_9_6/ORCHIDEE_OL/OOL_SEC_STO  ?       14 config/ORCHIDEE_OL/OOL_SEC_STO .
+#-C- ORCHIDEE_TAG tags/ORCHIDEE_1_9_6/ORCHIDEE_OL/OOL_SEC      ?       14 . config/ORCHIDEE_OL
+#-C- ORCHIDEE_TAG tags/ORCHIDEE_1_9_6/ORCHIDEE_OL/FORCESOIL    ?       14 . config/ORCHIDEE_OL
+#-C- ORCHIDEE_TAG tags/ORCHIDEE_1_9_6/ORCHIDEE_OL/TESTSTOMATE  ?       14 . config/ORCHIDEE_OL
+#-C- ORCHIDEE_TAG tags/ORCHIDEE_1_9_6/ORCHIDEE_OL/SPINUP       ?       14 . config/ORCHIDEE_OL
+#-C- ORCHIDEE_TAG tags/ORCHIDEE_1_9_6/ORCHIDEE_OL/ENSEMBLE     ?       14 . config/ORCHIDEE_OL
+#-C- ORCHIDEE_TAG tags/ORCHIDEE_1_9_6/ORCHIDEE_OL/FLUXNET      ?       14 . config/ORCHIDEE_OL
+#-
+#-H- LMDZOR_v4  LMDZ and ORCHIDEE (closest version to IPSLCM5A)
+#-H- LMDZOR_v4  This configuration can be used with LMDZ4 or LMDZ5(default)
+#-M- LMDZOR_v4  Josefine.Ghattas@ipsl.jussieu.fr
+#-C- LMDZOR_v4  IOIPSL/tags/v2_2_1/src            HEAD               8  IOIPSL/src modeles
+#-C- LMDZOR_v4  ORCHIDEE                          orchidee_1_9_5     2  .          modeles
+#-C- LMDZOR_v4  LMDZ5/trunk                       1575               11 LMDZ       modeles
+####-C- LMDZOR_v4  LMDZ4/branches/LMDZ4_AR5       HEAD               11 LMDZ       modeles
+#-C- LMDZOR_v4  CONFIG/LMDZOR/branches/LMDZOR_v4  HEAD               8  LMDZOR_v4  config
+#-C- LMDZOR_v4  tags/libIGCM_v2.0_beta2           HEAD               10 libIGCM    .
+#
+#-H- LMDZREPR  LMDZ and REBROBUS working configuration
+#-M- LMDZREPR  Josefine.Ghattas@ipsl.jussieu.fr
+#-C- LMDZREPR  IOIPSL/tags/v2_2_1/src               HEAD               8  IOIPSL/src modeles
+#-C- LMDZREPR  LMDZ5/trunk                          HEAD               11 LMDZ       modeles
+#-C- LMDZREPR  trunk                                HEAD               16 REPROBUS   modeles
+#-C- LMDZREPR  CONFIG/LMDZREPR/branches/LMDZREPR_v1 HEAD               8  LMDZREPR   config
+#-C- LMDZREPR  tags/libIGCM_v2.0_beta2              HEAD               10 libIGCM    .
+#
+#
+#-H- LMDZORINCA  LMDZ4 with ORCHIDEE and INCA (closest version to IPSLCM5A):
+#-H- LMDZORINCA  ORCHIDEE tag orchidee_1_9_5
+#-H- LMDZORINCA  INCA trunk INCA3 rev 245
+#-H- LMDZORINCA  LMDZ4 LMDZ4/branches/LMDZ4_AR5/  
+#-H- LMDZORINCA  LMDZ5 (CREATE_E0) for ce0l LMDZ5/trunk 1531	
+#-H- LMDZORINCA  IOIPSL/src svn tags/v2_2_1
+#-H- LMDZORINCA  libIGCM tag libIGCM_v1_7
+#-M- LMDZORINCA  Anne.Cozic@lsce.ipsl.fr
+#-C- LMDZORINCA  IOIPSL/tags/v2_2_1/src			HEAD			8	IOIPSL/src	modeles
+#-C- LMDZORINCA  ORCHIDEE				orchidee_1_9_5		2	.		modeles
+########-C- LMDZORINCA  LMDZ5/trunk				1575			11 	LMDZ		modeles
+#-C- LMDZORINCA  LMDZ5/trunk				1531			11	CREATE_E0	modeles
+#-C- LMDZORINCA  LMDZ4/branches/LMDZ4_AR5/     		1567   			11	LMDZ		modeles
+#-C- LMDZORINCA  trunk/INCA3				255			9	INCA3		modeles
+#-C- LMDZORINCA  tags/libIGCM_v2.0_beta1		HEAD			10	libIGCM		.
+#-C- LMDZORINCA  CONFIG/LMDZORINCA/tags/LMDZORINCA_v2	HEAD			8	LMDZORINCA	config
+#-
+#-H- LMDZORINCA_WORK  Dev version
+#-H- LMDZORINCA_WORK  LMDZ4 with ORCHIDEE and INCA :
+#-H- LMDZORINCA_WORK  ORCHIDEE tag orchidee_1_9_5
+#-H- LMDZORINCA_WORK  INCA trunk INCA3
+#-H- LMDZORINCA_WORK  LMDZ4 trunk
+#-H- LMDZORINCA_WORK  IOIPSL/src svn tags/v2_2_1
+#-H- LMDZORINCA_WORK  libIGCM trunk 
+#-M- LMDZORINCA_WORK  Anne.Cozic@lsce.ipsl.fr
+#-C- LMDZORINCA_WORK  IOIPSL/tags/v2_2_1/src			HEAD			8	IOIPSL/src	modeles
+#-C- LMDZORINCA_WORK  ORCHIDEE					orchidee_1_9_5		2	.		modeles
+#-C- LMDZORINCA_WORK  LMDZ4/branches/LMDZ4_AR5/    		1567			11	LMDZ4		modeles
+#-C- LMDZORINCA_WORK  trunk/INCA4				HEAD			9	.		modeles
+#-C- LMDZORINCA_WORK  tags/libIGCM_v2.0_beta1			HEAD			10	libIGCM		.
+#-C- LMDZORINCA_WORK  CONFIG/LMDZORINCA/tags/LMDZORINCA_v4_1	HEAD			8	LMDZORINCA	config
+#-
+#-H- LMDZ4INCA  Obsolete version
+#-H- LMDZ4INCA  LMDZ with INCA :
+#-H- LMDZ4INCA  closest version to the IPSL coupled model IPSLCM4_v1_OASIS3
+#-H- LMDZ4INCA  LMDZ4 V2_patch
+#-H- LMDZ4INCA  INCA.2 reference version
+#-H- LMDZ4INCA  IOIPSL tag ioipsl-2-0
+#-M- LMDZ4INCA  Anne.Cozic@lsce.ipsl.fr
+#-C- LMDZ4INCA  IOIPSL/src  ioipsl-2-0        1  .  modeles
+#-C- LMDZ4INCA  INCA.2      ?                 6  .  modeles
+#-C- LMDZ4INCA  LMDZ4       LMDZ4_V2_patch    3  .  modeles
+#-C- LMDZ4INCA  LMDZ4INCA   ?                 1  .  config
+#-
+#-H- LMDZINCA_v2  Obsolete version
+#-H- LMDZINCA_v2  LMDZ with INCA :
+#-H- LMDZINCA_v2  closest version to the IPSL coupled model IPSLCM4_v2
+#-H- LMDZINCA_v2  LMDZ4 Tag LMDZ4_V3_patches
+#-H- LMDZINCA_v2  INCA3 tags v2_2
+#-H- LMDZINCA_v2  IOIPSL/src svn tags/v2_1_3
+#-H- LMDZINCA_v2  libIGCM tag libIGCM_v1_1
+#-M- LMDZINCA_v2  Anne.Cozic@lsce.ipsl.fr
+#-C- LMDZINCA_v2  IOIPSL/tags/v2_1_3/src                HEAD              8   IOIPSL/src  modeles
+#-C- LMDZINCA_v2  tags/v2_2/INCA3                       ?                 9   .           modeles
+#-C- LMDZINCA_v2  LMDZ4                                 LMDZ4_V3_patches  3   .           modeles
+#-C- LMDZINCA_v2  tags/libIGCM_v1_1                     ?                 10  libIGCM     .
+#-C- LMDZINCA_v2  CONFIG/LMDZINCA/tags/LMDZINCA_v2_2    ?                 8   LMDZINCA_v2 config
+#-
+#-H- LMDZINCA_v3  Obsolete version
+#-H- LMDZINCA_v3  LMDZ with INCA :
+#-H- LMDZINCA_v3  LMDZINCA configuration with MPI and OpenMP parallel LMDZ4 and INCA3
+#-H- LMDZINCA_v3  LMDZ4 trunk rev 1398
+#-H- LMDZINCA_v3  INCA trunk INCA3 rev 176
+#-H- LMDZINCA_v3  IOIPSL/src svn tags/v2_2_1
+#-H- LMDZINCA_v3  libIGCM tag libIGCM_v1_7
+#-M- LMDZINCA_v3  Anne.Cozic@lsce.ipsl.fr
+#-C- LMDZINCA_v3  IOIPSL/tags/v2_2_1/src			HEAD		8	IOIPSL/src	modeles
+#-C- LMDZINCA_v3  trunk/INCA3					218		9	.		modeles
+#-C- LMDZINCA_v3  LMDZ4/branches/LMDZ4_AR5/     		1567		11	LMDZ4		modeles
+#-C- LMDZINCA_v3  tags/libIGCM_v1_11				HEAD		10	libIGCM		.
+#-C- LMDZINCA_v3  CONFIG/LMDZINCA/branches/LMDZINCA_v3_2	HEAD		8	LMDZINCA_v3	config
+#-
+#-H- IPSL_ESM_V1  Obsolete version
+#-H- IPSL_ESM_V1  IPSL_ESM_V1 configuration with parallel LMDZ4 ORCHIDEE and INCA
+#-H- IPSL_ESM_V1  working configuration
+#-H- IPSL_ESM_V1  ORCA tag ipsl_cm4_v1_11
+#-H- IPSL_ESM_V1  IOIPSL/src svn tags/v2_1_3
+#-H- IPSL_ESM_V1  LMDZ4 tag LMDZ4_V3_patches
+#-H- IPSL_ESM_V1  INCA3 tag v2_2
+#-H- IPSL_ESM_V1  ORCHIDEE tag ORCHIDEE_1_9_2
+#-H- IPSL_ESM_V1  OASIS3 tag ipslcm4_v2
+#-H- IPSL_ESM_V1  libIGCM tag libIGCM_v1_1
+#-H- IPSL_ESM_V1  IPSLCM4_v2 svn new scripts     
+#-M- IPSL_ESM_V1  anne.cozic@lsce.ipsl.fr 
+#-C- IPSL_ESM_V1  IOIPSL/tags/v2_1_3/src       	                   HEAD              8 IOIPSL/src  modeles
+#-C- IPSL_ESM_V1  ORCHIDEE                                         orchidee_1_9_2    2 .           modeles
+#-C- IPSL_ESM_V1  OASIS3                                           ipslcm4_v2        1 prism       .
+#-C- IPSL_ESM_V1  LMDZ4                                            LMDZ4_V3_patches  3 .           modeles
+#-C- IPSL_ESM_V1  tags/v2_2/INCA3                                  ?                 9 .           modeles
+#-C- IPSL_ESM_V1  CONFIG/IPSL_ESM/IPSL_ESM_v1/tags/IPSL_ESM_v1_2   ?                 8 IPSL_ESM_V1 config
+#-C- IPSL_ESM_V1  tags/libIGCM_v1_1                                ?                 10 libIGCM    .
+#-C- IPSL_ESM_V1  OPA/SRC_ORCA                                     ipsl_cm4_v2       4 .           modeles
+#-C- IPSL_ESM_V1  OPA/SRC_UCL                  	                   ipsl_cm4_v2       4 .           modeles
+#-C- IPSL_ESM_V1  UTIL/fait_AA_make            	                   ipsl_cm4_v1_8     4 .           modeles
+#-
+#-H- IPSL_ESM_v2  Obsolete version
+#-H- IPSL_ESM_v2  IPSL_ESM_v2 same configuration than ISPLCM5_WORK with aerosol cycle
+#-H- IPSL_ESM_v2  working configuration
+#-H- IPSL_ESM_v2  NEMO svn tags/nemo_v3_1
+#-H- IPSL_ESM_v2  IOIPSL/src svn tags/v2_1_8
+#-H- IPSL_ESM_v2  LMDZ4 branches LMDZ4-dev-20091210 
+#-H- IPSL_ESM_v2  ORCHIDEE tag orchidee_1_9_2
+#-H- IPSL_ESM_v2  OASIS3 tag HEAD
+#-H- IPSL_ESM_v2  IPSLCM5_WORK svn branches (new tree)
+#-H- IPSL_ESM_v2  INCA3 tags/v3_1
+#-H- IPSL_ESM_v2  libIGCM trunk revision 85
+#-M- IPSL_ESM_v2  anne.cozic@lsce.ipsl.fr
+#-C- IPSL_ESM_v2  IOIPSL/tags/v2_1_8/src 		HEAD         	8  	IOIPSL/src 	modeles
+#-C- IPSL_ESM_v2  ORCHIDEE               		orchidee_1_9_2	2  	.    		modeles
+#-C- IPSL_ESM_v2  OASIS3				?		1	prism		.
+#-C- IPSL_ESM_v2  LMDZ4/branches/LMDZ4-dev-20091210 	1162   		11  	LMDZ4       	modeles
+#-C- IPSL_ESM_v2  tags/v3_1/INCA3				?		9	.		modeles
+#-C- IPSL_ESM_v2  CONFIG/IPSL_ESM/IPSL_ESM_v2/trunk	HEAD		8	IPSL_ESM_v2	config
+#-C- IPSL_ESM_v2  trunk/libIGCM				85		10	libIGCM		.
+#-C- IPSL_ESM_v2  trunk/NEMO                    	1340     	7	.		modeles
+#-C- IPSL_ESM_v2  trunk/UTIL		           	HEAD     	7	.		modeles
+#-
+#-H- ORCA2  ORCA 2 degrees - no ice model
+#-H- ORCA2  ORCA tag ipsl_cm4_v1_6
+#-H- ORCA2  IOIPSL/src tag ipsl_cm4_v1_9_1
+#-M- ORCA2  opatlod@locean-ipsl.upmc.fr
+#-C- ORCA2  IOIPSL/src         ipsl_cm4_v1_9_1  1  .
+#-C- ORCA2  OPA/SRC_ORCA       ipsl_cm4_v1_6    4  .
+#-C- ORCA2  UTIL/fait_AA_make  ipsl_cm4_v1_8    4  .
+#-C- ORCA2  CONFIG/ORCA2       ?                4  ORCA2
+#-
+#-H- ORCA2_LIM  ORCA 2 degrees with Louvain Ice Model
+#-H- ORCA2_LIM  ORCA tag ipsl_cm4_v1_6
+#-H- ORCA2_LIM  LIM tag ipsl_cm4_v1_6
+#-H- ORCA2_LIM  IOIPSL/src tag ipsl_cm4_v1_9_1
+#-M- ORCA2_LIM  opatlod@locean-ipsl.upmc.fr
+#-C- ORCA2_LIM  IOIPSL/src         ipsl_cm4_v1_9_1  1  .
+#-C- ORCA2_LIM  OPA/SRC_ORCA       ipsl_cm4_v1_6    4  .
+#-C- ORCA2_LIM  OPA/SRC_UCL        ipsl_cm4_v1_6    4  .
+#-C- ORCA2_LIM  UTIL/fait_AA_make  ipsl_cm4_v1_8    4  .
+#-C- ORCA2_LIM  CONFIG/ORCA2_LIM   ?                4  ORCA2_LIM
+#-
+#-H- ORCA4_LIM  ORCA 4 degrees with Louvain Ice Model
+#-H- ORCA4_LIM  ORCA tag ipsl_cm4_v1_6
+#-H- ORCA4_LIM  LIM tag ipsl_cm4_v1_6
+#-H- ORCA4_LIM  IOIPSL/src tag ipsl_cm4_v1_9_1
+#-M- ORCA4_LIM  opatlod@locean-ipsl.upmc.fr
+#-C- ORCA4_LIM  IOIPSL/src         ipsl_cm4_v1_9_1  1  .
+#-C- ORCA4_LIM  OPA/SRC_ORCA       ipsl_cm4_v1_6    4  .
+#-C- ORCA4_LIM  OPA/SRC_UCL        ipsl_cm4_v1_6    4  .
+#-C- ORCA4_LIM  UTIL/fait_AA_make  ipsl_cm4_v1_8    4  .
+#-C- ORCA4_LIM  CONFIG/ORCA4_LIM   ?                4  ORCA4_LIM
+#-
+#-H- ORCA2_LIM_TRC  ORCA 2 degrees with Louvain Ice Model with tracers model
+#-H- ORCA2_LIM_TRC  ORCA tag ipsl_cm4_v1_6
+#-H- ORCA2_LIM_TRC  LIM tag ipsl_cm4_v1_6
+#-H- ORCA2_LIM_TRC  IOIPSL/src tag ipsl_cm4_v1_9_1
+#-M- ORCA2_LIM_TRC  opatlod@locean-ipsl.upmc.fr
+#-C- ORCA2_LIM_TRC  IOIPSL/src           ipsl_cm4_v1_9_1 1 .
+#-C- ORCA2_LIM_TRC  OPA/SRC_ORCA         ipsl_cm4_v1_6   4 .
+#-C- ORCA2_LIM_TRC  OPA/SRC_UCL          ipsl_cm4_v1_6   4 .
+#-C- ORCA2_LIM_TRC  OPA/SRC_TRC          ipsl_cm4_v1_6   4 .
+#-C- ORCA2_LIM_TRC  UTIL/fait_AA_make    ipsl_cm4_v1_8   4 .
+#-C- ORCA2_LIM_TRC  CONFIG/ORCA2_LIM_TRC ?               4 ORCA2_LIM_TRC
+#
+#-H- ORCA2_OFF_TRC  ORCA 2 degrees offline with tracers model
+#-H- ORCA2_OFF_TRC  ORCA tag ipsl_cm4_v1_6
+#-H- ORCA2_OFF_TRC  IOIPSL/src tag ipsl_cm4_v1_9_1
+#-M- ORCA2_OFF_TRC  opatlod@locean-ipsl.upmc.fr
+#-C- ORCA2_OFF_TRC  IOIPSL/src           ipsl_cm4_v1_9_1 1 .
+#-C- ORCA2_OFF_TRC  OPA/SRC_OFFLINE_TRC  ipsl_cm4_v1_6   4 .
+#-C- ORCA2_OFF_TRC  OPA/SRC_TRC          ipsl_cm4_v1_6   4 .
+#-C- ORCA2_OFF_TRC  UTIL/fait_AA_make    ipsl_cm4_v1_8   4 .
+#-C- ORCA2_OFF_TRC  CONFIG/ORCA2_OFF_TRC ?               4 ORCA2_OFF_TRC
+#-
+#-H- EEL2  EEL2 configuration - no ice model
+#-H- EEL2  ORCA tag ipsl_cm4_v1_6
+#-H- EEL2  IOIPSL/src tag ipsl_cm4_v1_9_1
+#-M- EEL2  opatlod@locean-ipsl.upmc.fr
+#-C- EEL2  IOIPSL/src         ipsl_cm4_v1_9_1  1  .
+#-C- EEL2  OPA/SRC_ORCA       ipsl_cm4_v1_6    4  .
+#-C- EEL2  UTIL/fait_AA_make  ipsl_cm4_v1_8    4  .
+#-C- EEL2  CONFIG/EEL2        ?                4  EEL2
+#-
+#-H- EEL2_LOBSTER1  EEL2_LOBSTER1 configuration, EEL2+tracers - no ice model
+#-H- EEL2_LOBSTER1  ORCA tag ipsl_cm4_v1_6
+#-H- EEL2_LOBSTER1  IOIPSL/src tag ipsl_cm4_v1_9_1
+#-M- EEL2_LOBSTER1  opatlod@locean-ipsl.upmc.fr
+#-C- EEL2_LOBSTER1  IOIPSL/src           ipsl_cm4_v1_9_1 1 .
+#-C- EEL2_LOBSTER1  OPA/SRC_ORCA         ipsl_cm4_v1_6   4 .
+#-C- EEL2_LOBSTER1  OPA/SRC_TRC          ipsl_cm4_v1_6   4 .
+#-C- EEL2_LOBSTER1  UTIL/fait_AA_make    ipsl_cm4_v1_8   4 .
+#-C- EEL2_LOBSTER1  CONFIG/EEL2_LOBSTER1 ?               4 EEL2_LOBSTER1
+#-
+#-H- EEL6  EEL6 configuration - no ice model
+#-H- EEL6  ORCA tag ipsl_cm4_v1_6
+#-H- EEL6  IOIPSL/src tag ipsl_cm4_v1_9_1
+#-M- EEL6  opatlod@locean-ipsl.upmc.fr
+#-C- EEL6  IOIPSL/src         ipsl_cm4_v1_9_1  1  .
+#-C- EEL6  OPA/SRC_ORCA       ipsl_cm4_v1_6    4  .
+#-C- EEL6  UTIL/fait_AA_make  ipsl_cm4_v1_8    4  .
+#-C- EEL6  CONFIG/EEL6        ?                4  EEL6
+#-
+#-H- EEL6_LOBSTER1  EEL6_LOBSTER1 configuration, EEL6+tracers - no ice model
+#-H- EEL6_LOBSTER1  ORCA tag ipsl_cm4_v1_6
+#-H- EEL6_LOBSTER1  IOIPSL/src tag ipsl_cm4_v1_9_1
+#-M- EEL6_LOBSTER1  opatlod@locean-ipsl.upmc.fr
+#-C- EEL6_LOBSTER1  IOIPSL/src           ipsl_cm4_v1_9_1 1 .
+#-C- EEL6_LOBSTER1  OPA/SRC_ORCA         ipsl_cm4_v1_6   4 .
+#-C- EEL6_LOBSTER1  OPA/SRC_TRC          ipsl_cm4_v1_6   4 .
+#-C- EEL6_LOBSTER1  UTIL/fait_AA_make    ipsl_cm4_v1_8   4 .
+#-C- EEL6_LOBSTER1  CONFIG/EEL6_LOBSTER1 ?               4 EEL6_LOBSTER1
+#-
+#-M- TOY  foujols@ipsl.jussieu.fr
+#-C- TOY  TOY  ?  1  .
+#-C- TOY  CPL  ?  1  .
+#-
+#-H- ORCA_TOYATM  Modele couple ORCA4 - TOYATM
+#-H- ORCA_TOYATM  ORCA tag ipsl_cm4_v1_10
+#-H- ORCA_TOYATM  IOIPSL/src tag ioipsl-2-1
+#-H- ORCA_TOYATM  ORCA_TOYATM configuration with OASIS3 coupler 06/2005
+#-M- ORCA_TOYATM  arnaud.caubel@cea.fr
+#-C- ORCA_TOYATM  IOIPSL/src         ioipsl-2-1    1 .      modeles
+#-C- ORCA_TOYATM  OASIS3             ?             1 prism  .
+#-C- ORCA_TOYATM  TOY/ATM            ?             1 TOYATM modeles
+#-C- ORCA_TOYATM  ORCA_TOYATM        ?             1 .      config
+#-C- ORCA_TOYATM  OPA/SRC_ORCA      ipsl_cm4_v1_10 4 .      modeles
+#-C- ORCA_TOYATM  OPA/SRC_UCL       ipsl_cm4_v1_10 4 .      modeles
+#-C- ORCA_TOYATM  UTIL/fait_AA_make ipsl_cm4_v1_8  4 .      modeles
+#-
+#-H- NEMO  NEMO
+#-H- NEMO  OPA 
+#-H- NEMO  LIM 
+#-H- NEMO  TOP 
+#-H- NEMO  IOIPSL/src - svn - tag v2_2_1
+#-H- NEMO  NEMO sources and configurations - svn - branch CMIP5_IPSL
+#-H- NEMO  XMLF90 svn trunk revision 193
+#-H- NEMO  XMLIO_SERVER svn trunk revision 193
+#-H- NEMO  libIGCM tag libIGCM_v2.0_beta2
+#-M- NEMO  nemo_st@locean-ipsl.upmc.fr
+#-C- NEMO  IOIPSL/tags/v2_2_1/src                             HEAD  8  IOIPSL/src             modeles
+#-C- NEMO  XMLF90                                              193  12 XMLF90                 modeles
+#-C- NEMO  XMLIO_SERVER/trunk                                  193  12 XMLIO_SERVER           modeles
+#-C- NEMO  branches/CMIP5_IPSL/EXTERNAL/XMLF90                HEAD  7  XMLF90/external        modeles
+#-C- NEMO  branches/CMIP5_IPSL/EXTERNAL/XMLIO_SERVER          HEAD  7  XMLIO_SERVER/external  modeles
+#-C- NEMO  tags/libIGCM_v2.0_beta2                            HEAD  10 libIGCM                .
+#-C- NEMO  branches/CMIP5_IPSL/AGRIF                          HEAD  7  .                      modeles
+#-C- NEMO  branches/CMIP5_IPSL/NEMO                           HEAD  7  .                      modeles
+#-C- NEMO  branches/CMIP5_IPSL/UTIL                           HEAD  7  .                      modeles
+#-C- NEMO  branches/CMIP5_IPSL/CONFIG/GYRE                    HEAD  7  GYRE                   config
+#-C- NEMO  branches/CMIP5_IPSL/CONFIG/GYRE_LOBSTER            HEAD  7  GYRE_LOBSTER           config
+#-C- NEMO  branches/CMIP5_IPSL/CONFIG/ORCA2_LIM               HEAD  7  ORCA2_LIM              config
+#-C- NEMO  branches/CMIP5_IPSL/CONFIG/ORCA2_LIM_PISCES        HEAD  7  ORCA2_LIM_PISCES       config
+#-C- NEMO  branches/CMIP5_IPSL/CONFIG/ORCA2_OFF_PISCES        HEAD  7  ORCA2_OFF_PISCES       config
+#-C- NEMO  branches/CMIP5_IPSL/CONFIG/POMME                   HEAD  7  POMME                  config
+#-C- NEMO  branches/CMIP5_IPSL/CONFIG/ORCA2_LIM/EXP00         HEAD  7  PARAM                  config/ORCA2_LIM/IGCM00
+#-C- NEMO  branches/CMIP5_IPSL/CONFIG/ORCA2_LIM_PISCES/EXP00  HEAD  7  PARAM                  config/ORCA2_LIM_PISCES/IGCM00
+#-C- NEMO  branches/CMIP5_IPSL/CONFIG/ORCA2_OFF_PISCES/EXP00  HEAD  7  PARAM                  config/ORCA2_OFF_PISCES/IGCM00
+#-
+#-H- NEMOTAM  NEMO
+#-H- NEMOTAM  NEMOTAM
+#-H- NEMOTAM  OPA
+#-H- NEMOTAM  LIM
+#-H- NEMOTAM  TOP
+#-H- NEMOTAM  IOIPSL/src - svn - tag v2_1_4
+#-H- NEMOTAM  NEMO sources and configurations - svn - branch nemo_v3.2.2.2
+#-M- NEMOTAM  nemo_st@locean-ipsl.upmc.fr
+#-C- NEMOTAM  IOIPSL/tags/v2_1_9/src                       HEAD  8  IOIPSL/src             modeles
+#-C- NEMOTAM  branches/TAM_v3_2_2/AGRIF                          HEAD  7  .                      modeles
+#-C- NEMOTAM  branches/TAM_v3_2_2/NEMO                           HEAD  7  .                      modeles
+#-C- NEMOTAM  branches/TAM_v3_2_2/NEMOTAM                        HEAD  7  .                      modeles
+#-C- NEMOTAM  branches/TAM_v3_2_2/UTIL                           HEAD  7  .                      modeles
+#-C- NEMOTAM  branches/TAM_v3_2_2/CONFIG/ORCA2_TAM               HEAD  7  ORCA2_TAM              config
Index: /modipsl/branches/newconfig/util/model
===================================================================
--- /modipsl/branches/newconfig/util/model	(revision 1722)
+++ /modipsl/branches/newconfig/util/model	(revision 1722)
@@ -0,0 +1,406 @@
+#!/bin/ksh
+#- $Id$
+#---------------------------------------------------------------------
+# @(#)Actions concerning IPSL models
+#---------------------------------------------------------------------
+#set -xv
+MAIL_ADDRESS=patricia.cadule@ipsl.jussieu.fr
+MAIL_COM=mail
+#MAIL_COM=Mail
+#-
+#     Dirname     and      Basename
+#-
+d_n=$(dirname ${0}); b_n=$(basename ${0});
+#-
+# Retrieve and validate the options
+#-
+m_n=""; m_a="checkout"; m_v='silencious'; no_tag='false';
+while getopts :hevH V
+  do
+    case $V in
+      (h)  m_a='help';;
+      (e)  m_a='checkout';;
+      (v)  m_v='verbose';;
+      (H)  no_tag='true';;
+      (:)  echo ${b_n}" : option $OPTARG : missing value" 1>&2;
+           exit 2;;
+      (\?) echo ${b_n}" : option $OPTARG : not supported" 1>&2;
+           exit 2;;
+    esac
+  done
+shift $(($OPTIND-1));
+#-
+# Validate the action
+#-
+[[ ${m_a} = help || ${m_a} = checkout ]] || \
+ {
+  echo 'Action '"${m_a}"' not supported' 1>&2;
+  echo 'Try "'${b_n}' -h [model-name]"' 1>&2;
+  exit 4;
+ }
+#-
+# Retrieve the model name
+#-
+[[ ${#} -gt 1 ]] && \
+  { echo 'Only one model can be specified' 1>&2; exit 3; }
+[[ ${#} -eq 1 ]] && { m_n="${1}"; }
+[[ ${m_a} != 'help' && -z ${m_n} ]] && \
+ {
+  echo 'Model not specified' 1>&2;
+  echo 'Try "'${b_n}' -h [model-name]"' 1>&2;
+  exit 3;
+ }
+#-
+# Test availability of the definition file
+#-
+F_DEF=${d_n}'/mod.def'
+[[ ! -f "${F_DEF}" ]] && { echo "${F_DEF} unreachable ..."; exit 3; }
+#-
+# Extract the names of the supported models
+#-
+qi=0;
+while read v0 v1 v2
+  do
+    [[ -n "${v0}" && "${v0}" = '#-C-' ]] && \
+     {
+      i_m=-1;
+      qa=0; while (( ${qa} < ${#m_x[@]} ))
+       do
+         ((qa=qa+1));
+         [[ -n "${v1}" && "${v1}" = ${m_x[${qa}]} ]] && \
+          { i_m=${qa}; break; };
+       done
+      (( ${i_m} < 0 )) && { ((qi=qi+1)); m_x[${qi}]=${v1}; };
+     }
+  done <${F_DEF}
+unset v0 v1 v2;
+#-
+# Model name validation and data retrieving
+#-
+[[ -n "${m_n}" ]] && \
+  {
+    #- Validate the model name
+    i_m=-1;
+    qi=0; while (( ${qi} < ${#m_x[@]} ))
+      do
+        ((qi=qi+1));
+        [[ ${m_n} = ${m_x[${qi}]} ]] && { i_m=${qi}; break; };
+      done
+    (( ${i_m} < 0 )) && \
+     { echo 'Model '"${m_n}"' unknown' 1>&2;
+       echo 'Try "'${b_n}' -h"' 1>&2; exit 3; }
+    #- Extract the repository informations
+    #- ( index, repository system, servers address )
+    while read v0 v1 v2 v3
+      do
+        [[ -n "${v0}" && "${v0}" = '#-S-' ]] && \
+         { r_p[${v1}]=${v2}; r_s[${v1}]=${v3}; }
+      done <${F_DEF}
+    unset v0 v1 v2 v3;
+    #- Extract the model informations
+    qi=0;
+    while read v0 v1 v2 v3 v4 v5 v6
+      do
+        [[ -n "${v1}" && "${v1}" = "${m_n}" ]] && \
+         {
+          #- model manager email address
+          [[ "${v0}" = '#-M-' ]] && { m_m=${v2}; continue; }
+          #- elements for the model component
+          [[ "${v0}" = '#-C-' ]] && \
+           {
+            ((qi=qi+1));
+            [[ -z "${v2}" ]] && \
+             {
+              echo 'Component not found for '${m_n};
+              exit 3;
+             }
+            m_c[${qi}]=${v2};
+            [[ -z "${v3}" ]] && \
+             {
+              echo 'Tag not found for component '${v2}' of '${m_n};
+              exit 3;
+             }
+            [[ ${no_tag} = 'false' ]] && \
+             { m_t[${qi}]=${v3}; }    || \
+             { m_t[${qi}]='?'; }
+            [[ -z "${v4}" ]] && \
+             {
+              echo 'Repository index not found for '${m_n};
+              exit 3;
+             }
+            m_p[${qi}]=${r_p[${v4}]};
+            [[ ${m_p[${qi}]} = svn || ${m_p[${qi}]} = cvs ]] || \
+             {
+              echo 'Control system '"${m_p[${qi}]}"' not supported' 1>&2;
+              exit 3;
+             }
+            m_s[${qi}]=${r_s[${v4}]};
+            [[ -z "${m_s[${qi}]}" ]] && \
+             {
+              echo 'Server '${v4}'  not found for '${m_n};
+              exit 3;
+             }
+            m_d[${qi}]=${v5};
+            [[ -z "${m_d[${qi}]}" ]] && { m_d[${qi}]="."; }
+            m_l[${qi}]=${v6};
+            [[ -z "${m_l[${qi}]}" ]] && { m_l[${qi}]="modeles"; }
+           }
+         }
+      done <${F_DEF}
+    unset v0 v1 v2 v3 v4 v5 v6
+    #- Validate the model informations
+    #- model manager email address
+    [[ -z "${m_m}" ]] && \
+     { echo 'Manager email address not found for '${m_n}; exit 3; }
+    #- model components
+    [[ ${#m_c[@]} = 0 ]] && \
+     { echo 'Components not found for '${m_n}; exit 3; }
+  }
+#-
+# send an email at the first use of modipsl
+# ie directory ~/.modipsl does not exist
+#-
+D_LOG=${HOME}/.modipsl
+[[ -d "${D_LOG}" ]] || \
+ {
+  mkdir "${D_LOG}";
+  echo $(date +"%D %T") $(whoami) $(uname -m) \
+    first use of model | \
+    ${MAIL_COM} -s "first use of modipsl" \
+    ${MAIL_ADDRESS} >/dev/null 2>&1;
+   echo $(date +"%D %T") creation >"${D_LOG}"/first;
+  }
+#-
+# "help" action
+#-
+[[ ${m_a} = 'help' ]] && \
+ {
+  echo ' ';
+  if [ -z "${m_n}" ]; then
+    echo ${b_n} 'extracts the components of a model';
+    echo ' ';
+    echo 'Usage    :';
+    echo ${b_n} '[-h]';
+    echo ${b_n} '[-h] model_name';
+    echo ${b_n} '[-e] [-H] [-v] model_name';
+    echo 'h            : this help';
+    echo 'h model-name : help on model';
+    echo 'e            : extract model';
+    echo 'H            : suppress the tags and take the HEAD version';
+    echo 'v            : verbose mode';
+    echo 'Defaults     : -e';
+    echo ' ';
+    echo 'model_name in :';
+    qi=0; while (( ${qi} < ${#m_x[@]} ));
+      do ((qi=qi+1)); echo ${m_x[${qi}]}; done
+  else
+    echo 'model : '${m_n};
+    echo ' ';
+    while read v0 v1 v2
+     do
+       [[ -n "${v0}" && "${v0}" = '#-H-' && \
+          -n "${v1}" && "${v1}" = "${m_n}" ]] && { echo ${v2}; }
+     done <${F_DEF}
+    unset v0 v1 v2;
+    echo ' ';
+    echo 'model manager email address : '${m_m};
+    echo ' ';
+    qi=0; while (( ${qi} < ${#m_c[@]} ))
+      do
+        ((qi=qi+1));
+        echo 'Component '${qi}' : '${m_c[${qi}]};
+        echo 'Tag       '${qi}' : '${m_t[${qi}]};
+        echo 'System    '${qi}' : '${m_p[${qi}]};
+        echo 'Server    '${qi}' : '${m_s[${qi}]};
+        echo 'Directory '${qi}' : '${m_d[${qi}]};
+        echo 'Local Dir '${qi}' : '${m_l[${qi}]};
+      done
+  fi
+  echo ' ';
+  exit 0;
+ }
+#-
+# Record information about the action in the "log" file
+#-
+F_LOG=${d_n}'/log'
+echo "${F_LOG}"
+echo $(date +"%D %T") $0 $* >>"${F_LOG}"
+#-
+# Verbose mode
+#-
+[ ${m_v} = 'verbose' ] && \
+ { echo '--- Model        : '${m_n};
+   echo '--- Action       : '${m_a};
+   echo '--- Mode         : '${m_v}; }
+#-
+# Record information about the action in the "log" file
+#-
+{ echo '--- Model        : '${m_n};
+  echo '--- Action       : '${m_a};
+  echo '--- Mode         : '${m_v};
+  echo '--- Mail address : '${m_m}; } >>"${F_LOG}"
+#-
+# Components root directory
+#-
+d_m=${d_n}'/..';
+#-
+# send an email at the first use of this IPSL model
+# ie file ~/.modipsl/log.${m_n} does not exist
+#-
+M_LOG=${D_LOG}/log.${m_n}
+[[ -f "${M_LOG}" ]] || \
+  {
+   echo $(date +"%D %T") $(whoami) $(uname -m) \
+    first usage of model ${m_n} | \
+   ${MAIL_COM} -s "first usage of model ${m_n}" \
+    ${m_m} >/dev/null 2>&1;
+   echo $(date +"%D %T") model ${m_n} >"${M_LOG}";
+  }
+#-
+# Extract the model components
+#-
+qi=0; while (( ${qi} < ${#m_c[@]} ))
+  do
+    ((qi=qi+1));
+    zc=${m_c[${qi}]}; zt=${m_t[${qi}]};
+    zp=${m_p[${qi}]}; zs=${m_s[${qi}]};
+    zd=${m_d[${qi}]}; zl=${m_l[${qi}]};
+    [[ ${m_v} = 'verbose' ]] && \
+     { echo '---';
+       echo '--- Component  : '${zc};
+       echo '--- Tag        : '${zt};
+       echo '--- System     : '${zp};
+       echo '--- Server     : '${zs};
+       echo '--- Directory  : '${zd};
+       echo '--- Local Dir  : '${zl}; }
+#-----
+#----  Record information about the action in the "log" file
+#-----
+     { echo '---';
+       echo '--- Component  : '${zc};
+       echo '--- Tag        : '${zt};
+       echo '--- System     : '${zp};
+       echo '--- Server     : '${zs};
+       echo '--- Directory  : '${zd};
+       echo '--- Local Dir  : '${zl}; } >>"${F_LOG}"
+#---
+    [[ ${zp} = 'cvs' ]] && \
+     {
+      c_c='(cd '${d_m}/${zl}'; '${zp}' -d :pserver:'${zs}' '${m_a};
+      [[ ${zt} != '?' ]] && { c_c=${c_c}' -r '${zt}; }
+      [[ ${zd} != '.' ]] && { c_c=${c_c}' -d '${zd}; }
+      c_c=${c_c}' '${zc}')';
+      grep "${zs%%/*}"'.*/'"${zs#*/}" ~/.cvspass > /dev/null;
+      [[ ${?} != 0 ]] && \
+       {
+        c_z='cvs -d :pserver:'${zs}' login';
+        [[ ${m_v} = 'verbose' ]] && { echo ${c_z}; }
+        eval ${c_z};
+       }
+     }
+#---
+    [[ ${zp} = 'svn' ]] && \
+     {
+      c_c='(cd '${d_m}/${zl}'; '${zp}' '${m_a};
+      [[ ${zt} != '?' ]] && { c_c=${c_c}' -r '${zt}; }
+      c_c=${c_c}' '${zs}'/'${zc};
+      [[ ${zd} != '.' ]] && { c_c=${c_c}' '${zd}; }
+      c_c=${c_c}')';
+     }
+#---
+    [[ ${m_v} = 'verbose' ]] && { echo '--- Command    : '${c_c}; }
+    eval ${c_c};
+  done
+#-
+# Actions related to the WORK directory for the OPA models
+#-
+case ${m_n} in
+  ( EEL* |  ORCA* | OFF_TRC | IPSLCM4* | IPSL_ESM_v1 | ORCA_TOYATM | \
+    NEMO_ORCA2_LIM | GYRE )
+    d_m1=${d_m}/modeles/OPA  ;
+    [ -d ${d_m1}/WORK ] && \rm -rf ${d_m1}/WORK;
+    mkdir ${d_m1}/WORK;
+    cd ${d_m1}/WORK;
+#-- Getting the configuration files to build the Makefile
+    ln -sf ../../../*/${m_n}/scripts/BB_make AA_make;
+    ln -sf ../../../*/${m_n}/scripts/BB_make.ldef AA_make.ldef ;
+    case ${m_n} in
+     ( ORCA2_LMDZ96x71 )
+      echo " Creation du catalogue OPA/WORK = ORCA + LIM"
+      ln -sf ../SRC_ORCA/*.[Ffh] .
+      ln -sf ../SRC_UCL/[a-z]* .
+      ln -sf ../../${m_n}/scripts/prep.sed.coupled .;;
+     ( ORCA2 | ORCA4 | ORCA05 | EEL2 | EEL6 )
+      echo " Creation du catalogue OPA/WORK = ORCA"
+      ln -sf ../SRC_ORCA/*.[Ffh] .;;
+     ( ORCA*LIM | IPSLCM4*  | IPSL_ESM* | ORCA_TOYATM | ORCA*LMD* )
+      [ "${m_n}" = "IPSLCM4_LOOP" ] && \
+       echo " Creation du catalogue OPA/WORK = ORCA + LIM + TRC" || \
+       echo " Creation du catalogue OPA/WORK = ORCA + LIM"
+      ln -sf ../SRC_ORCA/*.[Ffh] .
+      [ "${m_n}" = "IPSLCM4_LOOP" ] && \rm *.passivetrc.h
+      [ "${m_n}" = "IPSLCM4_LOOP" ] && \
+       ln -sf ../SRC_TRC/*.[Ffh] ../SRC_TRC/trc_sms/*.[Ffh] .
+      ln -sf ../SRC_UCL/[a-z]* .;;
+     ( ORCA*_LIM_TRC )
+      echo " Creation du catalogue OPA/WORK = ORCA + LIM + TRC"
+      ln -sf ../SRC_ORCA/*.[Ffh] .
+      \rm *.passivetrc.h
+      ln -sf ../SRC_TRC/*.[Ffh] ../SRC_TRC/trc_sms/*.[Ffh] .
+      ln -sf ../SRC_UCL/[a-z]* .;;
+     ( *LOBSTER1 )
+      echo " Creation du catalogue OPA/WORK = ORCA + TRC"
+      ln -sf ../SRC_ORCA/*.[Ffh] .
+      \rm *.passivetrc.h
+      ln -sf ../SRC_TRC/*.[Ffh] ../SRC_TRC/trc_sms/*.[Ffh] .;;
+     ( ORCA*_OFF_TRC )
+      echo " Creation du catalogue OPA/WORK = TRC + OFFLINE"
+      ln -sf ../SRC_TRC/*.[Ffh] ../SRC_TRC/trc_sms/*.[Ffh] .
+      ln -sf ../SRC_OFFLINE_TRC/*.[Ffh] .;;
+    esac
+#-- Building the standard list of source files
+    cat >.patron <<"EOF"
+CVS
+SRC_PARAM
+SRC_FILE_LIST
+tmplist
+AA_make
+KEY_CPP
+Makefile
+*?.o
+ i.?*
+*?.L
+.patron
+bloc.com
+para.com
+defcst.f
+fontbc.f
+icdyna.f
+thersf.f
+EOF
+    ls -1 | fgrep -v -f .patron  >SRC_FILE_LIST;
+    cp SRC_FILE_LIST SRC_FILE_LIST.temp;
+    KEY=$(grep P_P AA_make.ldef);
+    [ -f "KEY_CPP" ] || echo $KEY > KEY_CPP;
+  ;;
+  ( IPSLCM5_LOOP )
+  ../modeles/UTIL/fait_config IPSLCM5_LOOP ;;
+  ( IPSLCM5_v3 )
+  ../modeles/UTIL/fait_config IPSLCM5_v3 ;;
+  ( IPSLCM5A )
+  ../modeles/UTIL/fait_config IPSLCM5A ;;
+  ( IPSLCM5A_C )
+  ../modeles/UTIL/fait_config IPSLCM5A_C ;;
+  ( IPSLCM5B )
+  ../modeles/UTIL/fait_config IPSLCM5B ;;
+  ( IPSLCM5_v4 )
+  ../modeles/UTIL/fait_config IPSLCM5_v4 ;;
+  (IPSLCM5* )
+  ../modeles/UTIL/fait_config IPSLCM5 ;;
+  ( IPSL_ESM_v2 )
+  ../modeles/UTIL/fait_config IPSL_ESM_v2 ;;
+esac
+#---
+#- That's all folks
+#---
+exit 0;
Index: /modipsl/branches/newconfig/util/script_diff_model
===================================================================
--- /modipsl/branches/newconfig/util/script_diff_model	(revision 1722)
+++ /modipsl/branches/newconfig/util/script_diff_model	(revision 1722)
@@ -0,0 +1,390 @@
+#!/bin/ksh
+
+#**************************************************************
+# Author: Martial Mancip
+# Contact: Martial.Mancip__at__ipsl.jussieu.fr
+# $Revision::                                          $ Revision of last commit
+# $Author::                                            $ Author of last commit
+# $Date::                                              $ Date of last commit
+# IPSL (2006)
+#  This software is governed by the CeCILL licence see libIGCM/libIGCM_CeCILL.LIC
+#
+#**************************************************************
+
+# Documentation :
+# This script may be used to create a tree of last configuration downloaded by modipsl/util/model command.
+#
+# It checks the control version used for each components of the configuration and saves the diff
+# between the revision downloaded (or updated) and the modifications of the developper.
+# It saves those diff in the component directory in the copy tree. 
+# It saves also new source files. See SUFFIXES definition below for the list of extension to detect source files. 
+# 
+# It also gives a Last_log file in the root of the save tree with all informations needed to download the same
+# configuration precisely. It has the list of new and modified files and give the date (in an non human format)
+# of each modifications.
+#
+# It may be used in modipsl directory :
+# modipsl_path> util/script_diff_model
+#
+# After this use, you will have a modipsl_path/modipsl_save_diff_$( date +%F_%H%M%S ) tree that 
+# you can tar and save with the executable you have build with this modified configuration.
+#
+# Note :
+#  Be aware to modify AA_make files in your model source code tree (and not only Makefiles) if you use modipsl
+#  ins_make script and portable Makefile build. In this case, Makefiles won't be versionning and modifications
+#  won't be saves.
+#
+# You can use ___ script_recup_model ___ script to download the same configuration and make change 
+# with new files and modified source files.
+
+
+case $( hostname -s ) in
+    vargas*)
+# 	alias ls=/opt/freeware/bin/ls
+# 	alias wc=/opt/freeware/bin/wc
+# 	alias tail=/opt/freeware/bin/tail
+# 	alias tee=/opt/freeware/bin/tee
+# 	module load svn
+	return 1
+	;;
+esac
+
+# env must know MODIPSL path variable !
+MODIPSL=${MODIPSL:=$(pwd)}
+tmpMODIPSL=${MODIPSL}/tmp
+
+SUBMIT_DIR=$1
+
+DEBUG_mode=false
+
+function printDebugArray {
+    if ( ${DEBUG_mode} ); then
+	typeset nb_line i
+	eval nb_line=\${#$1[@]}
+	eval echo "$1 : " ${nb_line}
+	(( i = 0 ))
+	while [ $i -lt $nb_line ] ; do
+	    eval echo \${$1[$i]}
+	    (( i = i + 1 ))
+	done
+    fi
+}
+
+typeset tag thedate save_diff_file pathComp pathexist i filecomp filedate file SpathComp SUFFIXES NbNewFiles NbModifFiles Maxfiledate
+
+# Analyse log file: get last model command
+. ${MODIPSL}/util/script_log_analyse
+
+# Code source suffixe for new file detection 
+SUFFIXES='\(f90\|F90\|f\|F\|h\|h90\|hh\|c\|cc\|inc\|fcm\|path\|cfg\|card\|driver\|def\|def_.*\|txt\|xml\|ksh\|tex\)'
+
+MODIPSL_SAVE_NAME=modipsl_save_diff_$( date +%F_%H%M%S )
+echo "SAVE directory in " ${MODIPSL_SAVE_NAME}
+MODIPSL_SAVE=${tmpMODIPSL}/${MODIPSL_SAVE_NAME}
+printDebugArray MODIPSL_SAVE
+
+set +A ListRep -- $( find ${MODIPSL} -mindepth 1 -type d \
+    \( -not -path '*.svn*' -a -not -path '*CVS*' -a -not -path "${MODIPSL}" \
+    -a -not -path "${MODIPSL}/bin" -a -not -path "${MODIPSL}/lib" -a -not -path "${MODIPSL}/util" \
+    -a -not -path "${tmpMODIPSL}*" \) \
+    -exec bash -c " echo "'{}'" | sed -e 's&"${MODIPSL}"/&&' | tee -a >( sed -e 's&\(.*\)&"${MODIPSL_SAVE}"/\1&' | xargs mkdir -p >> out_mkdir 2>&1 ) " \; )
+rm out_mkdir
+#echo ${ListRep[0]} | tee $(ls > toto) $(ls -la > tata)
+#mkdir -Rp ${MODIPSL_SAVE}/
+printDebugArray ListRep
+
+
+echo "Last Model in log : " ${ListModelCommands[$ModelNul]} | sed -e 's&::& &g' > ${MODIPSL_SAVE}/Last_log
+echo "${NbComponents} components : " >> ${MODIPSL_SAVE}/Last_log
+echo ${ModelComponents[@]} >> ${MODIPSL_SAVE}/Last_log
+echo ${ModelTags[@]} >> ${MODIPSL_SAVE}/Last_log
+echo ${ModelSystems[@]} >> ${MODIPSL_SAVE}/Last_log
+echo ${ModelServers[@]} >> ${MODIPSL_SAVE}/Last_log
+echo ${ModelDirectories[@]} >> ${MODIPSL_SAVE}/Last_log
+echo ${ModelLocalDirs[@]} >> ${MODIPSL_SAVE}/Last_log
+
+thedate=$( echo ${ListModelDates[${ModelNum}]} | sed -e "s&_& &g" | sed -e "s&-&/&g")
+
+
+(( NbNewFiles = 0 ))
+(( NbModifFiles = 0 ))
+(( Maxfiledate = 0 ))
+(( i = 0 ))
+for comp in ${ModelComponents[@]}; do
+    tag=${ModelTags[$i]}
+    echo $i $comp " : " $tag
+
+    case ${ModelLocalDirs[$i]} in
+	[a-z]*)
+	    if [ X${ModelDirectories[$i]} = X. ] ; then
+		pathComp=${ModelLocalDirs[i]}/${ModelComponents[$i]}
+		if [ -f ${pathComp} ] ; then
+		    filecomp=$( basename ${pathComp} )
+		    ListPathFile[$i]=${filecomp}
+		    pathComp=$( dirname ${pathComp} )
+		    pathexist=true
+		elif [ -d ${pathComp} ] ; then
+		    filecomp=""
+		    ListPathFile[$i]=_empty_
+		    pathexist=true
+		elif [ -d ${ModelLocalDirs[i]}/$( basename ${ModelComponents[$i]} ) ] ; then
+		    pathComp=${ModelLocalDirs[i]}/$( basename ${ModelComponents[$i]} )
+		    filecomp=""
+		    ListPathFile[$i]=_empty_
+		    pathexist=true
+		else
+		    echo "error for component : ${comp} !!"
+		    echo "  ${pathComp} does not exist."
+		    pathexist=false	
+		fi
+	    else
+		pathComp=${ModelLocalDirs[i]}/${ModelDirectories[$i]}
+		if [ -f ${pathComp} ] ; then
+		    filecomp=$( basename ${pathComp} )
+		    ListPathFile[$i]=${filecomp}
+		    pathComp=$( dirname ${pathComp} )
+		    pathexist=true
+		elif [ -d ${pathComp} ] ; then
+		    filecomp=""
+		    ListPathFile[$i]=_empty_
+		    pathexist=true
+		else
+		    echo "error for component : ${comp} !!"
+		    echo "  ${pathComp} does not exist."
+		    pathexist=false	
+		fi
+	    fi
+	    ;;
+	\.)
+	    pathComp=${ModelDirectories[$i]}
+	    if [ -f ${pathComp} ] ; then
+		filecomp=$( basename ${pathComp} )
+		ListPathFile[$i]=${filecomp}
+		pathComp=$( dirname ${pathComp} )
+		pathexist=true
+	    elif [ -d ${pathComp} ] ; then
+		filecomp=""
+		ListPathFile[$i]=_empty_
+		pathexist=true
+	    else
+		echo "error for component : ${comp} !!"
+		echo "  ${pathComp} does not exist."
+		pathexist=false	
+	    fi
+	    ;;
+	*)
+	    echo "error ${ModelLocalDirs[$i]} is not recognized as a valid path in modipsl."
+	    exit 1
+	    ;;
+    esac
+
+    if ( ${pathexist} ) ; then
+	echo "real local path = " ${pathComp}
+	ListPathComp[$i]=${pathComp}
+
+
+	cd ${pathComp}
+	SpathComp=${MODIPSL_SAVE}/${pathComp}
+
+	save_diff_file=$( echo ${comp} | sed -e 's&/&:&g' )
+	    
+	case ${ModelSystems[$i]} in
+	    svn)
+		ListPathRev[$i]=$( svn info ${filecomp} | grep "R.vision_*:" | gawk -F  ' ' '{print $2}' )
+		ListPathBranch[$i]=${comp}
+		
+		svn diff -r ${ListPathRev[$i]} ${filecomp} > ${tmpMODIPSL}/svn_diff_${save_diff_file}
+		RET=$?
+		if [ $RET -gt 0 ] ; then
+		    ListPathComp[$i]="error"
+		    ListPathFile[$i]="error"
+		    ListPathRev[$i]="error"
+		    ListPathBranch[$i]="error"
+		else
+		    svn status ${filecomp} > ${tmpMODIPSL}/svn_status_${save_diff_file}
+		    set -A NewFiles -- $( grep "^? *\(.*\.${SUFFIXES}\|AA_.*\|BB_.*\)$" ${tmpMODIPSL}/svn_status_${save_diff_file} | sed -e "s&? *&&" )
+		    printDebugArray NewFiles
+		    for file in ${NewFiles[@]} ; do
+			echo "New file : " $file
+			cp -p $file ${SpathComp}/$( dirname $file )
+			ListNewFiles[$NbNewFiles]=${pathComp}/${file}
+			(( NbNewFiles = NbNewFiles + 1 ))
+		    done
+
+		    set -A ModifiedFiles -- $( grep "^M *" ${tmpMODIPSL}/svn_status_${save_diff_file} | sed -e "s&M *&&" )
+		    printDebugArray ModifiedFiles
+		    for file in ${ModifiedFiles[@]} ; do
+			echo "Modified file : " $file
+			filedate=$( ls -l --full-time --time-style='+%Y%m%d%H%M%S' $file | gawk -F  ' ' '{print $6}' )
+			Maxfiledate=$(( ( $Maxfiledate > $filedate ) ? $Maxfiledate : $filedate ))
+			ListModifFiles[$NbModifFiles]=${pathComp}/${file}
+			ListModifFilesDate[$NbModifFiles]=${filedate}
+			(( NbModifFiles = NbModifFiles + 1 ))
+		    done
+
+		    if ( ${DEBUG_mode} ); then 
+			cp ${tmpMODIPSL}/svn_diff_${save_diff_file} ${SpathComp}/svn_diff
+		    else
+			rm ${tmpMODIPSL}/svn_status_${save_diff_file}
+ 			mv ${tmpMODIPSL}/svn_diff_${save_diff_file} ${SpathComp}/svn_diff
+		    fi
+		    RET=$?
+		    if [ $RET -gt 0 ] ; then
+			ListPathComp[$i]="error"
+			ListPathFile[$i]="error"
+			ListPathRev[$i]="error"
+			ListPathBranch[$i]="error"
+		    fi
+		fi
+
+		;;
+	    cvs)
+		ListPathRev[$i]=${tag}:\"${thedate}\"
+		ListPathBranch[$i]=${tag}
+
+		cvs diff -U 2 ${filecomp} > ${tmpMODIPSL}/cvs_diff_${save_diff_file}_00
+		#eval cvs diff -U 2 -r "${ListPathRev[$i]}" ${filecomp} > ${tmpMODIPSL}/cvs_diff_${save_diff_file}_00
+		RET=$?
+		if [ $RET -gt 1 ] ; then
+		    ListPathComp[$i]="error"
+		    ListPathFile[$i]="error"
+		    ListPathRev[$i]="error"
+		    ListPathBranch[$i]="error"
+		else
+		    set -A NewFiles -- $( grep "^? .*\.${SUFFIXES}$" ${tmpMODIPSL}/cvs_diff_${save_diff_file}_00 | sed -e "s&? *&&" )
+		    printDebugArray NewFiles
+		    for file in ${NewFiles[@]} ; do
+			echo "New file : " $file
+			cp -p $file ${SpathComp}/$( dirname $file )
+			ListNewFiles[$NbNewFiles]=${pathComp}/${file}
+			(( NbNewFiles = NbNewFiles + 1 ))
+		    done
+
+		    set -A ModifiedFiles -- $( grep "^M .*\.${SUFFIXES}$" ${tmpMODIPSL}/cvs_diff_${save_diff_file}_00 | sed -e "s&M *&&" )
+		    printDebugArray ModifiedFiles
+		    for file in ${ModifiedFiles[@]} ; do
+			echo "Modified file : " $file
+			filedate=$( ls -l --full-time --time-style='+%Y%m%d%H%M%S' $file | gawk -F  ' ' '{print $6}' )
+			Maxfiledate=$(( ( $Maxfiledate > $filedate ) ? $Maxfiledate : $filedate ))
+			ListModifFiles[$NbModifFiles]=${pathComp}/${file}
+			ListModifFilesDate[$NbModifFiles]=${filedate}
+			(( NbModifFiles = NbModifFiles + 1 ))
+		    done
+
+		    ${MODIPSL}/util/correct-cvs-diff.awk ${tmpMODIPSL}/cvs_diff_${save_diff_file}_00 > ${tmpMODIPSL}/cvs_diff_${save_diff_file}_01
+		    RET=$?
+		    if ( ${DEBUG_mode} ); then 
+			cp ${tmpMODIPSL}/cvs_diff_${save_diff_file}_01 ${SpathComp}/cvs_diff
+		    else
+			mv ${tmpMODIPSL}/cvs_diff_${save_diff_file}_01 ${SpathComp}/cvs_diff
+			rm ${tmpMODIPSL}/cvs_diff_${save_diff_file}_00
+		    fi
+		    RET1=$?
+		    (( RET = RET + RET1 ))
+		    if [ $RET -gt 0 ] ; then
+			ListPathComp[$i]="error"
+			ListPathFile[$i]="error"
+			ListPathRev[$i]="error"
+			ListPathBranch[$i]="error"
+		    fi
+		fi
+		;;
+	    *)
+		echo "error ${ModelSystems[$i]} is not recognized as a valid control version system for $0."
+		exit 1
+		;;
+	esac
+    else
+	ListPathComp[$i]="error"
+	ListPathFile[$i]="error"
+	ListPathRev[$i]="error"
+	ListPathBranch[$i]="error"
+    fi
+    (( i = i + 1 ))
+    echo 
+    cd ${MODIPSL}
+
+done
+
+if [ -d ${SUBMIT_DIR} ] ; then
+    echo "Save SUBMIT_DIR : " ${SUBMIT_DIR}
+    echo
+    pathComp=$( basename ${SUBMIT_DIR} )
+    LocalDirectories[$i]=$( find . -mindepth 1 -type d \
+	\( -not -path "*${MODIPSL_SAVE_NAME}*" -a -name "${pathComp}" \) | head -1 )
+    ModelDirectories[$i]=.
+
+    ListPathComp[$i]=${pathComp}
+
+    cd ${SUBMIT_DIR}
+    SpathComp=${MODIPSL_SAVE}/${LocalDirectories[$i]}
+
+    save_diff_file=${pathComp}
+	    
+    ListPathRev[$i]=$( svn info | grep "R.vision_*:" | gawk -F  ' ' '{print $2}' )
+    
+    svn diff -r ${ListPathRev[$i]} > ${tmpMODIPSL}/svn_diff_${save_diff_file}
+    RET=$?
+    if [ $RET -gt 0 ] ; then
+	ListPathComp[$i]="error"
+	ListPathFile[$i]="error"
+	ListPathRev[$i]="error"
+	ListPathBranch[$i]="error"
+    else
+	svn status > ${tmpMODIPSL}/svn_status_${save_diff_file}
+	set -A NewFiles -- $( grep "^? *\(.*\.${SUFFIXES}\|AA_.*\|BB_.*\)$" ${tmpMODIPSL}/svn_status_${save_diff_file} | sed -e "s&? *&&" )
+	printDebugArray NewFiles
+	for file in ${NewFiles[@]} ; do
+	    echo "New file : " $file
+	    cp -p $file ${SpathComp}/$( dirname $file )
+	    ListNewFiles[$NbNewFiles]=${LocalDirectories[$i]}/${file}
+	    (( NbNewFiles = NbNewFiles + 1 ))
+	done
+
+	set -A ModifiedFiles -- $( grep "^M *" ${tmpMODIPSL}/svn_status_${save_diff_file} | sed -e "s&M *&&" )
+	printDebugArray ModifiedFiles
+	for file in ${ModifiedFiles[@]} ; do
+	    echo "Modified file : " $file
+# 	    filedate=$( ls -l --full-time --time-style='+%Y%m%d%H%M%S' $file | gawk -F  ' ' '{print $6}' )
+# 	    Maxfiledate=$(( ( $Maxfiledate > $filedate ) ? $Maxfiledate : $filedate ))
+	    ListModifFiles[$NbModifFiles]=${LocalDirectories[$i]}/${file}
+	    ListModifFilesDate[$NbModifFiles]=${filedate}
+	    (( NbModifFiles = NbModifFiles + 1 ))
+	done
+
+	if ( ${DEBUG_mode} ); then 
+	    cp ${tmpMODIPSL}/svn_diff_${save_diff_file} ${SpathComp}/svn_diff
+	else
+	    rm ${tmpMODIPSL}/svn_status_${save_diff_file}
+ 	    mv ${tmpMODIPSL}/svn_diff_${save_diff_file} ${SpathComp}/svn_diff
+	fi
+	RET=$?
+	if [ $RET -gt 0 ] ; then
+	    ListPathComp[$i]="error"
+	    ListPathFile[$i]="error"
+	    ListPathRev[$i]="error"
+	    ListPathBranch[$i]="error"
+	fi
+    fi
+    
+    echo 
+    cd ${MODIPSL}
+fi
+
+printDebugArray ListPathComp
+printDebugArray ListPathFile
+printDebugArray ListPathRev
+printDebugArray ListPathBranch
+printDebugArray ListNewFiles
+
+echo ${ListPathComp[@]} >> ${MODIPSL_SAVE}/Last_log
+echo ${ListPathFile[@]} >> ${MODIPSL_SAVE}/Last_log
+echo ${ListPathRev[@]} >> ${MODIPSL_SAVE}/Last_log
+echo ${ListPathBranch[@]} >> ${MODIPSL_SAVE}/Last_log
+echo ${ListNewFiles[@]} >> ${MODIPSL_SAVE}/Last_log
+echo ${ListModifFiles[@]} >> ${MODIPSL_SAVE}/Last_log
+echo ${ListModifFilesDate[@]} >> ${MODIPSL_SAVE}/Last_log
+echo ${Maxfiledate} >> ${MODIPSL_SAVE}/Last_log
+
+
+echo "out directory in " ${MODIPSL_SAVE}
Index: /modipsl/branches/newconfig/util/script_log_analyse
===================================================================
--- /modipsl/branches/newconfig/util/script_log_analyse	(revision 1722)
+++ /modipsl/branches/newconfig/util/script_log_analyse	(revision 1722)
@@ -0,0 +1,92 @@
+#!/bin/ksh
+
+#**************************************************************
+# Author: Martial Mancip
+# Contact: Martial.Mancip__at__ipsl.jussieu.fr
+# $Revision::                                          $ Revision of last commit
+# $Author::                                            $ Author of last commit
+# $Date::                                              $ Date of last commit
+# IPSL (2006)
+#  This software is governed by the CeCILL licence see libIGCM/libIGCM_CeCILL.LIC
+#
+#**************************************************************
+
+# Documentation :
+# This script gives an analyse of LAST configuration from mod.def downloaded by model command.
+#
+# It will create shell variables :
+# The list of components of the configuration : ModelComponents / NbComponents
+# And for each components :
+# - The tags or branch name : ModelTags
+# - The version control system name : ModelSystems
+# - The version control server address and login : ModelServers
+# - The version control server directory for this version : ModelDirectories
+# - The modipsl local directory : ModelLocalDirs
+
+
+typeset sizelog thedate logfile mymodel i  NbModelCommands NbModelNames
+
+logfile=${MODIPSL}/util/log
+
+set -A ListModelCommands -- $( cat ${logfile} | grep '\./model' | sed -e 's& &::&g')
+printDebugArray ListModelCommands
+
+NbModelCommands=${#ListModelCommands[@]}
+
+set -A ListModelNames -- $( cat ${logfile} | grep '\-\-\-\ Model' | sed -e 's&.*: *&&' )
+printDebugArray ListModelNames
+
+NbModelNames=${#ListModelNames[@]}
+
+if [ ${NbModelCommands} -ne ${NbModelNames} ] ; then
+    echo "Error with $0 script. number of model calls ${NbModelCommands} is not equal to model name ${NbModelNames} in util/log file."
+    exit 1
+fi
+
+set -A ListModelDates -- $( cat ${logfile} | grep '\./model' | sed -e 's&\ \./model .*&&' | sed -e 's&/&-&g' | sed -e 's& &_&g' )
+printDebugArray ListModelDates
+#set -A ListModelDates -- $( cat ${logfile} | grep '\./model' | sed -e 's&\ \./model .*&&' | sed -e 's&^\(.*\)&"\1"&g' | xargs date +%g-%m-%d_%R:%S -d )
+
+
+
+# We only use the last call to model here !
+(( ModelNum = NbModelCommands - 1 ))
+
+
+
+
+(( i = 0 ))
+for mymodel in ${ListModelNames[@]}; do
+    thedate=$( echo ${ListModelDates[$i]} | sed -e "s&_& &g" | sed -e "s&-&/&g")
+#    echo $model $i ${ListModelDates[$i]} $thedate
+    ListLineModels[$i]=$( grep -ni "${thedate}" ${logfile} | sed -e "s&^\([0-9]*\):.*&\1&" )
+    (( i = i + 1 ))
+done
+printDebugArray ListLineModels
+
+sizelog=$( wc -l ${logfile} | sed -e 's&^\([0-9]*\).*&\1&' )
+
+LastModelFile=log_${ModelNum}
+tail --lines=$(( sizelog - ListLineModels[${ModelNum}] + 1 )) ${logfile} > ${LastModelFile}
+
+set -A ModelComponents -- $( cat ${LastModelFile} | grep '\-\-\-\ Component *: ' | sed -e 's&--- Component *: \(.*\)&\1&' )
+printDebugArray ModelComponents
+
+NbComponents=${#ModelComponents[@]}
+
+set -A ModelTags -- $( cat ${LastModelFile} | grep '\-\-\-\ Tag *: ' | sed -e 's&--- Tag *: \(.*\)&\1&' )
+printDebugArray ModelTags
+
+set -A ModelSystems -- $( cat ${LastModelFile} | grep '\-\-\-\ System *: ' | sed -e 's&--- System *: \(.*\)&\1&' )
+printDebugArray ModelSystems
+
+set -A ModelServers -- $( cat ${LastModelFile} | grep '\-\-\-\ Server *: ' | sed -e 's&--- Server *: \(.*\)&\1&' | sed -e 's& &:_:&g' )
+printDebugArray ModelServers
+
+set -A ModelDirectories -- $( cat ${LastModelFile} | grep '\-\-\-\ Directory *: ' | sed -e 's&--- Directory *: \(.*\)&\1&' )
+printDebugArray ModelDirectories
+
+set -A ModelLocalDirs -- $( cat ${LastModelFile} | grep '\-\-\-\ Local Dir *: ' | sed -e 's&--- Local Dir *: \(.*\)&\1&' )
+printDebugArray ModelLocalDirs
+
+rm ${LastModelFile}
Index: /modipsl/branches/newconfig/util/script_recup_model
===================================================================
--- /modipsl/branches/newconfig/util/script_recup_model	(revision 1722)
+++ /modipsl/branches/newconfig/util/script_recup_model	(revision 1722)
@@ -0,0 +1,220 @@
+#!/bin/ksh
+
+#**************************************************************
+# Author: Martial Mancip
+# Contact: Martial.Mancip__at__ipsl.jussieu.fr
+# $Revision::                                          $ Revision of last commit
+# $Author::                                            $ Author of last commit
+# $Date::                                              $ Date of last commit
+# IPSL (2006)
+#  This software is governed by the CeCILL licence see libIGCM/libIGCM_CeCILL.LIC
+#
+#**************************************************************
+
+# Documentation :
+# This script creates a tree of last configuration modipsl from a tar file previously produced by script_diff_model.
+#
+# After you have downloaded modipsl, you can copy a modipsl_name_of_the_save directory tree (from a saved tar file) in modipsl.
+# (Please, see script_diff_model documentation for information of how to get this file.)
+# You may use this script to download the same configuration with new files and modifications linked with this tarball.
+#
+# usage (in modipsl path) :
+# modipsl_path> util/script_recup_model modipsl_name_of_the_save
+#
+# After this whole configuration is backuped, you must use as usual ins_make and ins_job script 
+# to installed all files depended on this new modipsl and the computer.
+#
+# Note :
+# It may not compile because of special post-installation (not versionning) for some component in model.
+# See "Actions related to the WORK directory for the OPA models" in model script to reproduce this post-installation.
+#-
+
+
+MODIPSL_SAVE_NAME=$1
+
+MODIPSL=${MODIPSL:=$(pwd)}
+
+DEBUG_mode=false
+
+function printDebugArray {
+    if ( ${DEBUG_mode} ); then
+	typeset nb_line i
+	eval nb_line=\${#$1[@]}
+	eval echo "$1 : " ${nb_line}
+	(( i = 0 ))
+	while [ $i -lt $nb_line ] ; do
+	    eval echo \${$1[$i]}
+	    (( i = i + 1 ))
+	done
+    fi
+}
+
+MODIPSL_SAVE=${MODIPSL}/${MODIPSL_SAVE_NAME}
+
+#typeset NbComponents ModelComponents ModelTags ModelSystems ModelServers ModelDirectories ModelLocalDirs ListPathComp ListPathFile ListPathRev ListPathBranch ListNewFiles ListModifFiles ListModifFilesDate Maxfiledate
+
+if [ ! -f ${MODIPSL_SAVE}/Last_log ] ; then
+    echo "You need to give a valid tree in argument of this script."
+    echo "usage (in modipsl path) :"
+    echo "modipsl_path> util/script_recup_model modipsl_name_of_the_save"
+    exit 1
+fi
+
+((i=1))
+while read line ; do
+    case $i in
+	1)
+	    echo $line | sed -e 's&Last Model in log : *&&g'
+	    ;;
+	2)
+	    NbComponents=$( echo $line | sed -e"s/ *components ://" )
+	    echo $NbComponents
+	    ;;
+	3)
+	    set +A ModelComponents -- $line
+	    printDebugArray ModelComponents
+	    ;;
+	4)
+	    set +A ModelTags -- $line
+	    printDebugArray ModelTags
+	    ;;
+	5)
+	    set +A ModelSystems -- $line
+	    printDebugArray ModelSystems
+	    ;;
+	6)
+	    (( j = 0 ))
+	    set +A ModelServersProtect -- $line
+	    for comp in ${ModelComponents[@]}; do
+		ModelServers[$j]=$( echo ${ModelServersProtect[$j]} | sed -e 's&:_:& &g' ) 
+		(( j = j + 1 ))
+	    done
+	    printDebugArray ModelServers
+	    ;;
+	7)
+	    set +A ModelDirectories -- $line
+	    printDebugArray ModelDirectories
+	    ;;
+	8)
+	    set +A ModelLocalDirs -- $line
+	    printDebugArray ModelLocalDirs
+	    ;;
+	9)
+	    set +A ListPathComp -- $line
+	    printDebugArray ListPathComp
+	    ;;
+	10)
+	    set +A ListPathFile -- $line
+	    printDebugArray ListPathFile
+	    ;;
+	11)
+	    set +A ListPathRev -- $( echo $line | sed -e 's%\([0-9][0-9]/[0-9][0-9]/[0-9][0-9]\) \([0-9][0-9]:[0-9][0-9]:[0-9][0-9]\)%\1_\2%g' )
+	    printDebugArray ListPathRev
+	    ;;
+	12)
+	    set +A ListPathBranch -- $line
+	    printDebugArray ListPathBranch
+	    ;;
+	13)
+	    set +A ListNewFiles -- $line
+	    printDebugArray ListNewFiles
+	    ;;
+	14)
+	    set +A ListModifFiles -- $line
+	    printDebugArray ListModifFiles
+	    ;;
+	15)
+	    set +A ListModifFilesDate -- $line
+	    printDebugArray ListModifFilesDate
+	    ;;
+	16)
+	    Maxfiledate=$line
+	    printDebugArray Maxfiledate
+	    ;;
+	*)
+	    break
+	    ;;
+    esac
+    ((i=i+1))
+done < ${MODIPSL_SAVE}/Last_log
+
+echo
+echo "read Last_log OK !"
+echo
+
+(( i = 0 ))
+for comp in ${ModelComponents[@]}; do
+    tag=${ModelTags[$i]}
+    echo $i $comp " : " $tag
+
+    if [ X${ListPathComp[$i]} != Xerror ] ; then
+	pathComp=${ListPathComp[$i]}
+	filecomp=$( echo ${ListPathFile[$i]} | sed -e "s/_empty_//" )
+	SpathComp=${MODIPSL_SAVE}/${pathComp}
+	echo "Path/file :" ${pathComp}/${filecomp}
+
+	case ${ModelSystems[$i]} in
+	    svn)
+		svn co -r ${ListPathRev[$i]} ${ModelServers[$i]}/${ListPathBranch[$i]}/${filecomp} ${pathComp}/${filecomp}
+		;;
+	    cvs)
+		
+		cd ${ModelLocalDirs[i]}
+		if [ X${ModelDirectories[$i]} = X. ] ; then
+#		rev=$( echo ${ListPathRev[$i]} | sed -e 's%\([0-9][0-9]\)/\([0-9][0-9]\)/\([0-9][0-9]\)_\([0-9][0-9]:[0-9][0-9]:[0-9][0-9]\)%\3/\1/\2 \4%g' )
+		    rev=$( echo ${ListPathRev[$i]} | sed -e 's%:"[0-9][0-9]/[0-9][0-9]/[0-9][0-9]_[0-9][0-9]:[0-9][0-9]:[0-9][0-9]"%%g' )
+		    eval cvs -d :pserver:${ModelServers[$i]} co -r "${rev}" ${comp}
+		else
+		    rev=$( echo ${ListPathRev[$i]} | sed -e 's%:"[0-9][0-9]/[0-9][0-9]/[0-9][0-9]_[0-9][0-9]:[0-9][0-9]:[0-9][0-9]"%%g' )
+		    echo cvs -d :pserver:${ModelServers[$i]} co -r ${rev} -d ${ModelDirectories[$i]} ${comp}
+		    cvs -d :pserver:${ModelServers[$i]} co -r ${rev} -d ${ModelDirectories[$i]} ${comp}
+		fi
+		cd ${MODIPSL}
+		
+		;;
+	    *)
+		echo "error ${ModelSystems[$i]} is not recognized as a valid control version system for ${MODIPSL_SAVE}/Last_log."
+		exit 1
+		;;
+	esac
+    fi
+    ((i=i+1))
+done
+
+set +A ListRep -- $( find ${MODIPSL_SAVE} -mindepth 1 -type d \
+    -exec bash -c " echo "'{}'" | sed -e 's&"${MODIPSL_SAVE}"/&&' | tee -a >( sed -e 's&\(.*\)&"${MODIPSL}"/\1&' | xargs mkdir -p >> out_mkdir 2>&1 ) " \; )
+printDebugArray ListRep
+rm out_mkdir
+
+(( i = 0 ))
+for comp in ${ModelComponents[@]}; do
+
+    if [ X${ListPathComp[$i]} != Xerror ] ; then
+	tag=${ModelTags[$i]}
+	echo $i $comp " : " $tag
+
+	pathComp=${ListPathComp[$i]}
+	filecomp=$( echo ${ListPathFile[$i]} | sed -e "s/_empty_//" )
+	SpathComp=${MODIPSL_SAVE}/${pathComp}
+	echo "Patch :" $( ls ${SpathComp} )
+
+        # Patch this model
+	cd ${pathComp}
+	case ${ModelSystems[$i]} in
+	    svn)
+		patch -p0 -i ${SpathComp}/svn_diff	    
+		;;
+	    cvs)
+		patch -p0 -i ${SpathComp}/cvs_diff
+		;;
+	esac
+	cd ${MODIPSL}
+    fi
+    ((i=i+1))
+done
+
+# copy new files
+for file in ${ListNewFiles[@]} ; do
+    echo "copy New file : " ${MODIPSL_SAVE}/$file $file
+    cp -p ${MODIPSL_SAVE}/$file $file
+done 
Index: /modipsl/branches/newconfig/util/w_i_e
===================================================================
--- /modipsl/branches/newconfig/util/w_i_e	(revision 1722)
+++ /modipsl/branches/newconfig/util/w_i_e	(revision 1722)
@@ -0,0 +1,35 @@
+#!/bin/bash
+# $Id$
+#-------------------------------------------------------------------#
+#- w_i_e                                                21/07/2009 -#
+#- Validate the correlation between the target and the environment -#
+#-------------------------------------------------------------------#
+shopt -s extglob
+#-
+WW_ast='****************************************************************'
+#-
+h_t=${1}; h_w=${2};
+#-
+echo -e "\n${WW_ast}" >&2;
+echo "INFO -  This Makefile is for host type : ${h_t}" >&2;
+echo "INFO -  Host used has type :             ${h_w}" >&2;
+echo -e "${WW_ast}" >&2;
+#-
+if [ ${h_t} = ${h_w} ]; then
+  r_c='OK';
+else
+  r_c='WN'; [[ ${h_t} = sx[89]mercure ]] && { r_c='NO'; }
+fi
+#-
+if   [ ${r_c} = 'WN' ]; then
+ echo "WARNING - This Makefile may not be compatible whith the host !" >&2;
+ echo -e "${WW_ast}" >&2;
+elif [ ${r_c} = 'NO' ]; then
+ echo "ERROR - This Makefile is not compatible whith the host !" >&2;
+ echo -e "${WW_ast}" >&2;
+fi
+#-
+echo ${r_c};
+unset h_t h_w r_c;
+#-
+exit 0;
Index: /modipsl/branches/newconfig/util/w_i_h
===================================================================
--- /modipsl/branches/newconfig/util/w_i_h	(revision 1722)
+++ /modipsl/branches/newconfig/util/w_i_h	(revision 1722)
@@ -0,0 +1,87 @@
+#!/bin/bash
+# $Id$
+#-----------------------------------------------#
+#--- What is host ?  -  w_i_h  -  21/07/2009 ---#
+#-----------------------------------------------#
+w_z=$(uname -s -n -r -m 2>/dev/null);
+[[ ${?} != 0 ]] && { exit 1; }
+read u_s u_n u_r u_m <<< ${w_z}
+unset w_z;
+#-
+d_n=$(dirname ${0});
+#-
+case ${u_s} in
+ ( AIX ) \
+  { case ${u_n} in
+    ( zahir* )                 DSYS="aix";;
+    ( vargas* )                DSYS="aix6";;
+    ( * )                      DSYS="ax_mono";
+    esac
+  };;
+ ( AIXESA )                    DSYS="aixesa";;
+ ( ConvexOS )                  DSYS="convex";;
+ ( CP486 | dev )               DSYS="sco";;
+ ( Darwin )                    DSYS="Darwin";;
+ ( HP-UX ) \
+  { case ${u_n} in
+    ( moon )                   DSYS="eshpux";;
+    ( * )                      DSYS="hpux";;
+    esac
+  };;
+ ( IRIX ) \
+  { case ${u_r} in
+    ( 4\.* )                   DSYS="sgi4";;
+    ( * )                      DSYS="sgi5";;
+    esac
+  };;
+ ( IRIX64 )                    DSYS="sgi6";;
+ ( Linux ) \
+  { case ${u_n} in
+    ( asterix* | obelix* )     DSYS="lxiv8";;
+    ( ciclad[0-9]* )           DSYS="ciclad";;
+    ( argent[0-9]* )           DSYS="argent";;
+    ( cesium[0-9]* )           DSYS="cesium";;
+    ( platine[0-9]* )          DSYS="platine";;
+    ( titane[0-9]* )           DSYS="titane";;
+    ( mercure* ) \
+     {                         DSYS="sx8mercure"
+      u_l=$(/usr/bin/modulecmd bash list -t 2>&1)
+      for h in ${u_l}
+       do
+        [[ ${h} = 'SX9' ]] && { DSYS="sx9mercure"; break; }
+       done
+      unset u_l h
+     };;
+    ( brodie )                 DSYS="sx8brodie";;
+    ( ulam )                   DSYS="ulam";;
+    ( ds[0-9]* )               DSYS="sxdkrz";;
+    ( babel* )                 DSYS="babel";;
+    ( curie* )                 DSYS="curie";;
+    ( * )                      DSYS="linux";;
+    esac
+  };;
+ ( MIPS )                      DSYS="mips";;
+ ( OSF1 )                      DSYS="osf1";;
+ ( SunOS ) \
+  { case ${u_r} in
+    ( 5\.* )                   DSYS="solaris";;
+    ( * )                      DSYS="sun";;
+    esac
+  };;
+ ( SUPER-UX )                  DSYS="nec";;
+ ( ULTRIX )                    DSYS="ultrix";;
+ ( UNICOS | sn4803 | sn4602 )  DSYS="cray";;
+ ( UNIX_System_V )             DSYS="fjvpp";;
+ (*) \
+  { case ${u_m} in
+    ( "CRAY T3E" )             DSYS="t3e";;
+    ( * )                      DSYS="Unknown";;
+    esac
+  };;
+esac
+#-
+echo "$DSYS";
+unset u_s u_n u_r u_m;
+#-
+exit 0;
+
Index: /modipsl/branches/newconfig/util/w_i_p
===================================================================
--- /modipsl/branches/newconfig/util/w_i_p	(revision 1722)
+++ /modipsl/branches/newconfig/util/w_i_p	(revision 1722)
@@ -0,0 +1,15 @@
+#!/bin/bash
+# $Id$
+#--------------------------------------------------#
+#--- What is host prefix ? - w_i_p - 21/06/2009 ---#
+#--------------------------------------------------#
+h_n=${1}
+case ${h_n} in
+ ( sx8mercure | sx9mercure )  DSYS="sx8mercure";;
+ ( * )                        DSYS=${h_n};;
+esac
+#-
+echo "$DSYS";
+unset h_n;
+#-
+exit 0;
