Skip to content

Commit 3f4a8d2

Browse files
committed
Specialize a Polymorphic ParticleContainer
Using the `amrex::PolymorphicArenaAllocator`
1 parent 93043f5 commit 3f4a8d2

File tree

5 files changed

+7
-0
lines changed

5 files changed

+7
-0
lines changed

src/Base/PODVector.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ void make_PODVector(py::module &m, std::string typestr)
148148
make_PODVector<T, amrex::ManagedArenaAllocator<T>> (m, typestr, "managed");
149149
make_PODVector<T, amrex::AsyncArenaAllocator<T>> (m, typestr, "async");
150150
#endif
151+
make_PODVector<T, amrex::PolymorphicArenaAllocator<T>> (m, typestr, "polymorphic");
151152
}
152153

153154
void init_PODVector(py::module& m)

src/Particle/ArrayOfStructs.H

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,4 +187,5 @@ void make_ArrayOfStructs(py::module &m)
187187
make_ArrayOfStructs<ParticleType, amrex::ManagedArenaAllocator> (m, "managed");
188188
make_ArrayOfStructs<ParticleType, amrex::AsyncArenaAllocator> (m, "async");
189189
#endif
190+
make_ArrayOfStructs<ParticleType, amrex::PolymorphicArenaAllocator> (m, "polymorphic");
190191
}

src/Particle/ParticleContainer.H

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -564,4 +564,6 @@ void make_ParticleContainer_and_Iterators (py::module &m)
564564
make_ParticleContainer_and_Iterators<T_ParticleType, T_NArrayReal, T_NArrayInt,
565565
amrex::AsyncArenaAllocator>(m, "async");
566566
#endif
567+
make_ParticleContainer_and_Iterators<T_ParticleType, T_NArrayReal, T_NArrayInt,
568+
amrex::PolymorphicArenaAllocator>(m, "polymorphic");
567569
}

src/Particle/ParticleTile.H

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,4 +202,6 @@ void make_ParticleTile(py::module &m)
202202
make_ParticleTile<T_ParticleType, NArrayReal, NArrayInt,
203203
amrex::AsyncArenaAllocator>(m, "async");
204204
#endif
205+
make_ParticleTile<T_ParticleType, NArrayReal, NArrayInt,
206+
amrex::PolymorphicArenaAllocator>(m, "polymorphic");
205207
}

src/Particle/StructOfArrays.H

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,4 +122,5 @@ void make_StructOfArrays(py::module &m)
122122
make_StructOfArrays<NReal, NInt, amrex::ManagedArenaAllocator, use64BitIdCpu>(m, "managed");
123123
make_StructOfArrays<NReal, NInt, amrex::AsyncArenaAllocator, use64BitIdCpu>(m, "async");
124124
#endif
125+
make_StructOfArrays<NReal, NInt, amrex::PolymorphicArenaAllocator, use64BitIdCpu>(m, "polymorphic");
125126
}

0 commit comments

Comments
 (0)