#include <ComputeIndicatorThread.h>
Public Member Functions | |
ComputeIndicatorThread (FEProblemBase &fe_problem, bool finalize=false) | |
ComputeIndicatorThread (ComputeIndicatorThread &x, Threads::split split) | |
virtual | ~ComputeIndicatorThread () |
virtual void | subdomainChanged () override |
Called every time the current subdomain changes (i.e. More... | |
virtual void | onElement (const Elem *elem) override |
Assembly of the element (not including surface assembly) More... | |
virtual void | onBoundary (const Elem *elem, unsigned int side, BoundaryID bnd_id, const Elem *lower_d_elem=nullptr) override |
Called when doing boundary assembling. More... | |
virtual void | onInternalSide (const Elem *elem, unsigned int side) override |
Called when doing internal edge assembling. More... | |
virtual void | postElement (const Elem *) override |
Called after the element assembly is done (including surface assembling) More... | |
virtual void | post () override |
Called after the element range loop. More... | |
void | join (const ComputeIndicatorThread &) |
virtual void | caughtMooseException (MooseException &e) override |
Called if a MooseException is caught anywhere during the computation. More... | |
virtual bool | keepGoing () override |
Whether or not the loop should continue. More... | |
virtual void | preElement (const Elem *elem) override |
Called before the element assembly. More... | |
virtual void | preInternalSide (const Elem *elem, unsigned int side) override |
Called before evaluations on an element internal side. More... | |
virtual void | preBoundary (const Elem *elem, unsigned int side, BoundaryID bnd_id, const Elem *lower_d_elem=nullptr) override |
Called before the boundary assembly. More... | |
virtual void | neighborSubdomainChanged () override |
Called every time the neighbor subdomain changes (i.e. More... | |
virtual void | operator() (const ConstElemRange &range, bool bypass_threading=false) |
virtual void | pre () |
Called before the element range loop. More... | |
virtual void | postInternalSide (const Elem *elem, unsigned int side) |
Called after evaluations on an element internal side. 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... | |
Protected Member Functions | |
void | printGeneralExecutionInformation () const override |
Print general information about the loop when it executes. More... | |
void | printBlockExecutionInformation () const override |
Print list of specific objects executed and in which order. More... | |
void | prepareElement (const Elem *elem) |
void | clearVarsAndMaterials () |
void | printExecutionOrdering (const std::vector< T * > &objs, const bool print_header=true, const std::string &line_prefix="[DBG]") const |
Routine to output the ordering of objects within a vector of pointers to these objects. More... | |
void | printExecutionOrdering (const std::vector< std::shared_ptr< T >> &objs_ptrs, const bool print_header=true, const std::string &line_prefix="[DBG]") const |
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 | |
FEProblemBase & | _fe_problem |
AuxiliarySystem & | _aux_sys |
const MooseObjectWarehouse< Indicator > & | _indicator_whs |
Indicator Storage. More... | |
const MooseObjectWarehouse< InternalSideIndicator > & | _internal_side_indicators |
InternalSideIndicator Storage. More... | |
bool | _finalize |
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... | |
Definition at line 20 of file ComputeIndicatorThread.h.
ComputeIndicatorThread::ComputeIndicatorThread | ( | FEProblemBase & | fe_problem, |
bool | finalize = false |
||
) |
fe_problem | reference to the FEProblemBase we are computing on |
sys | reference to the AuxSystem we are computing on |
indicator_whs | Warehouse of Indicator objects. |
finalize | Whether or not we are just in the "finalize" stage or not. |
Definition at line 26 of file ComputeIndicatorThread.C.
ComputeIndicatorThread::ComputeIndicatorThread | ( | ComputeIndicatorThread & | x, |
Threads::split | split | ||
) |
Definition at line 37 of file ComputeIndicatorThread.C.
|
virtual |
Definition at line 47 of file ComputeIndicatorThread.C.
|
overridevirtualinherited |
Called if a MooseException is caught anywhere during the computation.
The single input parameter taken is a MooseException object.
Reimplemented from ThreadedElementLoopBase< ConstElemRange >.
Definition at line 105 of file ThreadedElementLoop.h.
Referenced by ComputeJacobianForScalingThread::operator()().
|
protectedinherited |
Definition at line 195 of file ThreadedElementLoop.h.
Referenced by HDGPrimalSolutionUpdateThread::post(), and NonlinearThread::post().
void ComputeIndicatorThread::join | ( | const ComputeIndicatorThread & | ) |
Definition at line 188 of file ComputeIndicatorThread.C.
|
inlineoverridevirtualinherited |
Whether or not the loop should continue.
Reimplemented from ThreadedElementLoopBase< ConstElemRange >.
Definition at line 45 of file ThreadedElementLoop.h.
Referenced by ComputeJacobianForScalingThread::operator()().
|
overridevirtualinherited |
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 from ThreadedElementLoopBase< ConstElemRange >.
Definition at line 139 of file ThreadedElementLoop.h.
|
overridevirtual |
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 from ThreadedElementLoopBase< ConstElemRange >.
Definition at line 135 of file ComputeIndicatorThread.C.
|
overridevirtual |
Assembly of the element (not including surface assembly)
elem | - active element |
Reimplemented from ThreadedElementLoopBase< ConstElemRange >.
Definition at line 80 of file ComputeIndicatorThread.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.
Definition at line 394 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 400 of file ThreadedElementLoopBase.h.
|
overridevirtual |
Called when doing internal edge assembling.
elem | - Element we are on |
side | - local side number of the element 'elem' |
Reimplemented from ThreadedElementLoopBase< ConstElemRange >.
Definition at line 143 of file ComputeIndicatorThread.C.
|
virtualinherited |
Reimplemented in NonlinearThread, and ComputeJacobianForScalingThread.
Definition at line 224 of file ThreadedElementLoopBase.h.
|
overridevirtual |
Called after the element range loop.
Reimplemented from ThreadedElementLoopBase< ConstElemRange >.
Definition at line 181 of file ComputeIndicatorThread.C.
|
overridevirtual |
Called after the element assembly is done (including surface assembling)
elem | - active element |
Reimplemented from ThreadedElementLoopBase< ConstElemRange >.
Definition at line 176 of file ComputeIndicatorThread.C.
|
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 382 of file ThreadedElementLoopBase.h.
|
virtualinherited |
Called before the element range loop.
Definition at line 328 of file ThreadedElementLoopBase.h.
Referenced by ComputeJacobianForScalingThread::operator()().
|
overridevirtualinherited |
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 from ThreadedElementLoopBase< ConstElemRange >.
Definition at line 129 of file ThreadedElementLoop.h.
|
overridevirtualinherited |
Called before the element assembly.
elem | - active element |
Reimplemented from ThreadedElementLoopBase< ConstElemRange >.
Definition at line 115 of file ThreadedElementLoop.h.
Referenced by ComputeJacobianForScalingThread::operator()().
|
overridevirtualinherited |
Called before evaluations on an element internal side.
elem | - Element we are on |
side | - local side number of the element 'elem' |
Reimplemented from ThreadedElementLoopBase< ConstElemRange >.
Definition at line 122 of file ThreadedElementLoop.h.
|
protectedinherited |
Definition at line 186 of file ThreadedElementLoop.h.
Referenced by HDGPrimalSolutionUpdateThread::onElement(), and NonlinearThread::onElement().
|
overrideprotectedvirtual |
Print list of specific objects executed and in which order.
Reimplemented from ThreadedElementLoopBase< ConstElemRange >.
Definition at line 208 of file ComputeIndicatorThread.C.
|
inlineprotectedvirtualinherited |
Print information about the particular ordering of objects on each boundary.
Reimplemented in NonlinearThread.
Definition at line 184 of file ThreadedElementLoopBase.h.
|
protectedinherited |
Routine to output the ordering of objects within a vector of pointers to these objects.
These objects must implement the name() routine, and it must return a string or compatible type.
T | the object type |
objs | the vector with all the objects (should be pointers) |
objects_type | the name of the type of objects. Defaults to the CPP object name |
print_header | whether to print a header about the timing of execution and the type of objects |
Definition at line 148 of file ThreadedElementLoop.h.
|
protectedinherited |
Definition at line 173 of file ThreadedElementLoop.h.
|
overrideprotectedvirtual |
Print general information about the loop when it executes.
Reimplemented from ThreadedElementLoopBase< ConstElemRange >.
Definition at line 193 of file ComputeIndicatorThread.C.
|
protectedinherited |
Resets the set of blocks and boundaries visited.
Definition at line 445 of file ThreadedElementLoopBase.h.
|
overridevirtual |
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 from ThreadedElementLoopBase< ConstElemRange >.
Definition at line 50 of file ComputeIndicatorThread.C.
|
protected |
Definition at line 56 of file ComputeIndicatorThread.h.
Referenced by onElement(), and onInternalSide().
|
mutableprotectedinherited |
Keep track of which blocks were visited.
Definition at line 187 of file ThreadedElementLoopBase.h.
Referenced by ComputeMarkerThread::printBlockExecutionInformation(), printBlockExecutionInformation(), ComputeUserObjectsThread::printBlockExecutionInformation(), and NonlinearThread::printBlockExecutionInformation().
|
mutableprotectedinherited |
Keep track of which boundaries were visited.
Definition at line 190 of file ThreadedElementLoopBase.h.
Referenced by NonlinearThread::printBoundaryExecutionInformation().
|
protected |
Definition at line 55 of file ComputeIndicatorThread.h.
Referenced by onElement(), onInternalSide(), post(), printBlockExecutionInformation(), printGeneralExecutionInformation(), and subdomainChanged().
|
protected |
Definition at line 64 of file ComputeIndicatorThread.h.
Referenced by onElement(), onInternalSide(), and printGeneralExecutionInformation().
|
protected |
Indicator Storage.
Definition at line 59 of file ComputeIndicatorThread.h.
Referenced by onElement(), printBlockExecutionInformation(), and subdomainChanged().
|
protected |
InternalSideIndicator Storage.
Definition at line 62 of file ComputeIndicatorThread.h.
Referenced by onElement(), onInternalSide(), printBlockExecutionInformation(), and subdomainChanged().
|
protectedinherited |
Definition at line 162 of file ThreadedElementLoopBase.h.
Referenced by CacheChangedListsThread::onElement(), NonlinearThread::printBlockExecutionInformation(), and NonlinearThread::printBoundaryExecutionInformation().
|
protectedinherited |
The subdomain for the current neighbor.
Definition at line 172 of file ThreadedElementLoopBase.h.
Referenced by ComputeJacobianForScalingThread::operator()().
|
protectedinherited |
The subdomain for the last neighbor.
Definition at line 175 of file ThreadedElementLoopBase.h.
|
protectedinherited |
The subdomain for the last element.
Definition at line 169 of file ThreadedElementLoopBase.h.
Referenced by ComputeJacobianForScalingThread::operator()().
|
protectedinherited |
The subdomain for the current element.
Definition at line 166 of file ThreadedElementLoopBase.h.
Referenced by ComputeFullJacobianThread::computeOnBoundary(), ComputeFullJacobianThread::computeOnElement(), NonlinearThread::computeOnElement(), ComputeFullJacobianThread::computeOnInternalFace(), NonlinearThread::computeOnInternalFace(), ComputeResidualThread::determineObjectWarehouses(), ComputeResidualAndJacobianThread::determineObjectWarehouses(), ComputeMaterialsObjectThread::onBoundary(), ComputeUserObjectsThread::onBoundary(), ComputeMarkerThread::onElement(), onElement(), ComputeMaterialsObjectThread::onElement(), HDGPrimalSolutionUpdateThread::onElement(), ComputeUserObjectsThread::onElement(), ComputeMaterialsObjectThread::onInterface(), ComputeMaterialsObjectThread::onInternalSide(), NonlinearThread::onInternalSide(), ComputeJacobianForScalingThread::operator()(), ComputeJacobianBlocksThread::postInternalSide(), ComputeMarkerThread::printBlockExecutionInformation(), printBlockExecutionInformation(), ComputeUserObjectsThread::printBlockExecutionInformation(), NonlinearThread::printBlockExecutionInformation(), ComputeUserObjectsThread::querySubdomain(), ComputeMarkerThread::subdomainChanged(), subdomainChanged(), ComputeMaterialsObjectThread::subdomainChanged(), HDGPrimalSolutionUpdateThread::subdomainChanged(), NonlinearThread::subdomainChanged(), and ComputeUserObjectsThread::subdomainChanged().
|
protectedinherited |
Definition at line 163 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(), ComputeFullJacobianThread::computeOnInternalFace(), NonlinearThread::computeOnInternalFace(), ComputeResidualThread::determineObjectWarehouses(), ComputeJacobianThread::determineObjectWarehouses(), ComputeResidualAndJacobianThread::determineObjectWarehouses(), ComputeMaterialsObjectThread::onBoundary(), NonlinearThread::onBoundary(), ComputeUserObjectsThread::onBoundary(), ComputeMarkerThread::onElement(), ComputeElemDampingThread::onElement(), ComputeMaterialsObjectThread::onElement(), onElement(), HDGPrimalSolutionUpdateThread::onElement(), NonlinearThread::onElement(), ComputeUserObjectsThread::onElement(), ComputeMaterialsObjectThread::onInterface(), NonlinearThread::onInterface(), ComputeUserObjectsThread::onInterface(), onInternalSide(), ComputeMaterialsObjectThread::onInternalSide(), NonlinearThread::onInternalSide(), ComputeUserObjectsThread::onInternalSide(), ComputeJacobianForScalingThread::operator()(), ComputeMaterialsObjectThread::post(), ComputeMarkerThread::post(), post(), ComputeUserObjectsThread::post(), ComputeJacobianThread::postElement(), ComputeJacobianBlocksThread::postElement(), ComputeJacobianBlocksThread::postInternalSide(), ComputeMarkerThread::printBlockExecutionInformation(), printBlockExecutionInformation(), ComputeUserObjectsThread::printBlockExecutionInformation(), NonlinearThread::printBlockExecutionInformation(), NonlinearThread::printBoundaryExecutionInformation(), ComputeElemDampingThread::printGeneralExecutionInformation(), ComputeMarkerThread::printGeneralExecutionInformation(), printGeneralExecutionInformation(), ComputeUserObjectsThread::printGeneralExecutionInformation(), NonlinearThread::printGeneralExecutionInformation(), ComputeUserObjectsThread::queryBoundary(), ComputeUserObjectsThread::querySubdomain(), ComputeMarkerThread::subdomainChanged(), ComputeMaterialsObjectThread::subdomainChanged(), subdomainChanged(), HDGPrimalSolutionUpdateThread::subdomainChanged(), NonlinearThread::subdomainChanged(), and ComputeUserObjectsThread::subdomainChanged().