Skip to content

Commit

Permalink
Remove hasMeshes / hasParticles logic
Browse files Browse the repository at this point in the history
  • Loading branch information
franzpoeschel committed Nov 15, 2024
1 parent ce5704d commit fa14728
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions src/Iteration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -564,29 +564,6 @@ void Iteration::read_impl(std::string const &groupPath)

Parameter<Operation::LIST_PATHS> 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
Expand Down

0 comments on commit fa14728

Please sign in to comment.