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 05d945c9ce
commit a4eee79496

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())
{