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 73 splitCell* myParent = parent();
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 bool isMaster() const
Check if this is master cell of split.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
splitCell * getOther() const
Returns other half of split cell. I.e. slave if this is master.
Ostream & endl(Ostream &os)
Add newline and flush stream.
splitCell * slave() const
bool isUnrefined() const
Check if this is unrefined (i.e. has no master or slave)
splitCell * parent() const
Description of cell after splitting. Contains cellLabel and pointers to cells it it split in...
errorManip< error > abort(error &err)
splitCell * master() const