mapAddedPolyMesh.C
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
11  OpenFOAM is free software: you can redistribute it and/or modify it
12  under the terms of the GNU General Public License as published by
13  the Free Software Foundation, either version 3 of the License, or
14  (at your option) any later version.
15 
16  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19  for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23 
24 \*---------------------------------------------------------------------------*/
25 
26 #include "mapAddedPolyMesh.H"
27 
28 // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
29 
30 
31 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
32 
34 (
35  const label nOldPoints,
36  const label nOldFaces,
37  const label nOldCells,
38  const label nAddedPoints,
39  const label nAddedFaces,
40  const label nAddedCells,
41  const labelList& oldPointMap,
42  const labelList& oldFaceMap,
43  const labelList& oldCellMap,
44 
45  const labelList& addedPointMap,
46  const labelList& addedFaceMap,
47  const labelList& addedCellMap,
48 
49  const labelList& oldPatchMap,
50  const labelList& addedPatchMap,
51  const labelList& oldPatchSizes,
52  const labelList& oldPatchStarts
53 )
54 :
55  nOldPoints_(nOldPoints),
56  nOldFaces_(nOldFaces),
57  nOldCells_(nOldCells),
58  nAddedPoints_(nAddedPoints),
59  nAddedFaces_(nAddedFaces),
60  nAddedCells_(nAddedCells),
61 
62  oldPointMap_(oldPointMap),
63  oldFaceMap_(oldFaceMap),
64  oldCellMap_(oldCellMap),
65 
66  addedPointMap_(addedPointMap),
67  addedFaceMap_(addedFaceMap),
68  addedCellMap_(addedCellMap),
69 
70  oldPatchMap_(oldPatchMap),
71  addedPatchMap_(addedPatchMap),
72 
73  oldPatchSizes_(oldPatchSizes),
74  oldPatchStarts_(oldPatchStarts)
75 {}
76 
77 
78 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
79 
80 
81 // ************************************************************************* //
mapAddedPolyMesh(const label nOldPoints, const label nOldFaces, const label nOldCells, const label nAddedPoints, const label nAddedFaces, const label nAddedCells, const labelList &oldPointMap, const labelList &oldFaceMap, const labelList &oldCellMap, const labelList &addedPointMap, const labelList &addedFaceMap, const labelList &addedCellMap, const labelList &oldPatchMap, const labelList &addedPatchMap, const labelList &oldPatchSizes, const labelList &oldPatchStarts)
Construct from components.