Skip to content

Commit

Permalink
Merge pull request #159 from piyueh/fix-probe-count-attrs
Browse files Browse the repository at this point in the history
fix #157 -- Move attribute `count` to the corresponding dataset.
  • Loading branch information
piyueh committed Jul 13, 2020
2 parents ef82cd9 + 711d8e8 commit a657821
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/misc/probes.cpp
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 a657821

Please sign in to comment.