Skip to content
Snippets Groups Projects
Commit 8427eccd authored by sergio's avatar sergio Committed by Andrew Heather
Browse files

ENH: Triggering oldCellCentres calculation in Clouds

parent 9a394810
Branches
Tags
1 merge request!406ENH: MPPIC dynamic mesh
......@@ -85,6 +85,7 @@ Foam::Cloud<ParticleType>::Cloud
geometryType_(cloud::geometryType::COORDINATES)
{
checkPatches();
polyMesh_.oldCellCentres();
// Ask for the tetBasePtIs to trigger all processors to build
// them, otherwise, if some processors have no particles then
......@@ -174,7 +175,7 @@ void Foam::Cloud<ParticleType>::move
// Initialise the stepFraction moved for the particles
forAllIters(*this, pIter)
{
pIter().stepFraction() = 0;
pIter().reset();
}
// List of lists of particles to be transferred for all of the
......@@ -360,6 +361,7 @@ void Foam::Cloud<ParticleType>::autoMap(const mapPolyMesh& mapper)
// them, otherwise, if some processors have no particles then
// there is a comms mismatch.
polyMesh_.tetBasePtIs();
polyMesh_.oldCellCentres();
const vectorField& positions = globalPositionsPtr_();
......
......@@ -177,6 +177,9 @@ Foam::Cloud<ParticleType>::Cloud
{
checkPatches();
polyMesh_.tetBasePtIs();
polyMesh_.oldCellCentres();
initCloud(checkClass);
}
......
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