diff --git a/applications/utilities/mesh/manipulation/moveDyMEngineMesh/moveDyMEngineMesh.C b/applications/utilities/mesh/manipulation/moveDyMEngineMesh/moveDyMEngineMesh.C index 93460e69b..467c14dbd 100644 --- a/applications/utilities/mesh/manipulation/moveDyMEngineMesh/moveDyMEngineMesh.C +++ b/applications/utilities/mesh/manipulation/moveDyMEngineMesh/moveDyMEngineMesh.C @@ -42,7 +42,7 @@ Author int main(int argc, char *argv[]) { - argList::validOptions.insert("checkFrequency", ""); + argList::validOptions.insert("checkFrequency", "int"); # include "setRootCase.H" # include "createEngineTime.H" @@ -50,7 +50,6 @@ int main(int argc, char *argv[]) // Read check frequency label checkFrequency = 1; - args.optionReadIfPresent("checkFrequency", checkFrequency); fileName path = runTime.caseName(); diff --git a/applications/utilities/mesh/manipulation/moveDynamicMesh/moveDynamicMesh.C b/applications/utilities/mesh/manipulation/moveDynamicMesh/moveDynamicMesh.C index ec19cac50..717f8ab18 100644 --- a/applications/utilities/mesh/manipulation/moveDynamicMesh/moveDynamicMesh.C +++ b/applications/utilities/mesh/manipulation/moveDynamicMesh/moveDynamicMesh.C @@ -40,7 +40,7 @@ using namespace Foam; int main(int argc, char *argv[]) { - argList::validOptions.insert("checkFrequency", ""); + argList::validOptions.insert("checkFrequency", "int"); # include "setRootCase.H" # include "createTime.H" @@ -64,7 +64,10 @@ int main(int argc, char *argv[]) # include "checkVolContinuity.H" - mesh.checkMesh(true); + if (runTime.timeIndex() % checkFrequency == 0) + { + mesh.checkMesh(true); + } runTime.write();