diff --git a/etc/codeTemplates/functionObject/FUNCTIONOBJECT.C b/etc/codeTemplates/functionObject/FUNCTIONOBJECT.C index 07606e89c3..d422326abc 100644 --- a/etc/codeTemplates/functionObject/FUNCTIONOBJECT.C +++ b/etc/codeTemplates/functionObject/FUNCTIONOBJECT.C @@ -52,7 +52,7 @@ Foam::functionObjects::FUNCTIONOBJECT::FUNCTIONOBJECT ) : fvMeshFunctionObject(name, runTime, dict), - boolData_(dict.getOrDefault("boolData"), true), + boolData_(dict.getOrDefault("boolData", true)), labelData_(dict.get