#include <CacheChangedListsThread.h>
Public Member Functions | |
| CacheChangedListsThread (MooseMesh &mesh) | |
| CacheChangedListsThread (CacheChangedListsThread &x, Threads::split split) | |
| virtual | ~CacheChangedListsThread () |
| virtual void | onElement (const Elem *elem) override |
| Assembly of the element (not including surface assembly) More... | |
| void | join (const CacheChangedListsThread &y) |
| bool | shouldComputeInternalSide (const Elem &elem, const Elem &neighbor) const override |
| Whether to compute the internal side for the provided element-neighbor pair. More... | |
| virtual void | operator() (const ConstElemRange &range, bool bypass_threading=false) |
| virtual void | pre () |
| Called before the element range loop. More... | |
| virtual void | post () |
| Called after the element range loop. More... | |
| virtual void | preElement (const Elem *elem) |
| Called before the element assembly. More... | |
| virtual void | postElement (const Elem *elem) |
| Called after the element assembly is done (including surface assembling) More... | |
| virtual void | preBoundary (const Elem *elem, unsigned int side, BoundaryID bnd_id, const Elem *lower_d_elem=nullptr) |
| Called before the boundary assembly. More... | |
| virtual void | onBoundary (const Elem *elem, unsigned int side, BoundaryID bnd_id, const Elem *lower_d_elem=nullptr) |
| Called when doing boundary assembling. More... | |
| virtual void | preInternalSide (const Elem *elem, unsigned int side) |
| Called before evaluations on an element internal side. More... | |
| virtual void | postInternalSide (const Elem *elem, unsigned int side) |
| Called after evaluations on an element internal side. More... | |
| virtual void | onInternalSide (const Elem *elem, unsigned int side) |
| Called when doing internal edge assembling. More... | |
| virtual void | onExternalSide (const Elem *elem, unsigned int side) |
| Called when iterating over external sides (no side neighbor) More... | |
| virtual void | onInterface (const Elem *elem, unsigned int side, BoundaryID bnd_id) |
| Called when doing interface assembling. More... | |
| virtual void | subdomainChanged () |
| Called every time the current subdomain changes (i.e. More... | |
| virtual void | neighborSubdomainChanged () |
| Called every time the neighbor subdomain changes (i.e. More... | |
| virtual void | caughtMooseException (MooseException &) |
| Called if a MooseException is caught anywhere during the computation. More... | |
| virtual bool | keepGoing () |
| Whether or not the loop should continue. More... | |
Protected Member Functions | |
| virtual void | printGeneralExecutionInformation () const |
| Print information about the loop ordering. More... | |
| virtual void | printBlockExecutionInformation () const |
| Print information about the particular ordering of objects on each block. More... | |
| virtual void | printBoundaryExecutionInformation (const unsigned int) const |
| Print information about the particular ordering of objects on each boundary. More... | |
| void | resetExecPrintedSets () const |
| Resets the set of blocks and boundaries visited. More... | |
Protected Attributes | |
| std::vector< const Elem * > | _refined_elements |
| The elements that were just refined. More... | |
| std::vector< const Elem * > | _coarsened_elements |
| The elements that were just coarsened. More... | |
| std::map< const Elem *, std::vector< const Elem * > > | _coarsened_element_children |
| Map of Parent elements to children elements for elements that were just coarsened. More... | |
| MooseMesh & | _mesh |
| THREAD_ID | _tid |
| SubdomainID | _subdomain |
| The subdomain for the current element. More... | |
| SubdomainID | _old_subdomain |
| The subdomain for the last element. More... | |
| SubdomainID | _neighbor_subdomain |
| The subdomain for the current neighbor. More... | |
| SubdomainID | _old_neighbor_subdomain |
| The subdomain for the last neighbor. More... | |
| std::set< SubdomainID > | _blocks_exec_printed |
| Keep track of which blocks were visited. More... | |
| std::set< BoundaryID > | _boundaries_exec_printed |
| Keep track of which boundaries were visited. More... | |
Friends | |
| class | MooseMesh |
Definition at line 16 of file CacheChangedListsThread.h.
| CacheChangedListsThread::CacheChangedListsThread | ( | MooseMesh & | mesh | ) |
Definition at line 14 of file CacheChangedListsThread.C.
| CacheChangedListsThread::CacheChangedListsThread | ( | CacheChangedListsThread & | x, |
| Threads::split | split | ||
| ) |
Definition at line 20 of file CacheChangedListsThread.C.
|
virtual |
Definition at line 25 of file CacheChangedListsThread.C.
|
inlinevirtualinherited |
Called if a MooseException is caught anywhere during the computation.
The single input parameter taken is a MooseException object.
Reimplemented in ThreadedElementLoop< ConstElemRange >.
Definition at line 155 of file ThreadedElementLoopBase.h.
| void CacheChangedListsThread::join | ( | const CacheChangedListsThread & | y | ) |
Definition at line 80 of file CacheChangedListsThread.C.
|
inlinevirtualinherited |
Whether or not the loop should continue.
Reimplemented in ThreadedElementLoop< ConstElemRange >.
Definition at line 162 of file ThreadedElementLoopBase.h.
|
virtualinherited |
Called every time the neighbor subdomain changes (i.e.
the subdomain of this neighbor is not the same as the subdomain of the last neighbor). Beware of over-using this! You might think that you can do some expensive stuff in here and get away with it... but there are applications that have TONS of subdomains....
Reimplemented in ThreadedElementLoop< ConstElemRange >.
Definition at line 418 of file ThreadedElementLoopBase.h.
|
virtualinherited |
Called when doing boundary assembling.
| elem | - The element we are checking is on the boundary. |
| side | - The side of the element in question. |
| bnd_id | - ID of the boundary we are at |
| lower_d_elem | - Lower dimensional element (e.g. Mortar) |
Reimplemented in ComputeUserObjectsThread, NonlinearThread, ComputeIndicatorThread, ComputeMaterialsObjectThread, and ComputeMarkerThread.
Definition at line 371 of file ThreadedElementLoopBase.h.
|
overridevirtual |
Assembly of the element (not including surface assembly)
| elem | - active element |
Reimplemented from ThreadedElementLoopBase< ConstElemRange >.
Definition at line 28 of file CacheChangedListsThread.C.
|
virtualinherited |
Called when iterating over external sides (no side neighbor)
| elem | - Element we are on |
| side | - local side number of the element 'elem' |
Reimplemented in ComputeUserObjectsThread, and NonlinearThread.
Definition at line 398 of file ThreadedElementLoopBase.h.
|
virtualinherited |
Called when doing interface assembling.
| elem | - Element we are on |
| side | - local side number of the element 'elem' |
| bnd_id | - ID of the interface we are at |
Reimplemented in ComputeUserObjectsThread, NonlinearThread, and ComputeMaterialsObjectThread.
Definition at line 404 of file ThreadedElementLoopBase.h.
|
virtualinherited |
Called when doing internal edge assembling.
| elem | - Element we are on |
| side | - local side number of the element 'elem' |
Reimplemented in ComputeUserObjectsThread, NonlinearThread, ComputeIndicatorThread, ComputeMaterialsObjectThread, and ComputeMarkerThread.
Definition at line 392 of file ThreadedElementLoopBase.h.
|
virtualinherited |
Reimplemented in NonlinearThread, and ComputeJacobianForScalingThread.
Definition at line 226 of file ThreadedElementLoopBase.h.
|
virtualinherited |
Called after the element range loop.
Reimplemented in ComputeUserObjectsThread, NonlinearThread, ComputeIndicatorThread, ComputeElemAuxVarsThread< AuxKernelType >, ComputeMarkerThread, and ComputeMaterialsObjectThread.
Definition at line 338 of file ThreadedElementLoopBase.h.
|
virtualinherited |
Called after the element assembly is done (including surface assembling)
| elem | - active element |
Reimplemented in ComputeJacobianBlocksThread, NonlinearThread, ComputeIndicatorThread, ComputeJacobianThread, and ComputeMarkerThread.
Definition at line 356 of file ThreadedElementLoopBase.h.
|
virtualinherited |
Called after evaluations on an element internal side.
| elem | - Element we are on |
| side | - local side number of the element 'elem' |
Reimplemented in ComputeJacobianBlocksThread.
Definition at line 386 of file ThreadedElementLoopBase.h.
|
virtualinherited |
Called before the element range loop.
Definition at line 332 of file ThreadedElementLoopBase.h.
Referenced by ComputeJacobianForScalingThread::operator()().
|
virtualinherited |
Called before the boundary assembly.
| elem | - The element we are checking is on the boundary. |
| side | - The side of the element in question. |
| bnd_id | - ID of the boundary we are at |
| lower_d_elem | - Lower dimensional element (e.g. Mortar) |
Reimplemented in ThreadedElementLoop< ConstElemRange >.
Definition at line 362 of file ThreadedElementLoopBase.h.
|
virtualinherited |
Called before the element assembly.
| elem | - active element |
Reimplemented in ThreadedElementLoop< ConstElemRange >.
Definition at line 350 of file ThreadedElementLoopBase.h.
|
virtualinherited |
Called before evaluations on an element internal side.
| elem | - Element we are on |
| side | - local side number of the element 'elem' |
Reimplemented in ThreadedElementLoop< ConstElemRange >.
Definition at line 380 of file ThreadedElementLoopBase.h.
|
inlineprotectedvirtualinherited |
Print information about the particular ordering of objects on each block.
Reimplemented in NonlinearThread, ComputeUserObjectsThread, ComputeIndicatorThread, ComputeElemAuxVarsThread< AuxKernelType >, and ComputeMarkerThread.
Definition at line 184 of file ThreadedElementLoopBase.h.
|
inlineprotectedvirtualinherited |
Print information about the particular ordering of objects on each boundary.
Reimplemented in NonlinearThread.
Definition at line 187 of file ThreadedElementLoopBase.h.
|
inlineprotectedvirtualinherited |
Print information about the loop ordering.
Reimplemented in NonlinearThread, ComputeUserObjectsThread, ComputeIndicatorThread, ComputeElemAuxVarsThread< AuxKernelType >, ComputeMarkerThread, and ComputeElemDampingThread.
Definition at line 181 of file ThreadedElementLoopBase.h.
|
protectedinherited |
Resets the set of blocks and boundaries visited.
Definition at line 454 of file ThreadedElementLoopBase.h.
|
overridevirtual |
Whether to compute the internal side for the provided element-neighbor pair.
Typically this will return true if the element id is less than the neighbor id when the elements are equal level, or when the element is more refined than the neighbor, and then false otherwise. One type of loop where the logic will be different is when projecting stateful material properties
Reimplemented from ThreadedElementLoopBase< ConstElemRange >.
Definition at line 91 of file CacheChangedListsThread.C.
|
virtualinherited |
Called every time the current subdomain changes (i.e.
the subdomain of this element is not the same as the subdomain of the last element). Beware of over-using this! You might think that you can do some expensive stuff in here and get away with it... but there are applications that have TONS of subdomains....
Reimplemented in ComputeUserObjectsThread, NonlinearThread, ComputeIndicatorThread, ComputeMaterialsObjectThread, ComputeElemAuxVarsThread< AuxKernelType >, and ComputeMarkerThread.
Definition at line 412 of file ThreadedElementLoopBase.h.
|
friend |
Definition at line 39 of file CacheChangedListsThread.h.
|
mutableprotectedinherited |
Keep track of which blocks were visited.
Definition at line 190 of file ThreadedElementLoopBase.h.
Referenced by ComputeMarkerThread::printBlockExecutionInformation(), ComputeIndicatorThread::printBlockExecutionInformation(), ComputeUserObjectsThread::printBlockExecutionInformation(), and NonlinearThread::printBlockExecutionInformation().
|
mutableprotectedinherited |
Keep track of which boundaries were visited.
Definition at line 193 of file ThreadedElementLoopBase.h.
Referenced by NonlinearThread::printBoundaryExecutionInformation().
|
protected |
Map of Parent elements to children elements for elements that were just coarsened.
Definition at line 37 of file CacheChangedListsThread.h.
Referenced by MooseMesh::cacheChangedLists(), join(), and onElement().
|
protected |
The elements that were just coarsened.
Definition at line 34 of file CacheChangedListsThread.h.
Referenced by MooseMesh::cacheChangedLists(), join(), and onElement().
|
protectedinherited |
Definition at line 165 of file ThreadedElementLoopBase.h.
Referenced by onElement(), NonlinearThread::onExternalSide(), NonlinearThread::printBlockExecutionInformation(), and NonlinearThread::printBoundaryExecutionInformation().
|
protectedinherited |
The subdomain for the current neighbor.
Definition at line 175 of file ThreadedElementLoopBase.h.
Referenced by ComputeResidualThread::computeOnInternalFace(), ComputeFullJacobianThread::computeOnInternalFace(), and ComputeJacobianForScalingThread::operator()().
|
protectedinherited |
The subdomain for the last neighbor.
Definition at line 178 of file ThreadedElementLoopBase.h.
|
protectedinherited |
The subdomain for the last element.
Definition at line 172 of file ThreadedElementLoopBase.h.
Referenced by ComputeJacobianForScalingThread::operator()().
|
protected |
The elements that were just refined.
Definition at line 31 of file CacheChangedListsThread.h.
Referenced by MooseMesh::cacheChangedLists(), join(), and onElement().
|
protectedinherited |
The subdomain for the current element.
Definition at line 169 of file ThreadedElementLoopBase.h.
Referenced by ComputeFullJacobianThread::computeOnBoundary(), ComputeFullJacobianThread::computeOnElement(), NonlinearThread::computeOnElement(), ComputeResidualThread::computeOnInternalFace(), ComputeFullJacobianThread::computeOnInternalFace(), ComputeResidualAndJacobianThread::computeOnInternalFace(), ComputeJacobianThread::computeOnInternalFace(), NonlinearThread::computeOnInternalFace(), ComputeResidualThread::determineObjectWarehouses(), ComputeResidualAndJacobianThread::determineObjectWarehouses(), ComputeMaterialsObjectThread::onBoundary(), ComputeMarkerThread::onElement(), ComputeIndicatorThread::onElement(), ComputeMaterialsObjectThread::onElement(), ComputeUserObjectsThread::onElement(), ComputeMaterialsObjectThread::onInterface(), ComputeMaterialsObjectThread::onInternalSide(), ComputeJacobianForScalingThread::operator()(), ComputeJacobianBlocksThread::postInternalSide(), ComputeMarkerThread::printBlockExecutionInformation(), ComputeIndicatorThread::printBlockExecutionInformation(), ComputeUserObjectsThread::printBlockExecutionInformation(), NonlinearThread::printBlockExecutionInformation(), ComputeUserObjectsThread::querySubdomain(), ComputeMarkerThread::subdomainChanged(), ComputeMaterialsObjectThread::subdomainChanged(), ComputeIndicatorThread::subdomainChanged(), NonlinearThread::subdomainChanged(), and ComputeUserObjectsThread::subdomainChanged().
|
protectedinherited |
Definition at line 166 of file ThreadedElementLoopBase.h.
Referenced by ComputeResidualThread::accumulate(), ComputeResidualAndJacobianThread::accumulate(), ComputeResidualThread::accumulateLower(), ComputeResidualAndJacobianThread::accumulateLower(), ComputeJacobianThread::accumulateLower(), ComputeResidualThread::accumulateNeighbor(), ComputeResidualAndJacobianThread::accumulateNeighbor(), ComputeJacobianThread::accumulateNeighbor(), ComputeResidualThread::accumulateNeighborLower(), ComputeResidualAndJacobianThread::accumulateNeighborLower(), ComputeJacobianThread::accumulateNeighborLower(), ComputeFullJacobianThread::computeOnBoundary(), NonlinearThread::computeOnBoundary(), ComputeFullJacobianThread::computeOnElement(), NonlinearThread::computeOnElement(), ComputeFullJacobianThread::computeOnInterface(), NonlinearThread::computeOnInterface(), ComputeResidualThread::computeOnInternalFace(), ComputeFullJacobianThread::computeOnInternalFace(), ComputeResidualAndJacobianThread::computeOnInternalFace(), ComputeJacobianThread::computeOnInternalFace(), NonlinearThread::computeOnInternalFace(), ComputeResidualThread::determineObjectWarehouses(), ComputeJacobianThread::determineObjectWarehouses(), ComputeResidualAndJacobianThread::determineObjectWarehouses(), ComputeMaterialsObjectThread::onBoundary(), NonlinearThread::onBoundary(), ComputeUserObjectsThread::onBoundary(), ComputeMarkerThread::onElement(), ComputeElemDampingThread::onElement(), ComputeIndicatorThread::onElement(), ComputeMaterialsObjectThread::onElement(), NonlinearThread::onElement(), ComputeUserObjectsThread::onElement(), NonlinearThread::onExternalSide(), ComputeMaterialsObjectThread::onInterface(), NonlinearThread::onInterface(), ComputeUserObjectsThread::onInterface(), ComputeMaterialsObjectThread::onInternalSide(), ComputeIndicatorThread::onInternalSide(), NonlinearThread::onInternalSide(), ComputeUserObjectsThread::onInternalSide(), ComputeJacobianForScalingThread::operator()(), ComputeMaterialsObjectThread::post(), ComputeMarkerThread::post(), ComputeIndicatorThread::post(), ComputeUserObjectsThread::post(), ComputeJacobianThread::postElement(), ComputeJacobianBlocksThread::postElement(), ComputeJacobianBlocksThread::postInternalSide(), NonlinearThread::prepareFace(), ComputeMarkerThread::printBlockExecutionInformation(), ComputeIndicatorThread::printBlockExecutionInformation(), ComputeUserObjectsThread::printBlockExecutionInformation(), NonlinearThread::printBlockExecutionInformation(), NonlinearThread::printBoundaryExecutionInformation(), ComputeElemDampingThread::printGeneralExecutionInformation(), ComputeMarkerThread::printGeneralExecutionInformation(), ComputeIndicatorThread::printGeneralExecutionInformation(), ComputeUserObjectsThread::printGeneralExecutionInformation(), NonlinearThread::printGeneralExecutionInformation(), ComputeUserObjectsThread::queryBoundary(), ComputeUserObjectsThread::querySubdomain(), ComputeMarkerThread::subdomainChanged(), ComputeMaterialsObjectThread::subdomainChanged(), ComputeIndicatorThread::subdomainChanged(), NonlinearThread::subdomainChanged(), and ComputeUserObjectsThread::subdomainChanged().
1.8.14