Updates to faMesh

Initialisation of communicator for parallel runs + minor formatting
This commit is contained in:
Vuko Vukcevic 2017-12-05 13:30:09 +01:00
parent 0249319d5e
commit 84fd718786
2 changed files with 3 additions and 4 deletions

View file

@ -262,7 +262,7 @@ Foam::faMesh::faMesh(const polyMesh& pMesh)
// Calculate the geometry for the patches (transformation tensors etc.)
boundary_.calcGeometry();
if (isFile(pMesh.time().timePath()/pMesh.dbDir()/"S0"))
if (isFile(pMesh.time().timePath()/"S0"))
{
S0Ptr_ = new DimensionedField<scalar, areaMesh>
(
@ -811,7 +811,7 @@ Foam::faMesh::faMesh
// Calculate the geometry for the patches (transformation tensors etc.)
boundary_.calcGeometry();
if (isFile(mesh().time().timePath()/mesh().dbDir()/"S0"))
if (isFile(mesh().time().timePath()/"S0"))
{
S0Ptr_ = new DimensionedField<scalar, areaMesh>
(
@ -1292,7 +1292,7 @@ bool Foam::faMesh::movePoints() const
if (debug)
{
InfoIn("bool faMesh::movePoints() const")
<< "Creating old cell volumes." << endl;
<< "Creating old face areas." << endl;
}
S0Ptr_ = new DimensionedField<scalar, areaMesh>

View file

@ -237,7 +237,6 @@ void Foam::faMesh::mapOldAreas(const faMeshMapper& mapper) const
}
}
}
}