Index: /LMDZ6/trunk/libf/phylmd/cosp2/cosp_output_mod.F90
===================================================================
--- /LMDZ6/trunk/libf/phylmd/cosp2/cosp_output_mod.F90	(revision 3368)
+++ /LMDZ6/trunk/libf/phylmd/cosp2/cosp_output_mod.F90	(revision 3369)
@@ -231,5 +231,5 @@
   SUBROUTINE cosp_output_open(Nlevlmdz, Ncolumns, presnivs, dtime, freq_cosp, &
                               ok_mensuelCOSP, ok_journeCOSP, ok_hfCOSP, ok_all_xml,  &
-                              ecrit_mth, ecrit_day, ecrit_hf, vgrid)
+                              ecrit_mth, ecrit_day, ecrit_hf, use_vgrid, vgrid)
   use MOD_COSP_INTERFACE_v1p4, only :  cosp_vgrid
 !  use MOD_COSP
@@ -258,4 +258,5 @@
   real,dimension(Nlevlmdz) :: presnivs
   real                     :: dtime, freq_cosp, ecrit_day, ecrit_hf, ecrit_mth 
+  logical                  :: use_vgrid
   logical                  :: ok_mensuelCOSP, ok_journeCOSP, ok_hfCOSP, ok_all_xml
   type(cosp_vgrid)   :: vgrid   ! Information on vertical grid of stats
@@ -414,5 +415,5 @@
       CALL histvert(cosp_nidfiles(iff),"sza","solar_zenith_angle","degrees",PARASOL_NREFL,PARASOL_SZA,nvertp(iff))
 
-      CALL histvert(cosp_nidfiles(iff),"pressure2","pressure","mb",7,ISCCP_PC,nvertisccp(iff),"down")
+      CALL histvert(cosp_nidfiles(iff),"pressure2","pressure","mb",7,pres_binCenters,nvertisccp(iff),"down")
 
       CALL histvert(cosp_nidfiles(iff),"column","column","count",Ncolumns,column_ax,nvertcol(iff)) !DBUG
@@ -420,5 +421,5 @@
       CALL histvert(cosp_nidfiles(iff),"temp","temperature","C",LIDAR_NTEMP,LIDAR_PHASE_TEMP,nverttemp(iff))
 
-      CALL histvert(cosp_nidfiles(iff),"cth","altitude","m",MISR_N_CTH,MISR_CTH,nvertmisr(iff))
+      CALL histvert(cosp_nidfiles(iff),"cth","altitude","m",numMISRHgtBins,misr_histHgtCenters,nvertmisr(iff))
   
       CALL histvert(cosp_nidfiles(iff),"ReffIce","Effective_particle_size_Ice","microns",numMODISReffIceBins, reffICE_binCenters, &
@@ -432,5 +433,5 @@
       CALL histvert(cosp_nidfiles(iff),"scatratio","backscattering_ratio","1",SR_BINS,sratio_ax,nvertsratio(iff))
 
-      CALL histvert(cosp_nidfiles(iff),"tau","cloud optical depth","1",7,ISCCP_TAU,nverttau(iff)) 
+      CALL histvert(cosp_nidfiles(iff),"tau","cloud optical depth","1",7,tau_binCenters,nverttau(iff)) 
      
 !!! Valeur indefinie en cas IOIPSL
Index: /LMDZ6/trunk/libf/phylmd/cosp2/phys_cosp2.F90
===================================================================
--- /LMDZ6/trunk/libf/phylmd/cosp2/phys_cosp2.F90	(revision 3368)
+++ /LMDZ6/trunk/libf/phylmd/cosp2/phys_cosp2.F90	(revision 3369)
@@ -410,5 +410,5 @@
         call cosp_output_open(Nlevlmdz, Ncolumns, presnivs, dtime, freq_cosp, &
                               ok_mensuelCOSP, ok_journeCOSP, ok_hfCOSP, ok_all_xml, &
-                              ecrit_mth, ecrit_day, ecrit_hf, vgrid)
+                              ecrit_mth, ecrit_day, ecrit_hf, use_vgrid, vgrid)
       !$OMP END MASTER
       !$OMP BARRIER
