From 03ba4bccc8d9493e6a25acbdf5fa7fab8654cebb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franz=20P=C3=B6schel?= Date: Fri, 15 Nov 2024 16:10:45 +0100 Subject: [PATCH] Remove hasMeshes / hasParticles logic --- src/Iteration.cpp | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/src/Iteration.cpp b/src/Iteration.cpp index f263a0ca32..960c1e4b14 100644 --- a/src/Iteration.cpp +++ b/src/Iteration.cpp @@ -589,29 +589,6 @@ void Iteration::read_impl(std::string const &groupPath) Parameter pList; IOHandler()->enqueue(IOTask(this, pList)); - auto version = IOHandler()->m_standard; - bool hasMeshes = false; - bool hasParticles = false; - if (version <= OpenpmdStandard::v_1_0_1) - { - IOHandler()->enqueue(IOTask(this, pList)); - IOHandler()->flush(internal::defaultFlushParams); - hasMeshes = std::count( - pList.paths->begin(), - pList.paths->end(), - auxiliary::replace_last(s.meshesPath(), "/", "")) == 1; - hasParticles = - std::count( - pList.paths->begin(), - pList.paths->end(), - auxiliary::replace_last(s.particlesPath(), "/", "")) == 1; - pList.paths->clear(); - } - else - { - hasMeshes = s.containsAttribute("meshesPath"); - hasParticles = s.containsAttribute("particlesPath"); - } // @todo restore compatibility with openPMD 1.0.*: // hasMeshes <-> meshesPath is defined