Merge branch 'master' of /home/noisy3/OpenFOAM/OpenFOAM-dev

This commit is contained in:
mattijs
2011-03-09 18:11:06 +00:00
2 changed files with 4 additions and 15 deletions

View File

@ -25,7 +25,6 @@ License
#include "cloud.H"
#include "Time.H"
#include "polyMesh.H"
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
@ -50,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();
}