Skip to content

Commit 3ac8687

Browse files
committed
make_alike: Own Type Must be Defined
Referencing self requires that self is already registered.
1 parent 9bb57dd commit 3ac8687

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Particle/ParticleContainer.H

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,8 @@ void make_ParticleContainer_and_Iterators (py::module &m, std::string allocstr)
185185
const Vector<DistributionMapping>&,
186186
const Vector<BoxArray>&,
187187
const Vector<IntVect>&>())
188-
188+
;
189+
py_pc
189190
.def("make_alike", &ParticleContainerType::template make_alike<>)
190191

191192
.def_property_readonly_static("is_soa_particle", [](const py::object&){return ParticleType::is_soa_particle;})

0 commit comments

Comments
 (0)