Commit bd91a2d5 authored by graham's avatar graham
Browse files

ENH: Adding bools to turn off initCellFacePt() for reconstruction, post-processing etc.

parent 27dc56ed
......@@ -102,7 +102,8 @@ Foam::lagrangianFieldDecomposer::lagrangianFieldDecomposer
(
positions_,
ppi.position(),
procCelli
procCelli,
false
)
);
}
......
......@@ -162,7 +162,8 @@ Foam::Particle<ParticleType>::Particle
(
const Cloud<ParticleType>& cloud,
const vector& position,
const label cellI
const label cellI,
bool doCellFacePt
)
:
cloud_(cloud),
......@@ -175,7 +176,10 @@ Foam::Particle<ParticleType>::Particle
origProc_(Pstream::myProcNo()),
origId_(cloud_.getNewParticleID())
{
initCellFacePt();
if (doCellFacePt)
{
initCellFacePt();
}
}
......
......@@ -346,7 +346,8 @@ public:
(
const Cloud<ParticleType>&,
const vector& position,
const label cellI
const label cellI,
bool doCellFacePt = true
);
//- Construct from Istream
......
......@@ -68,15 +68,17 @@ public:
Particle<passiveParticle>(c, position, cellI, tetFaceI, tetPtI)
{}
//- Construct from components, with searching for tetFace and tetPt
//- Construct from components, with searching for tetFace and
// tetPt unless disabled by doCellFacePt = false.
passiveParticle
(
const Cloud<passiveParticle>& c,
const vector& position,
const label cellI
const label cellI,
bool doCellFacePt = true
)
:
Particle<passiveParticle>(c, position, cellI)
Particle<passiveParticle>(c, position, cellI, doCellFacePt)
{}
//- Construct from Istream
......
......@@ -69,7 +69,8 @@ void Foam::reconstructLagrangianPositions
(
lagrangianPositions,
ppi.position(),
cellMap[ppi.cell()]
cellMap[ppi.cell()],
false
)
);
}
......
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