ENH: InteractionLists. Clearing cloud_ along with the

referredParticles, so there are no old particles lingering between
writes.

COMP: Adding surfaceFilmModels to
incompressibleUncoupledKinematicParcelFoam/Make/options
This commit is contained in:
graham 2010-04-09 12:30:40 +01:00
parent b19a8e3748
commit 725e3e5e4e
2 changed files with 5 additions and 3 deletions

View File

@ -10,6 +10,7 @@ EXE_INC = \
-I$(LIB_SRC)/transportModels/incompressible/singlePhaseTransportModel \
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude \
-I$(LIB_SRC)/surfaceFilmModels/lnInclude
EXE_LIBS = \
-llagrangian \
@ -22,4 +23,5 @@ EXE_LIBS = \
-lincompressibleLESModels \
-lincompressibleTransportModels \
-lfiniteVolume \
-lmeshTools
-lmeshTools \
-lsurfaceFilmModels

View File

@ -323,6 +323,8 @@ void Foam::InteractionLists<ParticleType>::prepareParticlesToRefer
referredParticles_[i].clear();
}
cloud_.clear();
forAll(cellIndexAndTransformToDistribute_, i)
{
const labelPair giat = cellIndexAndTransformToDistribute_[i];
@ -368,8 +370,6 @@ void Foam::InteractionLists<ParticleType>::writeReferredParticleCloud()
if (writeCloud)
{
cloud_.clear();
forAll(referredParticles_, refCellI)
{
const IDLList<ParticleType>& refCell = referredParticles_[refCellI];