diff --git a/applications/solvers/potentialFoam/potentialFoam.C b/applications/solvers/potentialFoam/potentialFoam.C index cca53f715b..6973c7bd0a 100644 --- a/applications/solvers/potentialFoam/potentialFoam.C +++ b/applications/solvers/potentialFoam/potentialFoam.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2024 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -78,11 +78,7 @@ int main(int argc, char *argv[]) "Calculate and write the pressure field" ); - argList::addBoolOption - ( - "withFunctionObjects", - "execute functionObjects" - ); + #include "addWithFunctionObjectsOption.H" #include "setRootCase.H" #include "createTime.H" diff --git a/src/OpenFOAM/include/addWithFunctionObjectsOption.H b/src/OpenFOAM/include/addWithFunctionObjectsOption.H new file mode 100644 index 0000000000..341813b6f9 --- /dev/null +++ b/src/OpenFOAM/include/addWithFunctionObjectsOption.H @@ -0,0 +1,7 @@ +Foam::argList::removeOption("noFunctionObjects"); + +Foam::argList::addBoolOption +( + "withFunctionObjects", + "Execute functionObjects" +);