Commits

Matt Knepley committed 381dd69

Fixed HDF5 VecLoad

(cherry picked from commit 9c95f1f0bf874a9750b779c67517fdf53a7067b2)

  • Participants
  • Parent commits b9bb745

Comments (0)

Files changed (1)

src/vec/vec/utils/vecio.c

     ++dim;
   }
   ++dim;
-  if (bs > 1) {
+  if (bs >= 1) {
     ++dim;
   }
 #if defined(PETSC_USE_COMPLEX)
     } else {
       SETERRQ2(PETSC_COMM_SELF,PETSC_ERR_FILE_UNEXPECTED, "Dimension of array in file %d not %d as expected",rdim,dim);
     }
-} else if (bs > 1 && bs != (PetscInt) dims[bsInd]) {
+} else if (bs >= 1 && bs != (PetscInt) dims[bsInd]) {
     SETERRQ2(PETSC_COMM_SELF, PETSC_ERR_FILE_UNEXPECTED, "Block size %d specified for vector does not match blocksize in file %d",bs,dims[bsInd]);
   }
 
   }
   count[dim] = PetscHDF5IntCast(n)/bs;
   ++dim;
-  if (bs > 1) {
+  if (bs >= 1) {
     count[dim] = bs;
     ++dim;
   }
   }
   offset[dim] = PetscHDF5IntCast(low/bs);
   ++dim;
-  if (bs > 1) {
+  if (bs >= 1) {
     offset[dim] = 0;
     ++dim;
   }