ENH: polyMesh: re-use findInstance result

This commit is contained in:
mattijs
2013-08-14 10:03:05 +01:00
parent b203ac5e97
commit af37ca2dec

View File

@ -170,7 +170,7 @@ Foam::polyMesh::polyMesh(const IOobject& io)
IOobject IOobject
( (
"owner", "owner",
time().findInstance(meshDir(), "faces"), faces_.instance(),
meshSubDir, meshSubDir,
*this, *this,
IOobject::READ_IF_PRESENT, IOobject::READ_IF_PRESENT,
@ -182,7 +182,7 @@ Foam::polyMesh::polyMesh(const IOobject& io)
IOobject IOobject
( (
"neighbour", "neighbour",
time().findInstance(meshDir(), "faces"), faces_.instance(),
meshSubDir, meshSubDir,
*this, *this,
IOobject::READ_IF_PRESENT, IOobject::READ_IF_PRESENT,