Skip to content
Snippets Groups Projects
Commit ce094078 authored by Tom Fischer's avatar Tom Fischer
Browse files

[A/U/MP] R/w tuple # in NodeWiseMeshPartitioner.

parent 3335aad8
No related branches found
No related tags found
No related merge requests found
......@@ -326,6 +326,12 @@ void NodeWiseMeshPartitioner::writePropertiesBinary(
}
MeshLib::IO::writePropertyVectorMetaDataBinary(out, pvmd);
}
for (const auto& partition : _partitions)
{
MeshLib::IO::PropertyVectorPartitionMetaData pvpmd;
pvpmd.number_of_tuples = partition.number_of_non_ghost_nodes;
MeshLib::IO::writePropertyVectorPartitionMetaData(out, pvpmd);
}
out.close();
}
......@@ -350,6 +356,17 @@ void NodeWiseMeshPartitioner::readPropertiesConfigDataBinary(
MeshLib::IO::writePropertyVectorMetaData(*pvmd);
}
}
auto pos = is.tellg();
for (std::size_t i(0); i < _npartitions; ++i) {
auto offset =
pos + static_cast<std::streampos>(
i * sizeof(MeshLib::IO::PropertyVectorPartitionMetaData));
is.seekg(offset);
unsigned long number_of_tuples = 0;
is.read(reinterpret_cast<char*>(&number_of_tuples),
sizeof(unsigned long));
INFO("%u tuples in partition %u.", number_of_tuples, i);
}
}
std::tuple<std::vector<NodeWiseMeshPartitioner::IntegerType>,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment