mapAddedPolyMesh.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 | Copyright (C) 2011 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 
33 // Construct from components
35 (
36  const label nOldPoints,
37  const label nOldFaces,
38  const label nOldCells,
39  const label nAddedPoints,
40  const label nAddedFaces,
41  const label nAddedCells,
42  const labelList& oldPointMap,
43  const labelList& oldFaceMap,
44  const labelList& oldCellMap,
45 
46  const labelList& addedPointMap,
47  const labelList& addedFaceMap,
48  const labelList& addedCellMap,
49 
50  const labelList& oldPatchMap,
51  const labelList& addedPatchMap,
52  const labelList& oldPatchSizes,
53  const labelList& oldPatchStarts
54 )
55 :
56  nOldPoints_(nOldPoints),
57  nOldFaces_(nOldFaces),
58  nOldCells_(nOldCells),
59  nAddedPoints_(nAddedPoints),
60  nAddedFaces_(nAddedFaces),
61  nAddedCells_(nAddedCells),
62 
63  oldPointMap_(oldPointMap),
64  oldFaceMap_(oldFaceMap),
65  oldCellMap_(oldCellMap),
66 
67  addedPointMap_(addedPointMap),
68  addedFaceMap_(addedFaceMap),
69  addedCellMap_(addedCellMap),
70 
71  oldPatchMap_(oldPatchMap),
72  addedPatchMap_(addedPatchMap),
73 
74  oldPatchSizes_(oldPatchSizes),
75  oldPatchStarts_(oldPatchStarts)
76 {}
77 
78 
79 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
80 
81 
82 // ************************************************************************* //
Foam::label
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition: label.H:59
mapAddedPolyMesh.H
Foam::mapAddedPolyMesh::mapAddedPolyMesh
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.
Definition: mapAddedPolyMesh.C:35
Foam::List
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Definition: HashTable.H:59