diff --git a/src/hdf5/HDF5IO.cpp b/src/hdf5/HDF5IO.cpp index 707cf808..f78b8449 100644 --- a/src/hdf5/HDF5IO.cpp +++ b/src/hdf5/HDF5IO.cpp @@ -86,7 +86,7 @@ Status checkStatus(int status) Status HDF5IO::flush() { - int status = H5Fflush(this->file->getId(), H5F_SCOPE_GLOBAL); + int status = H5Fflush(this->file->getId(), H5F_SCOPE_GLOBAL); return checkStatus(status); } diff --git a/src/hdf5/HDF5IO.hpp b/src/hdf5/HDF5IO.hpp index 1842714f..9ccb39b6 100644 --- a/src/hdf5/HDF5IO.hpp +++ b/src/hdf5/HDF5IO.hpp @@ -78,7 +78,7 @@ class HDF5IO : public BaseIO * @brief Flush data to disk * @return The status of the flush operation. */ - Status flush() override; + Status flush() override; /** * @brief Creates an attribute at a given location in the file. diff --git a/tests/testHDF5IO_docs_examples.cpp b/tests/testHDF5IO_docs_examples.cpp index ec6ebc83..422f5c4e 100644 --- a/tests/testHDF5IO_docs_examples.cpp +++ b/tests/testHDF5IO_docs_examples.cpp @@ -3,8 +3,8 @@ #include #include #include -#include #include +#include #include @@ -28,15 +28,17 @@ TEST_CASE("SWMRmodeExamples", "[hdf5io]") // add a dataset std::vector testData(10000); - std::iota(testData.begin(), testData.end(), 1); // Initalize the testData to 0, 1, 2, ... 10000 + std::iota(testData.begin(), + testData.end(), + 1); // Initalize the testData to 0, 1, 2, ... 10000 std::string dataPath = "/data"; - SizeType numBlocks = 10; // write 10 chunks of + SizeType numBlocks = 10; // write 10 chunks of SizeType numSamples = testData.size(); std::unique_ptr dataset = hdf5io->createArrayDataSet( BaseDataType::I32, // type - SizeArray {0}, // size. Initial size of the dataset - SizeArray {1000}, // chunking. Size of a data chunk - dataPath); // path. Path to the dataset in the HDF5 file + SizeArray {0}, // size. Initial size of the dataset + SizeArray {1000}, // chunking. Size of a data chunk + dataPath); // path. Path to the dataset in the HDF5 file // Start recording. Starting the recording places the HDF5 file in SWMR mode Status status = hdf5io->startRecording(); @@ -56,7 +58,8 @@ TEST_CASE("SWMRmodeExamples", "[hdf5io]") REQUIRE(status == Status::Success); } - // stop recording. In SWMR mode the file is now closed and recording cannot be restarted + // stop recording. In SWMR mode the file is now closed and recording cannot + // be restarted status = hdf5io->stopRecording(); REQUIRE(hdf5io->isOpen() == false); REQUIRE(hdf5io->startRecording() == Status::Failure);