Forward compatibility: flex
[foam-extend-3.2.git] / applications / utilities / parallelProcessing / reconstructParMesh / processorFaMeshes.H
blob7f58698dfab0b139210d4f8e8db363ae55752a4a
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | foam-extend: Open Source CFD
4    \\    /   O peration     | Version:     3.2
5     \\  /    A nd           | Web:         http://www.foam-extend.org
6      \\/     M anipulation  | For copyright notice see file Copyright
7 -------------------------------------------------------------------------------
8 License
9     This file is part of foam-extend.
11     foam-extend is free software: you can redistribute it and/or modify it
12     under the terms of the GNU General Public License as published by the
13     Free Software Foundation, either version 3 of the License, or (at your
14     option) any later version.
16     foam-extend is distributed in the hope that it will be useful, but
17     WITHOUT ANY WARRANTY; without even the implied warranty of
18     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
19     General Public License for more details.
21     You should have received a copy of the GNU General Public License
22     along with foam-extend.  If not, see <http://www.gnu.org/licenses/>.
24 Class
25     processorFaMeshes
27 Description
28     Container for processor mesh addressing.
30 Author
31     Zeljko Tukovic, FSB Zagreb.  All rights reserved
33 SourceFiles
34     processorFaMeshes.C
36 \*---------------------------------------------------------------------------*/
38 #ifndef processorFaMeshes_H
39 #define processorFaMeshes_H
41 #include "PtrList.H"
42 #include "fvMesh.H"
43 #include "faMesh.H"
44 #include "IOobjectList.H"
45 #include "labelIOList.H"
47 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
49 namespace Foam
53 /*---------------------------------------------------------------------------*\
54                      Class processorFaMeshes Declaration
55 \*---------------------------------------------------------------------------*/
57 class processorFaMeshes
59     // Private data
61         //- List of processor finite volume meshes
62         const PtrList<fvMesh>& fvMeshes_;
64         //- List of processor finite area meshes
65         PtrList<faMesh> meshes_;
67         //- List of processor point addressing lists
68         PtrList<labelIOList> pointProcAddressing_;
70         //- List of processor face addressing lists
71         PtrList<labelIOList> edgeProcAddressing_;
73         //- List of processor cell addressing lists
74         PtrList<labelIOList> faceProcAddressing_;
76         //- List of processor boundary addressing lists
77         PtrList<labelIOList> boundaryProcAddressing_;
80     // Private Member Functions
82         //- Read all meshes
83         void read();
85         //- Disallow default bitwise copy construct
86         processorFaMeshes(const processorFaMeshes&);
88         //- Disallow default bitwise assignment
89         void operator=(const processorFaMeshes&);
92 public:
94     // Constructors
96         //- Construct from components
97         processorFaMeshes(const PtrList<fvMesh>& processorFvMeshes);
100     // Member Functions
102         //- Update the meshes based on the mesh files saved in
103         //  time directories
104 //         fvMesh::readUpdateState readUpdate();
106         //- Reconstruct point position after motion in parallel
107 //         void reconstructPoints(faMesh& mesh);
109         PtrList<faMesh>& meshes()
110         {
111             return meshes_;
112         }
113         const PtrList<labelIOList>& pointProcAddressing() const
114         {
115             return pointProcAddressing_;
116         }
117         PtrList<labelIOList>& edgeProcAddressing()
118         {
119             return edgeProcAddressing_;
120         }
121         const PtrList<labelIOList>& faceProcAddressing() const
122         {
123             return faceProcAddressing_;
124         }
125         const PtrList<labelIOList>& boundaryProcAddressing() const
126         {
127             return boundaryProcAddressing_;
128         }
132 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
134 } // End namespace Foam
136 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
138 #endif
140 // ************************************************************************* //