ENH: Added default to AMI surface type (polyPatch)

This commit is contained in:
andy
2011-09-07 14:39:50 +01:00
parent 2d5f2d8cf5
commit 2493131810

View File

@ -580,7 +580,7 @@ bool Foam::cyclicAMIPolyPatch::owner() const
const Foam::autoPtr<Foam::searchableSurface>&
Foam::cyclicAMIPolyPatch::surfPtr()
{
word surfType(surfDict_.lookup("type"));
const word surfType(surfDict_.lookupOrDefault<word>("type", "none"));
if (!surfPtr_.valid() && owner() && surfType != "none")
{