From e7cde02a41c6e753e63c03b7bbb11f5350c1b42c Mon Sep 17 00:00:00 2001 From: Tobias Meisel <tobias.meisel@ufz.de> Date: Tue, 5 Jan 2021 21:35:32 +0100 Subject: [PATCH] XdmfDiff Fix bug when data is in separate hdf5 file extra read call is needed only for hdf5 file --- Tests/xdmfdiff/xdmfdiff.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Tests/xdmfdiff/xdmfdiff.cpp b/Tests/xdmfdiff/xdmfdiff.cpp index eddb11c2e6d..34497cc5444 100644 --- a/Tests/xdmfdiff/xdmfdiff.cpp +++ b/Tests/xdmfdiff/xdmfdiff.cpp @@ -170,16 +170,19 @@ std::unique_ptr<Grid> readMesh(std::string const& filename, auto const gridcollection = domain->getGridCollection("Collection"); auto const ungrid = gridcollection->getUnstructuredGrid(timestep); auto const geometry = ungrid->getGeometry(); + geometry->read(); int const size_points = geometry->getSize(); std::vector<double> points(size_points); geometry->getValues(0, points.data(), size_points); auto const topology = ungrid->getTopology(); + topology->read(); int const size_topology = topology->getSize(); std::vector<int> topology_values(size_topology); topology->getValues(0, topology_values.data(), size_topology); auto const attribute = ungrid->getAttribute(attribute_name); + attribute->read(); int const attribute_size = attribute->getSize(); std::vector<double> attribute_values(attribute_size); attribute->getValues(0, attribute_values.data(), attribute_size); -- GitLab