Skip to content

Commit 828cee8

Browse files
committed
removed the test for indices. needs to be invasive to pass the compiler. no point
1 parent 2369479 commit 828cee8

1 file changed

Lines changed: 0 additions & 38 deletions

File tree

test/SerialIOTest.cpp

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

5407-
#if openPMD_HAVE_ADIOS2_BP5
5408-
// verify that the iteration index is cached inside the Iteration object and
5409-
// that Series::indexOf can make use of it to find the map entry without
5410-
// scanning all iterations.
5411-
TEST_CASE("iterationIndexCaching", "[serial][adios2]")
5412-
{
5413-
using auxiliary::remove_file;
5414-
std::string file = "tmp-index-cache.bp5";
5415-
// ensure a clean slate
5416-
remove_file(file);
5417-
5418-
// write a few iterations and close them
5419-
{
5420-
Series s(file, Access::CREATE_LINEAR);
5421-
for (uint64_t i = 0; i < 3; ++i)
5422-
{
5423-
auto &it = s.iterations[i];
5424-
it.setTime<double>(static_cast<double>(i));
5425-
it.close();
5426-
}
5427-
s.flush();
5428-
}
5429-
5430-
// reopen read-only and verify that Series::indexOf can find each iteration
5431-
// based on the cached index in the Iteration object
5432-
{
5433-
Series s(file, Access::READ_ONLY);
5434-
for (auto &pair : s.iterations)
5435-
{
5436-
auto &iter = pair.second;
5437-
auto it = s.indexOf(iter);
5438-
REQUIRE(it->first == pair.first);
5439-
}
5440-
}
5441-
5442-
remove_file(file);
5443-
}
5444-
#endif
54455407
namespace epsilon
54465408
{
54475409
template <typename T>

0 commit comments

Comments
 (0)