ENH: moved initialisation of mesh demand driven data in commit 8c09620

This commit is contained in:
andy
2011-03-08 15:41:55 +00:00
parent 0599dce7e6
commit 37316712a9
2 changed files with 4 additions and 14 deletions

View File

@ -49,20 +49,7 @@ Foam::cloud::cloud(const objectRegistry& obr, const word& cloudName)
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 * * * * * * * * * * * * * * * //

View File

@ -309,6 +309,9 @@ Foam::polyMesh::polyMesh(const IOobject& io)
WarningIn("polyMesh(const IOobject&)")
<< "no cells in mesh" << endl;
}
// Initialise demand-driven data
calcDirections();
}