diff --git a/applications/utilities/surface/surfaceHookUp/surfaceHookUp.C b/applications/utilities/surface/surfaceHookUp/surfaceHookUp.C index ef0b74fdcf..7d33e54e16 100644 --- a/applications/utilities/surface/surfaceHookUp/surfaceHookUp.C +++ b/applications/utilities/surface/surfaceHookUp/surfaceHookUp.C @@ -6,7 +6,7 @@ \\/ M anipulation | ------------------------------------------------------------------------------- Copyright (C) 2014-2017 OpenFOAM Foundation - Copyright (C) 2020-2022 OpenCFD Ltd. + Copyright (C) 2020-2025 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -268,6 +268,12 @@ int main(int argc, char *argv[]) argList::noParallel(); argList::addArgument("hookTolerance", "The point merge tolerance"); argList::addOption("dict", "file", "Alternative surfaceHookUpDict"); + argList::addOption + ( + "maxIters", + "number", + "Maximum number of iterations (default: 100)" + ); #include "setRootCase.H" #include "createTime.H" @@ -281,9 +287,10 @@ int main(int argc, char *argv[]) const scalar dist(args.get(1)); const scalar matchTolerance(Foam::max(1e-6*dist, SMALL)); - const label maxIters = 100; + const label maxIters = args.getOrDefault