surfaceFilmModels::contactAngleForces: Provide empty list default value for zeroForcePatches
This commit is contained in:
@ -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())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user