diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6f743cf3e3..61147bc862 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -66,7 +66,7 @@ repos: # clang-format v13 # to run manually, use .github/workflows/clang-format/clang-format.sh - repo: https://github.com/pre-commit/mirrors-clang-format - rev: v18.1.3 + rev: v18.1.5 hooks: - id: clang-format # By default, the clang-format hook configures: diff --git a/include/openPMD/RecordComponent.tpp b/include/openPMD/RecordComponent.tpp index bbc30bd1d0..0a4086e3d8 100644 --- a/include/openPMD/RecordComponent.tpp +++ b/include/openPMD/RecordComponent.tpp @@ -135,9 +135,11 @@ RecordComponent::loadChunk(std::shared_ptr data, Offset o, Extent e) if (extent.size() != dim || offset.size() != dim) { std::ostringstream oss; - oss << "Dimensionality of chunk (" << "offset=" << offset.size() - << "D, " << "extent=" << extent.size() << "D) " - << "and record component (" << int(dim) << "D) " << "do not match."; + oss << "Dimensionality of chunk (" + << "offset=" << offset.size() << "D, " + << "extent=" << extent.size() << "D) " + << "and record component (" << int(dim) << "D) " + << "do not match."; throw std::runtime_error(oss.str()); } Extent dse = getExtent(); diff --git a/src/RecordComponent.cpp b/src/RecordComponent.cpp index d8ebda0113..0011363bc4 100644 --- a/src/RecordComponent.cpp +++ b/src/RecordComponent.cpp @@ -499,8 +499,8 @@ void RecordComponent::verifyChunk( { std::ostringstream oss; oss << "Joined array: Must specify an empty offset (given: " - << "offset=" << o.size() << "D, " << "extent=" << e.size() - << "D)."; + << "offset=" << o.size() << "D, " + << "extent=" << e.size() << "D)."; throw std::runtime_error(oss.str()); } if (e.size() != dim) @@ -508,8 +508,8 @@ void RecordComponent::verifyChunk( std::ostringstream oss; oss << "Joined array: Dimensionalities of chunk extent and dataset " "extent must be equivalent (given: " - << "offset=" << o.size() << "D, " << "extent=" << e.size() - << "D)."; + << "offset=" << o.size() << "D, " + << "extent=" << e.size() << "D)."; throw std::runtime_error(oss.str()); } for (size_t i = 0; i < dim; ++i) @@ -529,9 +529,11 @@ void RecordComponent::verifyChunk( if (e.size() != dim || o.size() != dim) { std::ostringstream oss; - oss << "Dimensionality of chunk (" << "offset=" << o.size() << "D, " - << "extent=" << e.size() << "D) " << "and record component (" - << int(dim) << "D) " << "do not match."; + oss << "Dimensionality of chunk (" + << "offset=" << o.size() << "D, " + << "extent=" << e.size() << "D) " + << "and record component (" << int(dim) << "D) " + << "do not match."; throw std::runtime_error(oss.str()); } for (uint8_t i = 0; i < dim; ++i) diff --git a/test/ParallelIOTest.cpp b/test/ParallelIOTest.cpp index 0c8c2989d8..32851d8dc3 100644 --- a/test/ParallelIOTest.cpp +++ b/test/ParallelIOTest.cpp @@ -415,7 +415,8 @@ void available_chunks_test(std::string const &file_ending) "parameters": { "NumAggregators":)END" - << "\"" << std::to_string(mpi_size) << "\"" << R"END( + << "\"" << std::to_string(mpi_size) << "\"" + << R"END( } } }, @@ -1040,7 +1041,8 @@ void hipace_like_write(std::string const &file_ending) int const step = first_rank_step - my_first_step; if (verbose) - std::cout << "[" << i_mpi_rank << "] " << "step: " << step + std::cout << "[" << i_mpi_rank << "] " + << "step: " << step << " | first_ranks_step: " << first_rank_step << std::endl; // do we start writing to a new step?