Commits

Jed Brown committed ef8f00b

hdf5: remove bogus loop over dimension [petsc-maint 121765]

This was leaking filespaces.

  • Participants
  • Parent commits 74a42cc

Comments (0)

Files changed (2)

File src/dm/impls/da/gr2.c

     chunkDims[dim] = dims[dim];
     ++dim;
 #endif
-  for (i=0; i < dim; ++i)
   filespace = H5Screate_simple(dim, dims, maxDims); 
   if (filespace == -1) SETERRQ(PETSC_COMM_SELF,PETSC_ERR_LIB,"Cannot H5Screate_simple()");
 

File src/vec/vec/impls/mpi/pdvec.c

   chunkDims[dim] = dims[dim];
   ++dim;
 #endif
-  for (i=0; i < dim; ++i)
   filespace = H5Screate_simple(dim, dims, maxDims);
   if (filespace == -1) SETERRQ(PETSC_COMM_SELF,PETSC_ERR_LIB,"Cannot H5Screate_simple()");