mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
unmapped particle did not get cellID set
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user