1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
7 -------------------------------------------------------------------------------
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
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/>.
28 Description of cell after splitting. Contains cellLabel and pointers
29 to cells it it split in. See directedRefinement.
34 \*---------------------------------------------------------------------------*/
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 // Forward declaration of classes
48 /*---------------------------------------------------------------------------*\
49 Class splitCell Declaration
50 \*---------------------------------------------------------------------------*/
56 //- Unsplit cell label. Only uptodate if this cell is 'live'
57 // (i.e. no master or slave)
60 //- Parent splitCell or null
63 //- Cells replacing this or null
69 // Private Member Functions
71 //- Disallow default bitwise copy construct
72 splitCell(const splitCell&);
74 //- Disallow default bitwise assignment
75 void operator=(const splitCell&);
82 //- Construct from cell number and parent
83 splitCell(const label cellI, splitCell* parent);
94 label cellLabel() const
104 splitCell* parent() const
114 splitCell* master() const
124 splitCell* slave() const
134 //- Check if this is master cell of split
135 bool isMaster() const;
137 //- Check if this is unrefined (i.e. has no master or slave)
138 bool isUnrefined() const;
140 //- Returns other half of split cell. I.e. slave if this is master.
141 splitCell* getOther() const;
145 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
147 } // End namespace Foam
149 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
153 // ************************************************************************* //