Skip to content

Commit a657821

Browse files
authored
Merge pull request #159 from piyueh/fix-probe-count-attrs
fix #157 -- Move attribute `count` to the corresponding dataset.
2 parents ef82cd9 + 711d8e8 commit a657821

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/misc/probes.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -562,8 +562,8 @@ PetscErrorCode ProbeVolume::writeVec_HDF5(const Vec &vec, const PetscReal &t)
562562
if (count != 0) // add number of time-steps accumulated as attribute
563563
{
564564
ierr = PetscViewerHDF5WriteAttribute(
565-
viewer, ("/" + field_str + "/" + std::to_string(t)).c_str(), "count",
566-
PETSC_INT, &count); CHKERRQ(ierr);
565+
viewer, std::to_string(t).c_str(), "count", PETSC_INT, &count);
566+
CHKERRQ(ierr);
567567
}
568568

569569
PetscFunctionReturn(0);

0 commit comments

Comments
 (0)