Skip to content

Commit dc1501e

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 14b628a commit dc1501e

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

include/openPMD/backend/ContainerImpl.tpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
* If not, see <http://www.gnu.org/licenses/>.
2020
*/
2121

22+
#include "openPMD/Iteration.hpp" // needed for index caching in operator[]
2223
#include "openPMD/backend/Container.hpp"
23-
#include "openPMD/Iteration.hpp" // needed for index caching in operator[]
2424
/*
2525
* Instantiations in src/backend/Container.cpp
2626
* This file exists so that our tests can include the Container class with

src/Series.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2606,7 +2606,8 @@ Series::iterations_iterator Series::indexOf(Iteration const &iteration)
26062606
auto &series = get();
26072607
// first try the cached index; if it points to the correct entry return it
26082608
auto idx = iteration.get().m_iterationIndex;
2609-
if (idx != 0) // zero is default/unset but index 0 is valid, so we still check
2609+
if (idx !=
2610+
0) // zero is default/unset but index 0 is valid, so we still check
26102611
{
26112612
auto it = series.iterations.find(idx);
26122613
if (it != series.iterations.end() &&

test/SerialIOTest.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5404,7 +5404,6 @@ TEST_CASE("variableBasedSingleIteration", "[serial][adios2]")
54045404
}
54055405
}
54065406

5407-
54085407
// verify that the iteration index is cached inside the Iteration object and
54095408
// that Series::indexOf can make use of it to find the map entry without
54105409
// scanning all iterations.

0 commit comments

Comments
 (0)