Index: CONFIG_DEVT/IPSLCM6.2.2_ENSEMBLES/libIGCM/libIGCM_comp/libIGCM_comp.ksh
===================================================================
--- CONFIG_DEVT/IPSLCM6.2.2_ENSEMBLES/libIGCM/libIGCM_comp/libIGCM_comp.ksh	(revision 6204)
+++ CONFIG_DEVT/IPSLCM6.2.2_ENSEMBLES/libIGCM/libIGCM_comp/libIGCM_comp.ksh	(revision 6206)
@@ -1860,5 +1860,4 @@
         generic_restart_file_name_out=$(   basename ${config_UserChoices_JobName}_${PeriodDateEnd}_${file_out} .nc )
         generic_restart_file_name_outin=$( basename ${file_outin} .nc )
-
         if [ ${config_Ensemble_EnsembleXIOS} = TRUE ] ; then
 
@@ -1888,29 +1887,25 @@
 		  done
 
-		  NumberCOLIQRUNflxat=$(27*${pool_member_rank}+27)
+		  NumberCOLIQRUNflxat=$((27*${pool_member_rank}+27))
 		  NumberCOLIQRUNflxat_4dgts=$(printf "%04i\n" ${NumberCOLIQRUNflxat})
 
-		  NumberCOCALVINflxat=$(27*${pool_member_rank}+24)
+		  NumberCOCALVINflxat=$((27*${pool_member_rank}+24))
 		  NumberCOCALVINflxat_4dgts=$(printf "%04i\n" ${NumberCOCALVINflxat})
 
-		  ncrename -O -d loc00${NumberCOLIQRUNflxat_4dgts}_cnt_ncnt,loc000000_cnt_ncnt ${file_in}
+		  ncrename -O -d loc00${NumberCOLIQRUNflxat_4dgts}_cnt_ncnt,loc000000_COLIQRUN_cnt_ncnt ${file_in}
 		  ncrename -O -d loc00${NumberCOLIQRUNflxat_4dgts}_COLIQRUN__${pool_member_rank}_nx,loc000000_COLIQRUN_nx ${file_in}
 		  ncrename -O -d loc00${NumberCOLIQRUNflxat_4dgts}_COLIQRUN__${pool_member_rank}_ny,loc000000_COLIQRUN_ny ${file_in}
-		  ncrename -O -d COLIQRUN__${pool_member_rank}_nx,COLIQRUN_nx ${file_in}
-		  ncrename -O -d COLIQRUN__${pool_member_rank}_ny,COLIQRUN_ny ${file_in}
-		  ncrename -O -v loc00${NumberCOLIQRUNflxat_4dgts}_cnt,loc000000_cnt ${file_in}
+		  ncrename -O -v loc00${NumberCOLIQRUNflxat_4dgts}_cnt,loc000000_COLIQRUN_cnt ${file_in}
 		  ncrename -O -v loc00${NumberCOLIQRUNflxat_4dgts}_COLIQRUN__${pool_member_rank},loc000000_COLIQRUN ${file_in}
 
-		  ncrename -O -d loc00${NumberCOCALVINflxat_4dgts}_cnt_ncnt,loc000000_cnt_ncnt ${file_in}
+		  ncrename -O -d loc00${NumberCOCALVINflxat_4dgts}_cnt_ncnt,loc000000_COCALVIN_cnt_ncnt ${file_in}
 		  ncrename -O -d loc00${NumberCOCALVINflxat_4dgts}_COCALVIN__${pool_member_rank}_nx,loc000000_COCALVIN_nx ${file_in}
 		  ncrename -O -d loc00${NumberCOCALVINflxat_4dgts}_COCALVIN__${pool_member_rank}_ny,loc000000_COCALVIN_ny ${file_in}
-		  ncrename -O -d COCALVIN__${pool_member_rank}_nx,COCALVIN_nx ${file_in}
-		  ncrename -O -d COCALVIN__${pool_member_rank}_ny,COCALVIN_ny ${file_in}
-		  ncrename -O -v loc00${NumberCOCALVINflxat_4dgts}_cnt,loc000000_cnt ${file_in}
+		  ncrename -O -v loc00${NumberCOCALVINflxat_4dgts}_cnt,loc000000_COCALVIN_cnt ${file_in}
 		  ncrename -O -v loc00${NumberCOCALVINflxat_4dgts}_COCALVIN__${pool_member_rank},loc000000_COCALVIN ${file_in}
 
 	      elif [ X${file_in} = Xicbrg__${pool_member_rank}.nc ] ; then
 	    
-		  NumberCOCALVINicbrg=$(27*${pool_member_rank}+25)
+		  NumberCOCALVINicbrg=$((27*${pool_member_rank}+25))
 		  NumberCOCALVINicbrg_4dgts=$(printf "%04i\n" ${NumberCOCALVINicbrg})
 
@@ -1918,6 +1913,4 @@
 		      ncrename -O -d loc00${NumberCOCALVINicbrg_4dgts}_COCALVIN__${pool_member_rank}_nx,loc000000_COCALVIN_nx ${file_in}
 		      ncrename -O -d loc00${NumberCOCALVINicbrg_4dgts}_COCALVIN__${pool_member_rank}_ny,loc000000_COCALVIN_ny ${file_in}
-		      ncrename -O -d COCALVIN__${pool_member_rank}_nx,COCALVIN_nx ${file_in}
-		      ncrename -O -d COCALVIN__${pool_member_rank}_ny,COCALVIN_ny ${file_in}
 		      ncrename -O -v loc00${NumberCOCALVINicbrg_4dgts}_cnt,loc000000_cnt ${file_in}
 		      ncrename -O -v loc00${NumberCOCALVINicbrg_4dgts}_COCALVIN__${pool_member_rank},loc000000_COCALVIN ${file_in}
@@ -1926,11 +1919,9 @@
               elif [ X${file_in} = Xicshf__${pool_member_rank}.nc ] ; then
 
-		  NumberCOCALVINicshf=$(27*${pool_member_rank}+26)
+		  NumberCOCALVINicshf=$((27*${pool_member_rank}+26))
 		  NumberCOCALVINicshf_4dgts=$(printf "%04i\n" ${NumberCOCALVINicshf})
 		      ncrename -O -d loc00${NumberCOCALVINicshf_4dgts}_cnt_ncnt,loc000000_cnt_ncnt ${file_in}
 		      ncrename -O -d loc00${NumberCOCALVINicshf_4dgts}_COCALVIN__${pool_member_rank}_nx,loc000000_COCALVIN_nx ${file_in}
 		      ncrename -O -d loc00${NumberCOCALVINicshf_4dgts}_COCALVIN__${pool_member_rank}_ny,loc000000_COCALVIN_ny ${file_in}
-		      ncrename -O -d COCALVIN__${pool_member_rank}_nx,COCALVIN_nx ${file_in}
-		      ncrename -O -d COCALVIN__${pool_member_rank}_ny,COCALVIN_ny ${file_in}
 		      ncrename -O -v loc00${NumberCOCALVINicshf_4dgts}_cnt,loc000000_cnt ${file_in}
 		      ncrename -O -v loc00${NumberCOCALVINicshf_4dgts}_COCALVIN__${pool_member_rank},loc000000_COCALVIN ${file_in}
@@ -1941,5 +1932,4 @@
             echo $generic_restart_file_name_in
 	    echo $file_in
-
         nb_restart_file=$( ls ${generic_restart_file_name_in}_????.nc 2>/dev/null | wc -l )
         if [ ${nb_restart_file} -gt 1 ] ; then
