File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -402,8 +402,10 @@ void CustomHierarchy::read(
402402
403403 std::deque<std::string> constantComponentsPushback;
404404 auto &data = get ();
405- EraseStaleMeshes meshesMap (data.embeddedMeshesWrapped ());
406- EraseStaleParticles particlesMap (data.embeddedParticlesWrapped ());
405+ auto embeddedMeshes = data.embeddedMeshesWrapped ();
406+ auto embeddedParticles = data.embeddedParticlesWrapped ();
407+ EraseStaleMeshes meshesMap (embeddedMeshes);
408+ EraseStaleParticles particlesMap (embeddedParticles);
407409 for (auto const &path : *pList.paths )
408410 {
409411 switch (mpp.determineType (currentPath))
Original file line number Diff line number Diff line change 2121
2222#include " openPMD/backend/ContainerImpl.tpp"
2323
24+ #include " openPMD/CustomHierarchy.hpp"
2425#include " openPMD/Iteration.hpp"
2526#include " openPMD/Mesh.hpp"
2627#include " openPMD/ParticlePatches.hpp"
@@ -33,6 +34,7 @@ namespace openPMD
3334#define OPENPMD_COMMA ,
3435#define OPENPMD_INSTANTIATE (type ) template class Container <type>;
3536
37+ OPENPMD_INSTANTIATE (CustomHierarchy)
3638OPENPMD_INSTANTIATE (Mesh)
3739OPENPMD_INSTANTIATE (MeshRecordComponent)
3840OPENPMD_INSTANTIATE (ParticlePatches)
You can’t perform that action at this time.
0 commit comments