From b8479da941b810a3c8cab4eaaff696c4eaa09a68 Mon Sep 17 00:00:00 2001 From: Thomas Fischer <thomas.fischer@ufz.de> Date: Thu, 16 Feb 2017 07:50:09 +0100 Subject: [PATCH] [MeL/IO/MPI_IO] Use function to read PartitionMetaData. --- MeshLib/IO/MPI_IO/NodePartitionedMeshReader.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MeshLib/IO/MPI_IO/NodePartitionedMeshReader.cpp b/MeshLib/IO/MPI_IO/NodePartitionedMeshReader.cpp index e46b8093815..3e6f1c86452 100644 --- a/MeshLib/IO/MPI_IO/NodePartitionedMeshReader.cpp +++ b/MeshLib/IO/MPI_IO/NodePartitionedMeshReader.cpp @@ -221,8 +221,8 @@ void NodePartitionedMeshReader::readPropertiesConfigDataBinary( static_cast<long>(_mpi_rank * sizeof(MeshLib::IO::PropertyVectorPartitionMetaData)); is.seekg(offset); - unsigned long number_of_tuples = 0; - is.read(reinterpret_cast<char*>(&number_of_tuples), sizeof(unsigned long)); + boost::optional<MeshLib::IO::PropertyVectorPartitionMetaData> pvpmd( + MeshLib::IO::readPropertyVectorPartitionMetaData(is)); INFO("%u tuples in partition %u.", number_of_tuples, _mpi_rank); } -- GitLab