mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
ENH: Added default to AMI surface type (polyPatch)
This commit is contained in:
@ -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")
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user