#include <ComputeDiracThread.h>
Public Member Functions | |
ComputeDiracThread (FEProblemBase &feproblem, const std::set< TagID > &tags, bool _is_jacobian) | |
ComputeDiracThread (ComputeDiracThread &x, Threads::split) | |
virtual | ~ComputeDiracThread () |
virtual void | subdomainChanged () override |
Called every time the current subdomain changes (i.e. More... | |
virtual void | pre () override |
Called before the element range loop. More... | |
virtual void | onElement (const Elem *elem) override |
Assembly of the element (not including surface assembly) 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 ComputeDiracThread &) |
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 DistElemRange &range, bool bypass_threading=false) |
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 | 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... | |
Protected Member Functions | |
void | printGeneralExecutionInformation () const override |
Output a message indicating execution on this execution flag. More... | |
void | printBlockExecutionInformation () const override |
Output the order of execution of objects within the current subdomain. 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... | |
virtual bool | shouldComputeInternalSide (const Elem &elem, const Elem &neighbor) const |
Whether to compute the internal side for the provided element-neighbor pair. More... | |
Protected Attributes | |
bool | _is_jacobian |
NonlinearSystemBase & | _nl |
const std::set< TagID > & | _tags |
MooseObjectTagWarehouse< DiracKernelBase > & | _dirac_kernels |
Storage for DiracKernel objects. More... | |
MooseObjectWarehouse< DiracKernelBase > * | _dirac_warehouse |
FEProblemBase & | _fe_problem |
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 27 of file ComputeDiracThread.h.
ComputeDiracThread::ComputeDiracThread | ( | FEProblemBase & | feproblem, |
const std::set< TagID > & | tags, | ||
bool | _is_jacobian | ||
) |
Definition at line 23 of file ComputeDiracThread.C.
ComputeDiracThread::ComputeDiracThread | ( | ComputeDiracThread & | x, |
Threads::split | split | ||
) |
Definition at line 35 of file ComputeDiracThread.C.
|
virtual |
Definition at line 44 of file ComputeDiracThread.C.
|
overridevirtualinherited |
Called if a MooseException is caught anywhere during the computation.
The single input parameter taken is a MooseException object.
Reimplemented from ThreadedElementLoopBase< DistElemRange >.
Definition at line 105 of file ThreadedElementLoop.h.
|
protectedinherited |
Definition at line 195 of file ThreadedElementLoop.h.
void ComputeDiracThread::join | ( | const ComputeDiracThread & | ) |
Definition at line 166 of file ComputeDiracThread.C.
|
inlineoverridevirtualinherited |
Whether or not the loop should continue.
Reimplemented from ThreadedElementLoopBase< DistElemRange >.
Definition at line 45 of file ThreadedElementLoop.h.
|
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< DistElemRange >.
Definition at line 139 of file ThreadedElementLoop.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) |
Definition at line 366 of file ThreadedElementLoopBase.h.
|
overridevirtual |
Assembly of the element (not including surface assembly)
elem | - active element |
Reimplemented from ThreadedElementLoopBase< DistElemRange >.
Definition at line 85 of file ComputeDiracThread.C.
|
virtualinherited |
Called when iterating over external sides (no side neighbor)
elem | - Element we are on |
side | - local side number of the element 'elem' |
Definition at line 393 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 |
Definition at line 399 of file ThreadedElementLoopBase.h.
|
virtualinherited |
Called when doing internal edge assembling.
elem | - Element we are on |
side | - local side number of the element 'elem' |
Definition at line 387 of file ThreadedElementLoopBase.h.
|
virtualinherited |
Definition at line 223 of file ThreadedElementLoopBase.h.
|
overridevirtual |
Called after the element range loop.
Reimplemented from ThreadedElementLoopBase< DistElemRange >.
Definition at line 159 of file ComputeDiracThread.C.
|
overridevirtual |
Called after the element assembly is done (including surface assembling)
elem | - active element |
Reimplemented from ThreadedElementLoopBase< DistElemRange >.
Definition at line 149 of file ComputeDiracThread.C.
|
virtualinherited |
Called after evaluations on an element internal side.
elem | - Element we are on |
side | - local side number of the element 'elem' |
Definition at line 381 of file ThreadedElementLoopBase.h.
|
overridevirtual |
Called before the element range loop.
Reimplemented from ThreadedElementLoopBase< DistElemRange >.
Definition at line 47 of file ComputeDiracThread.C.
|
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< DistElemRange >.
Definition at line 129 of file ThreadedElementLoop.h.
|
overridevirtualinherited |
Called before the element assembly.
elem | - active element |
Reimplemented from ThreadedElementLoopBase< DistElemRange >.
Definition at line 115 of file ThreadedElementLoop.h.
|
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< DistElemRange >.
Definition at line 122 of file ThreadedElementLoop.h.
|
protectedinherited |
Definition at line 186 of file ThreadedElementLoop.h.
|
overrideprotectedvirtual |
Output the order of execution of objects within the current subdomain.
Reimplemented from ThreadedElementLoopBase< DistElemRange >.
Definition at line 181 of file ComputeDiracThread.C.
|
inlineprotectedvirtualinherited |
Print information about the particular ordering of objects on each boundary.
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 |
Output a message indicating execution on this execution flag.
Reimplemented from ThreadedElementLoopBase< DistElemRange >.
Definition at line 171 of file ComputeDiracThread.C.
|
protectedinherited |
Resets the set of blocks and boundaries visited.
Definition at line 444 of file ThreadedElementLoopBase.h.
|
protectedvirtualinherited |
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
Definition at line 419 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< DistElemRange >.
Definition at line 55 of file ComputeDiracThread.C.
|
mutableprotectedinherited |
Keep track of which blocks were visited.
Definition at line 187 of file ThreadedElementLoopBase.h.
Referenced by printBlockExecutionInformation().
|
mutableprotectedinherited |
Keep track of which boundaries were visited.
Definition at line 190 of file ThreadedElementLoopBase.h.
|
protected |
Storage for DiracKernel objects.
Definition at line 58 of file ComputeDiracThread.h.
Referenced by subdomainChanged().
|
protected |
Definition at line 60 of file ComputeDiracThread.h.
Referenced by onElement(), printBlockExecutionInformation(), and subdomainChanged().
|
protectedinherited |
Definition at line 62 of file ThreadedElementLoop.h.
Referenced by onElement(), post(), postElement(), printBlockExecutionInformation(), printGeneralExecutionInformation(), and subdomainChanged().
|
protected |
Definition at line 52 of file ComputeDiracThread.h.
Referenced by onElement(), postElement(), and subdomainChanged().
|
protectedinherited |
Definition at line 162 of file ThreadedElementLoopBase.h.
|
protectedinherited |
The subdomain for the current neighbor.
Definition at line 172 of file ThreadedElementLoopBase.h.
|
protected |
Definition at line 53 of file ComputeDiracThread.h.
Referenced by onElement().
|
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.
|
protectedinherited |
The subdomain for the current element.
Definition at line 166 of file ThreadedElementLoopBase.h.
Referenced by onElement(), printBlockExecutionInformation(), and subdomainChanged().
|
protected |
Definition at line 55 of file ComputeDiracThread.h.
Referenced by subdomainChanged().
|
protectedinherited |
Definition at line 163 of file ThreadedElementLoopBase.h.
Referenced by onElement(), post(), postElement(), pre(), printBlockExecutionInformation(), printGeneralExecutionInformation(), and subdomainChanged().