Commit 103b37d5 authored by mattijs's avatar mattijs
Browse files

unmapped particle did not get cellID set

parent 731ae70e
......@@ -223,6 +223,7 @@ void mapLagrangian(const meshToMesh& meshToMeshInterp)
{
unmappedSource.erase(sourceParticleI);
addParticles.append(sourceParticleI);
iter().cell()=targetCell;
targetParcels.addParticle
(
sourceParcels.remove(&iter())
......
......@@ -329,6 +329,9 @@ public:
//- Return current particle position
inline vector& position();
//- Return current cell particle is in
inline label& cell();
//- Return current cell particle is in
inline label cell() const;
......
......@@ -303,6 +303,12 @@ inline label Particle<ParticleType>::cell() const
return celli_;
}
template<class ParticleType>
inline label& Particle<ParticleType>::cell()
{
return celli_;
}
template<class ParticleType>
inline label Particle<ParticleType>::face() const
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment