Skip to content

Commit 08c421d

Browse files
committed
Fixes after rebase
1 parent f1d609a commit 08c421d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/CustomHierarchy.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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))

src/backend/Container.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
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)
3638
OPENPMD_INSTANTIATE(Mesh)
3739
OPENPMD_INSTANTIATE(MeshRecordComponent)
3840
OPENPMD_INSTANTIATE(ParticlePatches)

0 commit comments

Comments
 (0)