surfaceFilmModels::contactAngleForces: Provide empty list default value for zeroForcePatches

This commit is contained in:
Henry Weller
2017-03-31 22:33:41 +01:00
parent a067151810
commit dd1ca3302e

View File

@ -46,7 +46,10 @@ defineTypeNameAndDebug(contactAngleForce, 0);
void contactAngleForce::initialise()
{
const wordReList zeroForcePatches(coeffDict_.lookup("zeroForcePatches"));
const wordReList zeroForcePatches
(
coeffDict_.lookupOrDefault<wordReList>("zeroForcePatches", wordReList())
);
if (zeroForcePatches.size())
{