diff --git a/applications/test/decomposePar/Make/files b/applications/test/decomposePar/Make/files deleted file mode 100644 index 39e4256963..0000000000 --- a/applications/test/decomposePar/Make/files +++ /dev/null @@ -1,3 +0,0 @@ -Test-decomposePar.C - -EXE = $(FOAM_USER_APPBIN)/Test-decomposePar diff --git a/applications/test/decomposePar/Make/options b/applications/test/decomposePar/Make/options deleted file mode 100644 index 25f37cdfad..0000000000 --- a/applications/test/decomposePar/Make/options +++ /dev/null @@ -1,13 +0,0 @@ -EXE_INC = \ - -I$(LIB_SRC)/finiteVolume/lnInclude \ - -I$(LIB_SRC)/meshTools/lnInclude \ - -I$(LIB_SRC)/parallel/decompose/decompose/lnInclude \ - -I$(LIB_SRC)/parallel/decompose/decompositionMethods/lnInclude - -EXE_LIBS = \ - -lfiniteVolume \ - -lmeshTools \ - -ldecompose \ - -ldecompositionMethods \ - -L$(FOAM_LIBBIN)/dummy \ - -lkahipDecomp -lmetisDecomp -lscotchDecomp diff --git a/applications/test/decomposePar/Test-decomposePar.C b/applications/test/decomposePar/Test-decomposePar.C deleted file mode 100644 index d94e29df39..0000000000 --- a/applications/test/decomposePar/Test-decomposePar.C +++ /dev/null @@ -1,308 +0,0 @@ -/*---------------------------------------------------------------------------*\ - ========= | - \\ / F ield | OpenFOAM: The Open Source CFD Toolbox - \\ / O peration | - \\ / A nd | www.openfoam.com - \\/ M anipulation | -------------------------------------------------------------------------------- - Copyright (C) 2017-2021 OpenCFD Ltd. -------------------------------------------------------------------------------- -License - This file is part of OpenFOAM. - - OpenFOAM is free software: you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - OpenFOAM is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with OpenFOAM. If not, see . - -Application - Test-decomposePar - -Group - grpParallelUtilities - -Description - Like decomposePar -dry-run, but with additional options - -\*---------------------------------------------------------------------------*/ - -#include "OSspecific.H" -#include "fvCFD.H" -#include "cpuTime.H" -#include "volFields.H" -#include "IOobjectList.H" -#include "regionProperties.H" -#include "decompositionInformation.H" -#include "decompositionModel.H" - -// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // - -int main(int argc, char *argv[]) -{ - argList::addNote - ( - "Special-purpose version of decomposePar with additional" - " -domain and -method options." - " The '-dry-run' and '-cellDist' are implicit.\n" - "NB: The -domain/-method overrides may not work very well with regions" - ); - - argList::noParallel(); - argList::addOption - ( - "decomposeParDict", - "file", - "Use specified file for decomposePar dictionary" - ); - - #include "addAllRegionOptions.H" - - argList::addBoolOption - ( - "verbose", - "Additional verbosity" - ); - argList::addOption - ( - "domains", - "N", - "Override numberOfSubdomains" - ); - - argList::addOption - ( - "method", - "name", - "Override decomposition method" - ); - - - // These are implicit so just ignore them - argList::ignoreOptionCompat({"dry-run", 0}, false); - argList::addBoolOption - ( - "cellDist", - "Write cell distribution as volScalarField for visualization" - ); - argList::addBoolOption - ( - "cellDist-internal", - "Write cell distribution (internal field) for visualization" - ); - - // Include explicit constant options, have zero from time range - timeSelector::addOptions(true, false); - - #include "setRootCase.H" - - const bool optRegion = args.found("region"); - const bool verbose = args.found("verbose"); - - const label numSubdomains = args.getOrDefault