unmapped particle did not get cellID set

This commit is contained in:
mattijs
2009-04-01 10:33:50 +01:00
parent 731ae70e5c
commit 103b37d5e1
3 changed files with 10 additions and 0 deletions

View File

@ -223,6 +223,7 @@ void mapLagrangian(const meshToMesh& meshToMeshInterp)
{ {
unmappedSource.erase(sourceParticleI); unmappedSource.erase(sourceParticleI);
addParticles.append(sourceParticleI); addParticles.append(sourceParticleI);
iter().cell()=targetCell;
targetParcels.addParticle targetParcels.addParticle
( (
sourceParcels.remove(&iter()) sourceParcels.remove(&iter())

View File

@ -329,6 +329,9 @@ public:
//- Return current particle position //- Return current particle position
inline vector& position(); inline vector& position();
//- Return current cell particle is in
inline label& cell();
//- Return current cell particle is in //- Return current cell particle is in
inline label cell() const; inline label cell() const;

View File

@ -303,6 +303,12 @@ inline label Particle<ParticleType>::cell() const
return celli_; return celli_;
} }
template<class ParticleType>
inline label& Particle<ParticleType>::cell()
{
return celli_;
}
template<class ParticleType> template<class ParticleType>
inline label Particle<ParticleType>::face() const inline label Particle<ParticleType>::face() const