File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
54455407namespace epsilon
54465408{
54475409template <typename T>
You can’t perform that action at this time.
0 commit comments