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