--- trunk/libf/IOIPSL/Histcom/histbeg_totreg.f90 2012/10/02 15:50:56 67 +++ trunk/Sources/IOIPSL/Histcom/histbeg_totreg.f 2016/03/11 18:47:26 178 @@ -14,8 +14,16 @@ ! constant are equal. In other words we do not need the full 2D ! matrix to describe the grid, just two vectors. + USE histcom_var, only: nb_files_max + IMPLICIT NONE + INTEGER:: nb_files = 0 + REAL, DIMENSION(nb_files_max), SAVE:: date0, deltat + LOGICAL:: regular(nb_files_max) = .TRUE. + + private nb_files_max + CONTAINS SUBROUTINE histbeg_totreg(filename, lon_1d, lat_1d, orix, szx, oriy, szy, & @@ -28,11 +36,10 @@ ! setting a zoom. It also gets the global parameters into the ! input-output subsystem. - USE ioipslmpp, ONLY: ioipslmpp_file USE errioipsl, ONLY: histerr - USE histcom_var, ONLY: assc_file, date0, deltat, full_size, itau0, & - lock_modname, model_name, nb_files, nb_files_max, nb_hax, nb_tax, & - nb_var, nb_zax, ncdf_ids, regular, slab_ori, slab_sz, xid, yid, zoom + USE histcom_var, ONLY: assc_file, full_size, itau0, lock_modname, & + model_name, nb_hax, nb_tax, nb_var, nb_zax, ncdf_ids, slab_ori, & + slab_sz, xid, yid, zoom use histhori_regular_m, only: histhori_regular USE netcdf, ONLY: nf90_clobber, nf90_global use netcdf95, only: nf95_create, nf95_def_dim, nf95_put_att @@ -107,10 +114,6 @@ file = filename(:lengf) END IF - ! Add PE number in file name on MPP - - CALL ioipslmpp_file(file) - ! Keep track of the name of the files opened lengf = len_trim(file)