#include <ComputeMaterialsObjectThread.h>
Public Member Functions | |
ComputeMaterialsObjectThread (FEProblemBase &fe_problem, MaterialPropertyStorage &material_props, MaterialPropertyStorage &bnd_material_props, MaterialPropertyStorage &neighbor_material_props, std::vector< std::vector< std::unique_ptr< Assembly >>> &assembly) | |
ComputeMaterialsObjectThread (ComputeMaterialsObjectThread &x, Threads::split split) | |
virtual void | post () override |
Called after the element range loop. More... | |
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 | onInterface (const Elem *elem, unsigned int side, BoundaryID bnd_id) override |
Called when doing interface assembling. More... | |
void | join (const ComputeMaterialsObjectThread &) |
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 | postElement (const Elem *elem) |
Called after the element assembly is done (including surface assembling) More... | |
virtual void | postInternalSide (const Elem *elem, unsigned int side) |
Called after evaluations on an element internal side. More... | |
Protected Member Functions | |
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 | 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 | |
FEProblemBase & | _fe_problem |
MaterialPropertyStorage & | _material_props |
MaterialPropertyStorage & | _bnd_material_props |
MaterialPropertyStorage & | _neighbor_material_props |
const MaterialWarehouse & | _materials |
This is populated using _fe_problem.getResidualMaterialsWarehouse because it has the union of traditional materials and the residual version of AD materials. More... | |
const MaterialWarehouse & | _interface_materials |
This is populated using _fe_problem.getResidualInterfaceMaterialsWarehouse because it has the union of traditional interface materials and the residual version of AD interface materials. More... | |
const MaterialWarehouse & | _discrete_materials |
std::vector< std::vector< std::unique_ptr< Assembly > > > & | _assembly |
bool | _need_internal_side_material |
const bool | _has_stateful_props |
const bool | _has_bnd_stateful_props |
const bool | _has_neighbor_stateful_props |
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 23 of file ComputeMaterialsObjectThread.h.
ComputeMaterialsObjectThread::ComputeMaterialsObjectThread | ( | FEProblemBase & | fe_problem, |
MaterialPropertyStorage & | material_props, | ||
MaterialPropertyStorage & | bnd_material_props, | ||
MaterialPropertyStorage & | neighbor_material_props, | ||
std::vector< std::vector< std::unique_ptr< Assembly >>> & | assembly | ||
) |
Definition at line 24 of file ComputeMaterialsObjectThread.C.
ComputeMaterialsObjectThread::ComputeMaterialsObjectThread | ( | ComputeMaterialsObjectThread & | x, |
Threads::split | split | ||
) |
Definition at line 47 of file ComputeMaterialsObjectThread.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 101 of file ThreadedElementLoop.h.
Referenced by ComputeJacobianForScalingThread::operator()().
void ComputeMaterialsObjectThread::join | ( | const ComputeMaterialsObjectThread & | ) |
Definition at line 296 of file ComputeMaterialsObjectThread.C.
|
inlineoverridevirtualinherited |
Whether or not the loop should continue.
Reimplemented from ThreadedElementLoopBase< ConstElemRange >.
Definition at line 44 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 135 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 111 of file ComputeMaterialsObjectThread.C.
|
overridevirtual |
Assembly of the element (not including surface assembly)
elem | - active element |
Reimplemented from ThreadedElementLoopBase< ConstElemRange >.
Definition at line 85 of file ComputeMaterialsObjectThread.C.
|
overridevirtual |
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 from ThreadedElementLoopBase< ConstElemRange >.
Definition at line 210 of file ComputeMaterialsObjectThread.C.
|
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 153 of file ComputeMaterialsObjectThread.C.
|
virtualinherited |
Reimplemented in NonlinearThread, and ComputeJacobianForScalingThread.
Definition at line 216 of file ThreadedElementLoopBase.h.
|
overridevirtual |
Called after the element range loop.
Reimplemented from ThreadedElementLoopBase< ConstElemRange >.
Definition at line 301 of file ComputeMaterialsObjectThread.C.
|
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 342 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 372 of file ThreadedElementLoopBase.h.
|
virtualinherited |
Called before the element range loop.
Definition at line 318 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 125 of file ThreadedElementLoop.h.
|
overridevirtualinherited |
Called before the element assembly.
elem | - active element |
Reimplemented from ThreadedElementLoopBase< ConstElemRange >.
Definition at line 111 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 118 of file ThreadedElementLoop.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 173 of file ThreadedElementLoopBase.h.
|
inlineprotectedvirtualinherited |
Print information about the particular ordering of objects on each boundary.
Reimplemented in NonlinearThread.
Definition at line 176 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 144 of file ThreadedElementLoop.h.
|
protectedinherited |
Definition at line 169 of file ThreadedElementLoop.h.
|
inlineprotectedvirtualinherited |
Print information about the loop ordering.
Reimplemented in NonlinearThread, ComputeUserObjectsThread, ComputeIndicatorThread, ComputeElemAuxVarsThread< AuxKernelType >, ComputeMarkerThread, and ComputeElemDampingThread.
Definition at line 170 of file ThreadedElementLoopBase.h.
|
protectedinherited |
Resets the set of blocks and boundaries visited.
Definition at line 429 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 66 of file ComputeMaterialsObjectThread.C.
|
protected |
Definition at line 66 of file ComputeMaterialsObjectThread.h.
Referenced by onBoundary(), onElement(), onInterface(), and onInternalSide().
|
mutableprotectedinherited |
Keep track of which blocks were visited.
Definition at line 179 of file ThreadedElementLoopBase.h.
Referenced by ComputeMarkerThread::printBlockExecutionInformation(), ComputeIndicatorThread::printBlockExecutionInformation(), ComputeUserObjectsThread::printBlockExecutionInformation(), and NonlinearThread::printBlockExecutionInformation().
|
protected |
Definition at line 50 of file ComputeMaterialsObjectThread.h.
Referenced by onBoundary(), onInterface(), and onInternalSide().
|
mutableprotectedinherited |
Keep track of which boundaries were visited.
Definition at line 182 of file ThreadedElementLoopBase.h.
Referenced by NonlinearThread::printBoundaryExecutionInformation().
|
protected |
Definition at line 64 of file ComputeMaterialsObjectThread.h.
Referenced by onBoundary(), onElement(), onInterface(), onInternalSide(), and subdomainChanged().
|
protected |
Definition at line 48 of file ComputeMaterialsObjectThread.h.
Referenced by onBoundary(), onElement(), onInterface(), onInternalSide(), post(), and subdomainChanged().
|
protected |
Definition at line 70 of file ComputeMaterialsObjectThread.h.
Referenced by onBoundary(), onInterface(), and onInternalSide().
|
protected |
Definition at line 71 of file ComputeMaterialsObjectThread.h.
Referenced by onInterface(), and onInternalSide().
|
protected |
Definition at line 69 of file ComputeMaterialsObjectThread.h.
Referenced by onElement().
|
protected |
This is populated using _fe_problem.getResidualInterfaceMaterialsWarehouse because it has the union of traditional interface materials and the residual version of AD interface materials.
We don't need the Jacobian version of the ADInterfaceMaterial for doing stateful stuff
Definition at line 62 of file ComputeMaterialsObjectThread.h.
Referenced by onInterface().
|
protected |
Definition at line 49 of file ComputeMaterialsObjectThread.h.
Referenced by onElement().
|
protected |
This is populated using _fe_problem.getResidualMaterialsWarehouse because it has the union of traditional materials and the residual version of AD materials.
We don't need the Jacobian version of the ADMaterial for doing stateful stuff
Definition at line 56 of file ComputeMaterialsObjectThread.h.
Referenced by onBoundary(), onElement(), onInterface(), onInternalSide(), and subdomainChanged().
|
protectedinherited |
Definition at line 154 of file ThreadedElementLoopBase.h.
Referenced by CacheChangedListsThread::onElement(), NonlinearThread::printBlockExecutionInformation(), and NonlinearThread::printBoundaryExecutionInformation().
|
protected |
Definition at line 67 of file ComputeMaterialsObjectThread.h.
Referenced by onInternalSide(), and subdomainChanged().
|
protected |
Definition at line 51 of file ComputeMaterialsObjectThread.h.
Referenced by onInterface(), and onInternalSide().
|
protectedinherited |
The subdomain for the current neighbor.
Definition at line 164 of file ThreadedElementLoopBase.h.
Referenced by ComputeJacobianForScalingThread::operator()().
|
protectedinherited |
The subdomain for the last neighbor.
Definition at line 167 of file ThreadedElementLoopBase.h.
|
protectedinherited |
The subdomain for the last element.
Definition at line 161 of file ThreadedElementLoopBase.h.
Referenced by ComputeJacobianForScalingThread::operator()().
|
protectedinherited |
The subdomain for the current element.
Definition at line 158 of file ThreadedElementLoopBase.h.
Referenced by ComputeFullJacobianThread::computeOnBoundary(), ComputeFullJacobianThread::computeOnElement(), NonlinearThread::computeOnElement(), ComputeFullJacobianThread::computeOnInternalFace(), NonlinearThread::computeOnInternalFace(), ComputeResidualThread::determineObjectWarehouses(), ComputeResidualAndJacobianThread::determineObjectWarehouses(), onBoundary(), ComputeUserObjectsThread::onBoundary(), ComputeMarkerThread::onElement(), ComputeIndicatorThread::onElement(), onElement(), NonlinearThread::onElement(), ComputeUserObjectsThread::onElement(), onInterface(), onInternalSide(), NonlinearThread::onInternalSide(), ComputeJacobianForScalingThread::operator()(), ComputeJacobianBlocksThread::postInternalSide(), ComputeMarkerThread::printBlockExecutionInformation(), ComputeIndicatorThread::printBlockExecutionInformation(), ComputeUserObjectsThread::printBlockExecutionInformation(), NonlinearThread::printBlockExecutionInformation(), ComputeUserObjectsThread::querySubdomain(), ComputeMarkerThread::subdomainChanged(), ComputeIndicatorThread::subdomainChanged(), subdomainChanged(), NonlinearThread::subdomainChanged(), and ComputeUserObjectsThread::subdomainChanged().
|
protectedinherited |
Definition at line 155 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(), onBoundary(), NonlinearThread::onBoundary(), ComputeUserObjectsThread::onBoundary(), ComputeMarkerThread::onElement(), ComputeElemDampingThread::onElement(), ComputeIndicatorThread::onElement(), onElement(), NonlinearThread::onElement(), ComputeUserObjectsThread::onElement(), onInterface(), NonlinearThread::onInterface(), ComputeUserObjectsThread::onInterface(), ComputeIndicatorThread::onInternalSide(), onInternalSide(), NonlinearThread::onInternalSide(), ComputeUserObjectsThread::onInternalSide(), ComputeJacobianForScalingThread::operator()(), post(), ComputeMarkerThread::post(), ComputeIndicatorThread::post(), NonlinearThread::post(), ComputeUserObjectsThread::post(), ComputeJacobianThread::postElement(), ComputeJacobianBlocksThread::postElement(), ComputeJacobianBlocksThread::postInternalSide(), 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(), subdomainChanged(), ComputeIndicatorThread::subdomainChanged(), NonlinearThread::subdomainChanged(), and ComputeUserObjectsThread::subdomainChanged().