Skip to content

Commit cbe5863

Browse files
committed
Remove hasMeshes / hasParticles logic
1 parent 44d22b2 commit cbe5863

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

src/Iteration.cpp

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -604,29 +604,6 @@ void Iteration::read_impl(std::string const &groupPath)
604604

605605
Parameter<Operation::LIST_PATHS> pList;
606606
IOHandler()->enqueue(IOTask(this, pList));
607-
auto version = IOHandler()->m_standard;
608-
bool hasMeshes = false;
609-
bool hasParticles = false;
610-
if (version <= OpenpmdStandard::v_1_0_1)
611-
{
612-
IOHandler()->enqueue(IOTask(this, pList));
613-
IOHandler()->flush(internal::defaultFlushParams);
614-
hasMeshes = std::count(
615-
pList.paths->begin(),
616-
pList.paths->end(),
617-
auxiliary::replace_last(s.meshesPath(), "/", "")) == 1;
618-
hasParticles =
619-
std::count(
620-
pList.paths->begin(),
621-
pList.paths->end(),
622-
auxiliary::replace_last(s.particlesPath(), "/", "")) == 1;
623-
pList.paths->clear();
624-
}
625-
else
626-
{
627-
hasMeshes = s.containsAttribute("meshesPath");
628-
hasParticles = s.containsAttribute("particlesPath");
629-
}
630607

631608
// @todo restore compatibility with openPMD 1.0.*:
632609
// hasMeshes <-> meshesPath is defined

0 commit comments

Comments
 (0)