dummyPtscotchDecomp.C
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration |
5  \\ / A nd | www.openfoam.com
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8  Copyright (C) 2011-2015 OpenFOAM Foundation
9  Copyright (C) 2018-2021 OpenCFD Ltd.
10 -------------------------------------------------------------------------------
11 License
12  This file is part of OpenFOAM.
13 
14  OpenFOAM is free software: you can redistribute it and/or modify it
15  under the terms of the GNU General Public License as published by
16  the Free Software Foundation, either version 3 of the License, or
17  (at your option) any later version.
18 
19  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22  for more details.
23 
24  You should have received a copy of the GNU General Public License
25  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26 
27 \*---------------------------------------------------------------------------*/
28 
29 #include "ptscotchDecomp.H"
31 #include "Time.H"
32 
33 static const char* notImplementedMessage =
34 "Attempted to use <ptscotch> without the ptscotchDecomp library loaded.\n"
35 "This message is from the dummy ptscotchDecomp stub library instead.\n\n"
36 "Please install <ptscotch> and ensure libptscotch.so is in LD_LIBRARY_PATH.\n"
37 "The ptscotchDecomp library can then be built from "
38 "src/parallel/decompose/ptscotchDecomp.\n"
39 "Dynamically loading or linking this library will add "
40 "<ptscotch> as a decomposition method.\n";
41 
42 
43 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
44 
45 namespace Foam
46 {
47  defineTypeNameAndDebug(ptscotchDecomp, 0);
49  (
50  decompositionMethod,
51  ptscotchDecomp,
52  dictionary
53  );
54 }
55 
56 
57 // * * * * * * * * * * * * Protected Member Functions * * * * * * * * * * * //
58 
59 Foam::label Foam::ptscotchDecomp::decompose
60 (
61  const labelList& adjncy,
62  const labelList& xadj,
63  const List<scalar>& cWeights,
64  labelList& finalDecomp
65 ) const
66 {
69 
70  return -1;
71 }
72 
73 
74 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
75 
76 Foam::ptscotchDecomp::ptscotchDecomp
77 (
78  const dictionary& decompDict,
79  const word& regionName
80 )
81 :
82  decompositionMethod(decompDict, regionName),
83  coeffsDict_()
84 {}
85 
86 
87 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
88 
89 Foam::labelList Foam::ptscotchDecomp::decompose
90 (
91  const polyMesh& mesh,
92  const pointField& points,
93  const scalarField& pointWeights
94 ) const
95 {
98 
99  return labelList();
100 }
101 
102 
103 Foam::labelList Foam::ptscotchDecomp::decompose
104 (
105  const polyMesh& mesh,
106  const labelList& agglom,
107  const pointField& agglomPoints,
108  const scalarField& pointWeights
109 ) const
110 {
113 
114  return labelList();
115 }
116 
117 
118 Foam::labelList Foam::ptscotchDecomp::decompose
119 (
120  const labelListList& globalCellCells,
121  const pointField& cellCentres,
122  const scalarField& cWeights
123 ) const
124 {
127 
128  return labelList();
129 }
130 
131 
132 // ************************************************************************* //
Foam::addToRunTimeSelectionTable
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
Foam::labelList
List< label > labelList
A List of labels.
Definition: List.H:63
Foam::word
A class for handling words, derived from Foam::string.
Definition: word.H:63
Foam::polyMesh
Mesh consisting of general polyhedral cells.
Definition: polyMesh.H:73
regionName
Foam::word regionName
Definition: createNamedDynamicFvMesh.H:1
Foam::Field
Generic templated field type.
Definition: Field.H:59
Foam::FatalError
error FatalError
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:119
mesh
dynamicFvMesh & mesh
Definition: createDynamicFvMesh.H:6
addToRunTimeSelectionTable.H
Macros for easy insertion into run-time selection tables.
Foam::decompositionMethod
Abstract base class for domain decomposition.
Definition: decompositionMethod.H:47
Foam
Definition: atmBoundaryLayer.C:26
Foam::exit
errorManipArg< error, int > exit(error &err, const int errNo=1)
Definition: errorManip.H:125
Time.H
FatalErrorInFunction
#define FatalErrorInFunction
Definition: error.H:465
notImplementedMessage
static const char * notImplementedMessage
Definition: dummyPtscotchDecomp.C:26
Foam::List
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Definition: BitOps.H:58
points
const pointField & points
Definition: gmvOutputHeader.H:1
ptscotchDecomp.H
Foam::defineTypeNameAndDebug
defineTypeNameAndDebug(combustionModel, 0)