Skip to content
Snippets Groups Projects
Commit 24931318 authored by andy's avatar andy
Browse files

ENH: Added default to AMI surface type (polyPatch)

parent 2d5f2d8c
No related merge requests found
......@@ -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")
{
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment