ENH: patchCloud: return pTraits<Type>::max for unfound points
[OpenFOAM-1.7.x.git] / applications / utilities / parallelProcessing / reconstructPar / processorMeshes.H
blob4fd29403c6c0b834fac73f7a2c21e3c3747b8ce9
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright (C) 1991-2010 OpenCFD Ltd.
6      \\/     M anipulation  |
7 -------------------------------------------------------------------------------
8 License
9     This file is part of OpenFOAM.
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.
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.
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/>.
24 Class
25     Foam::processorMeshes
27 Description
28     Container for processor mesh addressing.
30 SourceFiles
31     processorMeshes.C
33 \*---------------------------------------------------------------------------*/
35 #ifndef processorMeshes_H
36 #define processorMeshes_H
38 #include "PtrList.H"
39 #include "fvMesh.H"
40 #include "IOobjectList.H"
41 #include "labelIOList.H"
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 namespace Foam
49 /*---------------------------------------------------------------------------*\
50                      Class processorMeshes Declaration
51 \*---------------------------------------------------------------------------*/
53 class processorMeshes
55     // Private data
57         //- Processor databases
58         PtrList<Time>& databases_;
60         const word meshName_;
62         //- List of processor meshes
63         PtrList<fvMesh> meshes_;
65         //- List of processor point addressing lists
66         PtrList<labelIOList> pointProcAddressing_;
68         //- List of processor face addressing lists
69         PtrList<labelIOList> faceProcAddressing_;
71         //- List of processor cell addressing lists
72         PtrList<labelIOList> cellProcAddressing_;
74         //- List of processor boundary addressing lists
75         PtrList<labelIOList> boundaryProcAddressing_;
78     // Private Member Functions
80         //- Read all meshes
81         void read();
83         //- Disallow default bitwise copy construct
84         processorMeshes(const processorMeshes&);
86         //- Disallow default bitwise assignment
87         void operator=(const processorMeshes&);
90 public:
92     // Constructors
94         //- Construct from components
95         processorMeshes(PtrList<Time>& databases, const word& meshName);
98     // Member Functions
100         //- Update the meshes based on the mesh files saved in
101         //  time directories
102         fvMesh::readUpdateState readUpdate();
104         //- Reconstruct point position after motion in parallel
105         void reconstructPoints(fvMesh& mesh);
107         PtrList<fvMesh>& meshes()
108         {
109             return meshes_;
110         }
111         const PtrList<labelIOList>& pointProcAddressing() const
112         {
113             return pointProcAddressing_;
114         }
115         PtrList<labelIOList>& faceProcAddressing()
116         {
117             return faceProcAddressing_;
118         }
119         const PtrList<labelIOList>& cellProcAddressing() const
120         {
121             return cellProcAddressing_;
122         }
123         const PtrList<labelIOList>& boundaryProcAddressing() const
124         {
125             return boundaryProcAddressing_;
126         }
132 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
134 } // End namespace Foam
136 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
138 #endif
140 // ************************************************************************* //