Skip to content
Snippets Groups Projects
Commit 725e3e5e authored by graham's avatar graham
Browse files

ENH: InteractionLists. Clearing cloud_ along with the

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

COMP: Adding surfaceFilmModels to
incompressibleUncoupledKinematicParcelFoam/Make/options
parent b19a8e37
No related branches found
No related tags found
No related merge requests found
...@@ -10,6 +10,7 @@ EXE_INC = \ ...@@ -10,6 +10,7 @@ EXE_INC = \
-I$(LIB_SRC)/transportModels/incompressible/singlePhaseTransportModel \ -I$(LIB_SRC)/transportModels/incompressible/singlePhaseTransportModel \
-I$(LIB_SRC)/finiteVolume/lnInclude \ -I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude \ -I$(LIB_SRC)/meshTools/lnInclude \
-I$(LIB_SRC)/surfaceFilmModels/lnInclude
EXE_LIBS = \ EXE_LIBS = \
-llagrangian \ -llagrangian \
...@@ -22,4 +23,5 @@ EXE_LIBS = \ ...@@ -22,4 +23,5 @@ EXE_LIBS = \
-lincompressibleLESModels \ -lincompressibleLESModels \
-lincompressibleTransportModels \ -lincompressibleTransportModels \
-lfiniteVolume \ -lfiniteVolume \
-lmeshTools -lmeshTools \
-lsurfaceFilmModels
...@@ -323,6 +323,8 @@ void Foam::InteractionLists<ParticleType>::prepareParticlesToRefer ...@@ -323,6 +323,8 @@ void Foam::InteractionLists<ParticleType>::prepareParticlesToRefer
referredParticles_[i].clear(); referredParticles_[i].clear();
} }
cloud_.clear();
forAll(cellIndexAndTransformToDistribute_, i) forAll(cellIndexAndTransformToDistribute_, i)
{ {
const labelPair giat = cellIndexAndTransformToDistribute_[i]; const labelPair giat = cellIndexAndTransformToDistribute_[i];
...@@ -368,8 +370,6 @@ void Foam::InteractionLists<ParticleType>::writeReferredParticleCloud() ...@@ -368,8 +370,6 @@ void Foam::InteractionLists<ParticleType>::writeReferredParticleCloud()
if (writeCloud) if (writeCloud)
{ {
cloud_.clear();
forAll(referredParticles_, refCellI) forAll(referredParticles_, refCellI)
{ {
const IDLList<ParticleType>& refCell = referredParticles_[refCellI]; const IDLList<ParticleType>& refCell = referredParticles_[refCellI];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment