Skip to content

Commit

Permalink
fix #157 -- Move attribute count to the corresponding dataset.
Browse files Browse the repository at this point in the history
  • Loading branch information
piyueh committed Jul 13, 2020
1 parent ef82cd9 commit 711d8e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/misc/probes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -562,8 +562,8 @@ PetscErrorCode ProbeVolume::writeVec_HDF5(const Vec &vec, const PetscReal &t)
if (count != 0) // add number of time-steps accumulated as attribute
{
ierr = PetscViewerHDF5WriteAttribute(
viewer, ("/" + field_str + "/" + std::to_string(t)).c_str(), "count",
PETSC_INT, &count); CHKERRQ(ierr);
viewer, std::to_string(t).c_str(), "count", PETSC_INT, &count);
CHKERRQ(ierr);
}

PetscFunctionReturn(0);
Expand Down

0 comments on commit 711d8e8

Please sign in to comment.