diff --git a/applications/test/patchToPatch/Test-patchToPatch.C b/applications/test/patchToPatch/Test-patchToPatch.C index a88d7e4be7..f4c07fe482 100644 --- a/applications/test/patchToPatch/Test-patchToPatch.C +++ b/applications/test/patchToPatch/Test-patchToPatch.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2021-2022 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2021-2023 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -41,21 +41,34 @@ int main(int argc, char *argv[]) argList::validArgs.append("method"); argList::validArgs.append("reverse"); - argList::addOption("sourceCase", "dir", "The case with the source patch"); + argList::addOption + ( + "sourceCase", + "dir", + "The directory of the case with the source patch" + ); + argList::addOption + ( + "sourceRegion", + "name", + "The region with the source patch" + ); + #include "addRegionOption.H" #include "setRootCase.H" #include "createTime.H" - #include "createPolyMesh.H" + #include "createNamedPolyMesh.H" // Optionally read a different mesh for the source autoPtr