Go to the documentation of this file.
33 Foam::splitCell::splitCell(
const label celli,
splitCell* parent)
51 if (myParent->
master() ==
this)
53 myParent->
master() =
nullptr;
55 else if (myParent->
slave() ==
this)
57 myParent->
slave() =
nullptr;
62 <<
" parent's master or slave pointer" <<
endl
82 else if (myParent->
master() ==
this)
86 else if (myParent->
slave() ==
this)
93 <<
" parent's master or slave pointer" <<
endl
103 return !master() && !slave();
118 else if (myParent->
master() ==
this)
120 return myParent->
slave();
122 else if (myParent->
slave() ==
this)
124 return myParent->
master();
129 <<
" parent's master or slave pointer" <<
endl
splitCell * slave() const
bool isUnrefined() const
Check if this is unrefined (i.e. has no master or slave)
Ostream & endl(Ostream &os)
Add newline and flush stream.
splitCell * getOther() const
Returns other half of split cell. I.e. slave if this is master.
errorManip< error > abort(error &err)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Description of cell after splitting. Contains cellLabel and pointers to cells it it split in....
splitCell * master() const
bool isMaster() const
Check if this is master cell of split.