1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd.
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 the
13 Free Software Foundation; either version 2 of the License, or (at your
14 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, write to the Free Software Foundation,
23 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
29 Description of cell after splitting. Contains cellLabel and pointers
30 to cells it it split in. See directedRefinement.
35 \*---------------------------------------------------------------------------*/
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 // Forward declaration of classes
49 /*---------------------------------------------------------------------------*\
50 Class splitCell Declaration
51 \*---------------------------------------------------------------------------*/
57 //- Unsplit cell label. Only uptodate if this cell is 'live'
58 // (i.e. no master or slave)
61 //- Parent splitCell or null
64 //- Cells replacing this or null
70 // Private Member Functions
72 //- Disallow default bitwise copy construct
73 splitCell(const splitCell&);
75 //- Disallow default bitwise assignment
76 void operator=(const splitCell&);
83 //- Construct from cell number and parent
84 splitCell(const label cellI, splitCell* parent);
96 label cellLabel() const
106 splitCell* parent() const
116 splitCell* master() const
126 splitCell* slave() const
136 //- Check if this is master cell of split
137 bool isMaster() const;
139 //- Check if this is unrefined (i.e. has no master or slave)
140 bool isUnrefined() const;
142 //- Returns other half of split cell. I.e. slave if this is master.
143 splitCell* getOther() const;
147 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
149 } // End namespace Foam
151 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
155 // ************************************************************************* //