mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Initialise mesh demand-driven data in cloud constructor
This commit is contained in:
@ -49,7 +49,20 @@ Foam::cloud::cloud(const objectRegistry& obr, const word& cloudName)
|
|||||||
IOobject::AUTO_WRITE
|
IOobject::AUTO_WRITE
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
{}
|
{
|
||||||
|
if (isA<polyMesh>(obr))
|
||||||
|
{
|
||||||
|
if (debug)
|
||||||
|
{
|
||||||
|
Pout<< "cloud: Initialising polyMesh nGeometricD" << endl;
|
||||||
|
}
|
||||||
|
|
||||||
|
// initialise mesh dimensions - needed for parallel runs
|
||||||
|
// due to lazy evaluation of valid mesh dimensions
|
||||||
|
const polyMesh& mesh = dynamic_cast<const polyMesh&>(obr);
|
||||||
|
const_cast<polyMesh&>(mesh).nGeometricD();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
||||||
|
|||||||
Reference in New Issue
Block a user