#include <amr.h>
Definition at line 311 of file amr.h.
Cell::Cell | ( | CkMigrateMessage * | msg | ) | [inline] |
virtual Cell::~Cell | ( | ) | [inline, virtual] |
Definition at line 420 of file amr.h.
References children, dimension, FIFO_DeQueue, FIFO_Destroy, FIFO_Empty, msg_queue, nborRecvMsgBuff, nborRecvMsgCount, neighbors, powerOfTwo(), size, type, and userData.
void Cell::init_cell | ( | _ArrInitMsg * | msg | ) | [protected] |
Definition at line 422 of file amr.C.
References autorefine, children, _ArrInitMsg::coordHandle, coordHandle, dimension, FIFO_Create(), _ArrInitMsg::gid, gid, _ArrInitMsg::interval, justRefined, msg_queue, myIndex, nborRecvMsgBuff, nborRecvMsgCount, neighbors, neighbors_reported, num_neighbors, _ArrInitMsg::parent, parent, powerOfTwo(), refined, StatCollector::registerMe(), run_done, run_until, start_ptr, _ArrInitMsg::statCollection, statCollection, synchinterval, synchleavrep, synchstep, ArrayElementT< BitVec >::thisIndex, _ArrInitMsg::totalIterations, _ArrInitMsg::type, type, userData, and CkMigratable::usesAtSync.
Referenced by Cell1D::Cell1D(), Cell2D::Cell2D(), and Cell3D::Cell3D().
void Cell::treeSetup | ( | _ArrInitMsg * | msg | ) | [protected] |
Definition at line 510 of file amr.C.
References coordHandle, _ArrInitMsg::coordHandle, create_children(), _ArrInitMsg::depth, dimension, gid, _ArrInitMsg::gid, _ArrInitMsg::interval, myIndex, _ArrInitMsg::parent, powerOfTwo(), run_done, size, statCollection, _ArrInitMsg::statCollection, synchinterval, _ArrInitMsg::totalIterations, _ArrInitMsg::type, and type.
Referenced by Cell1D::Cell1D(), Cell2D::Cell2D(), and Cell3D::Cell3D().
virtual void Cell::reg_nbor_msg | ( | int | neighbor_side, | |
NeighborMsg * | msg | |||
) | [inline, protected, virtual] |
void Cell::check_queue | ( | void | ) | [protected] |
Definition at line 646 of file amr.C.
References arrayProxy, FIFO_Create(), FIFO_DeQueue, FIFO_Destroy, FIFO_Empty, FIFO_EnQueue, index, msg_queue, myIndex, BitVec::numbits, run_until, temp_queue, and BitVec::vec.
Referenced by doIterations().
int Cell::sendInDimension | ( | int | dim, | |
int | side, | |||
NeighborMsg * | msg | |||
) | [protected] |
dim side comments 0 0 send left 0 1 send right 1 0 send up 1 1 send down
Definition at line 580 of file amr.C.
References arrayProxy, dimension, index, myIndex, BitVec::numbits, and BitVec::vec.
Referenced by doIterations(), and refine().
dim side comments 0 0 send left 0 1 send right 1 0 send up 1 1 send down
Definition at line 1176 of file amr.C.
References arrayProxy, dimension, index, myIndex, BitVec::numbits, run_until, and BitVec::vec.
Definition at line 402 of file amr.C.
Referenced by change_to_leaf(), Cell3D::create_children(), init_cell(), pup(), refine(), refine_confirmed(), synchronise(), treeSetup(), and ~Cell().
void Cell::refine | ( | _RefineMsg * | msg | ) |
Definition at line 951 of file amr.C.
References arrayProxy, _RefineMsg::autorefine, autorefine, children, ChildInitMsg::data, ChildInitMsg::dataSize, dimension, flag, AmrUserData::fragmentForRefine(), gid, StatCollector::incrementAutorefine(), StatCollector::incrementRefine(), index, _RefineMsg::index, myIndex, neighbors_reported, num_neighbors, ChildInitMsg::num_neighbors, BitVec::numbits, parent, powerOfTwo(), refineReady(), retidx, run_until, ChildInitMsg::run_until, sendInDimension(), size, statCollection, synchinterval, ChildInitMsg::synchstep, synchstep, type, PUP::u, userData, and BitVec::vec.
Referenced by refineExec().
void Cell::change_to_leaf | ( | ChildInitMsg * | msg | ) |
Definition at line 1074 of file amr.C.
References arrayProxy, coordHandle, _ArrInitMsg::coordHandle, create_children(), AmrUserData::createDataWrapper(), ChildInitMsg::data, ChildInitMsg::dataSize, _ArrInitMsg::depth, dimension, gid, _ArrInitMsg::gid, index, _ArrInitMsg::interval, justRefined, myIndex, ChildInitMsg::num_neighbors, num_neighbors, parent, _ArrInitMsg::parent, powerOfTwo(), StatCollector::registerMe(), run_done, ChildInitMsg::run_until, run_until, statCollection, _ArrInitMsg::statCollection, synchinterval, ChildInitMsg::synchstep, synchstep, _ArrInitMsg::totalIterations, _ArrInitMsg::type, type, and userData.
void Cell::neighbor_data | ( | NeighborMsg * | msg | ) |
Definition at line 689 of file amr.C.
References arrayProxy, dimension, AmrUserData::doComputation(), doIterations(), FIFO_EnQueue, forwardSplitMsg(), index, msg_queue, myIndex, NeighborMsg::nborIdx, nborRecvMsgCount, neighbors_reported, num_neighbors, NeighborMsg::numbits, BitVec::numbits, parent, reg_nbor_msg(), run_until, NeighborMsg::run_until, synchstep, type, userData, BitVec::vec, and NeighborMsg::which_neighbor.
void Cell::cpyNborMsg | ( | NeighborMsg * | dest, | |
NeighborMsg * | src | |||
) |
Definition at line 1437 of file amr.C.
References NeighborMsg::data, NeighborMsg::dataSize, NeighborMsg::nborIdx, NeighborMsg::numbits, NeighborMsg::run_until, and NeighborMsg::which_neighbor.
Referenced by pup().
void Cell::refine_confirmed | ( | _DMsg * | msg | ) |
Definition at line 1130 of file amr.C.
References arrayProxy, autorefine, dimension, _DMsg::from, index, myIndex, neighbors_reported, num_neighbors, BitVec::numbits, parent, powerOfTwo(), refined, refineReady(), retidx, _DMsg::sender, and BitVec::vec.
void Cell::resume | ( | _DMsg * | msg | ) |
Definition at line 851 of file amr.C.
References doIterations(), and type.
void Cell::synchronise | ( | _RedMsg * | msg | ) |
Definition at line 872 of file amr.C.
References arrayProxy, coordHandle, dimension, index, myIndex, BitVec::numbits, parent, powerOfTwo(), synchleavrep, _RedMsg::type, type, and BitVec::vec.
void Cell::refineExec | ( | _DMsg * | msg | ) |
Definition at line 907 of file amr.C.
References arrayProxy, index, justRefined, myIndex, BitVec::numbits, parent, refine(), AmrUserData::refineCriterion(), synchinterval, synchstep, type, userData, and BitVec::vec.
void Cell::checkRefine | ( | _RefineChkMsg * | msg | ) |
Definition at line 1237 of file amr.C.
References arrayProxy, _RefineChkMsg::index, index, parent, refineReady(), and type.
Definition at line 1264 of file amr.C.
References arrayProxy, index, and myIndex.
Referenced by checkRefine(), refine(), and refine_confirmed().
virtual void Cell::create_children | ( | _ArrInitMsg ** | cmsg | ) | [inline, virtual] |
Reimplemented in Cell2D, Cell1D, and Cell3D.
Definition at line 399 of file amr.h.
Referenced by change_to_leaf(), and treeSetup().
void Cell::doIterations | ( | void | ) | [virtual] |
Definition at line 768 of file amr.C.
References arrayProxy, check_queue(), NeighborMsg::data, NeighborMsg::dataSize, dimension, AmrUserData::getNborMsgArray(), index, justRefined, myIndex, NeighborMsg::nborIdx, neighbors, num_neighbors, NeighborMsg::numbits, BitVec::numbits, parent, run_done, NeighborMsg::run_until, run_until, sendInDimension(), size, synchstep, userData, BitVec::vec, and NeighborMsg::which_neighbor.
Referenced by Cell1D::Cell1D(), Cell2D::Cell2D(), Cell3D::Cell3D(), neighbor_data(), and resume().
virtual void Cell::forwardSplitMsg | ( | NeighborMsg * | msg, | |
int | neighbor_side | |||
) | [inline, virtual] |
void Cell::pup | ( | PUP::er & | p | ) | [virtual] |
Pack/unpack routine (called before and after migration).
Reimplemented from ArrayElement.
Reimplemented in Cell2D, Cell1D, and Cell3D.
Definition at line 1271 of file amr.C.
References arrayProxy, autorefine, children, coordHandle, count, cpyNborMsg(), dimension, FIFO_Create(), FIFO_DeQueue, FIFO_Empty, FIFO_EnQueue, FIFO_Fill, gid, PUP::er::isPacking(), PUP::er::isUnpacking(), justRefined, StatCollector::migrating(), msg_count, msg_queue, myIndex, nborRecvMsgBuff, nborRecvMsgCount, neighbors, neighbors_reported, num_neighbors, p, parent, powerOfTwo(), NeighborMsg::pup(), BitVec::pup(), ArrayElement::pup(), refined, StatCollector::registerMe(), retidx, run_done, run_until, size, statCollection, synchinterval, synchleavrep, synchstep, type, and userData.
Referenced by Cell3D::pup(), Cell1D::pup(), and Cell2D::pup().
virtual void Cell::ResumeFromSync | ( | void | ) | [inline, virtual] |
Reimplemented from CkMigratable.
Definition at line 403 of file amr.h.
References arrayProxy, index, myIndex, BitVec::numbits, parent, synchinterval, synchstep, type, and BitVec::vec.
void Cell::goToAtSync | ( | _DMsg * | msg | ) | [inline] |
Definition at line 415 of file amr.h.
References CkMigratable::AtSync().
void FIFO_EnQueue | ( | FIFO_QUEUE * | queue, | |
void * | elt | |||
) | [friend] |
int FIFO_Empty | ( | FIFO_QUEUE * | ) | [friend] |
void FIFO_DeQueue | ( | FIFO_QUEUE * | queue, | |
void ** | element | |||
) | [friend] |
void FIFO_Destroy | ( | FIFO_QUEUE * | queue | ) | [friend] |
int FIFO_Fill | ( | FIFO_QUEUE * | queue | ) | [friend] |
int Cell::dimension [protected] |
Definition at line 313 of file amr.h.
Referenced by Cell1D::Cell1D(), Cell2D::Cell2D(), Cell3D::Cell3D(), change_to_leaf(), Cell1D::create_children(), Cell3D::create_children(), Cell2D::create_children(), doIterations(), init_cell(), neighbor_data(), pup(), refine(), refine_confirmed(), sendInDimension(), synchronise(), treeSetup(), and ~Cell().
AmrUserData* Cell::userData [protected] |
Definition at line 314 of file amr.h.
Referenced by Cell1D::Cell1D(), Cell2D::Cell2D(), Cell3D::Cell3D(), change_to_leaf(), doIterations(), Cell3D::frag_msg(), Cell2D::frag_msg(), init_cell(), neighbor_data(), pup(), refine(), refineExec(), Cell1D::reg_nbor_msg(), Cell3D::reg_nbor_msg(), Cell2D::reg_nbor_msg(), and ~Cell().
CProxy_Cell Cell::arrayProxy [protected] |
Definition at line 315 of file amr.h.
Referenced by Cell1D::Cell1D(), Cell2D::Cell2D(), Cell3D::Cell3D(), change_to_leaf(), check_queue(), checkRefine(), Cell1D::create_children(), Cell3D::create_children(), Cell2D::create_children(), doIterations(), Cell1D::forwardSplitMsg(), Cell3D::frag_msg(), Cell2D::frag_msg(), neighbor_data(), Cell3D::pup(), Cell1D::pup(), Cell2D::pup(), pup(), refine(), refine_confirmed(), refineExec(), refineReady(), ResumeFromSync(), sendInDimension(), and synchronise().
char Cell::type [protected] |
Definition at line 316 of file amr.h.
Referenced by Cell1D::Cell1D(), Cell2D::Cell2D(), Cell3D::Cell3D(), change_to_leaf(), checkRefine(), init_cell(), neighbor_data(), pup(), refine(), refineExec(), resume(), ResumeFromSync(), synchronise(), treeSetup(), and ~Cell().
BitVec Cell::parent [protected] |
Definition at line 318 of file amr.h.
Referenced by change_to_leaf(), checkRefine(), doIterations(), init_cell(), neighbor_data(), pup(), refine(), refine_confirmed(), refineExec(), ResumeFromSync(), and synchronise().
BitVec** Cell::children [protected] |
Definition at line 322 of file amr.h.
Referenced by Cell1D::create_children(), Cell3D::create_children(), Cell2D::create_children(), Cell1D::forwardSplitMsg(), Cell3D::frag_msg(), Cell2D::frag_msg(), init_cell(), pup(), refine(), and ~Cell().
BitVec Cell::myIndex [protected] |
Definition at line 324 of file amr.h.
Referenced by Cell1D::Cell1D(), Cell2D::Cell2D(), Cell3D::Cell3D(), change_to_leaf(), check_queue(), Cell1D::create_children(), Cell3D::create_children(), Cell2D::create_children(), doIterations(), init_cell(), neighbor_data(), pup(), refine(), refine_confirmed(), refineExec(), refineReady(), Cell1D::reg_nbor_msg(), Cell3D::reg_nbor_msg(), Cell2D::reg_nbor_msg(), ResumeFromSync(), sendInDimension(), synchronise(), and treeSetup().
int Cell::num_neighbors [protected] |
Definition at line 328 of file amr.h.
Referenced by change_to_leaf(), doIterations(), init_cell(), neighbor_data(), pup(), refine(), and refine_confirmed().
int Cell::neighbors_reported [protected] |
Definition at line 328 of file amr.h.
Referenced by init_cell(), neighbor_data(), pup(), refine(), refine_confirmed(), Cell1D::reg_nbor_msg(), Cell3D::reg_nbor_msg(), and Cell2D::reg_nbor_msg().
int Cell::run_until [protected] |
Definition at line 330 of file amr.h.
Referenced by change_to_leaf(), check_queue(), doIterations(), init_cell(), neighbor_data(), pup(), refine(), and sendInDimension().
int Cell::run_done [protected] |
Definition at line 331 of file amr.h.
Referenced by change_to_leaf(), doIterations(), init_cell(), pup(), and treeSetup().
int* Cell::neighbors [protected] |
Definition at line 333 of file amr.h.
Referenced by doIterations(), init_cell(), pup(), and ~Cell().
int* Cell::nborRecvMsgCount [protected] |
Definition at line 337 of file amr.h.
Referenced by init_cell(), neighbor_data(), pup(), Cell1D::reg_nbor_msg(), Cell3D::reg_nbor_msg(), Cell2D::reg_nbor_msg(), and ~Cell().
NeighborMsg*** Cell::nborRecvMsgBuff [protected] |
Definition at line 338 of file amr.h.
Referenced by init_cell(), pup(), Cell3D::reg_nbor_msg(), Cell2D::reg_nbor_msg(), and ~Cell().
FIFO_QUEUE* Cell::msg_queue [protected] |
Definition at line 340 of file amr.h.
Referenced by check_queue(), init_cell(), neighbor_data(), pup(), and ~Cell().
FIFO_QUEUE* Cell::temp_queue [protected] |
char* Cell::start_ptr [protected] |
int Cell::msg_count [protected] |
int Cell::refined [protected] |
int Cell::autorefine [protected] |
Definition at line 347 of file amr.h.
Referenced by init_cell(), pup(), refine(), and refine_confirmed().
BitVec Cell::retidx [protected] |
int Cell::synchleavrep [protected] |
int Cell::synchinterval [protected] |
Definition at line 352 of file amr.h.
Referenced by change_to_leaf(), init_cell(), pup(), refine(), refineExec(), ResumeFromSync(), and treeSetup().
int Cell::synchstep [protected] |
Definition at line 352 of file amr.h.
Referenced by change_to_leaf(), doIterations(), init_cell(), neighbor_data(), pup(), refine(), refineExec(), and ResumeFromSync().
int Cell::justRefined [protected] |
Definition at line 353 of file amr.h.
Referenced by change_to_leaf(), doIterations(), init_cell(), pup(), and refineExec().
CkChareID Cell::coordHandle [protected] |
Definition at line 356 of file amr.h.
Referenced by change_to_leaf(), init_cell(), pup(), synchronise(), and treeSetup().
int Cell::statCollection [protected] |
Definition at line 358 of file amr.h.
Referenced by change_to_leaf(), init_cell(), pup(), refine(), and treeSetup().
Definition at line 360 of file amr.h.
Referenced by change_to_leaf(), init_cell(), pup(), refine(), and treeSetup().