https://mooseframework.inl.gov
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes | List of all members
ComputeJacobianBlocksThread Class Reference

Specialization for filling multiple "small" preconditioning matrices simulatenously. More...

#include <ComputeJacobianBlocksThread.h>

Inheritance diagram for ComputeJacobianBlocksThread:
[legend]

Public Member Functions

 ComputeJacobianBlocksThread (FEProblemBase &fe_problem, std::vector< JacobianBlock * > &blocks, const std::set< TagID > &tags)
 
 ComputeJacobianBlocksThread (ComputeJacobianBlocksThread &x, Threads::split split)
 
virtual ~ComputeJacobianBlocksThread ()
 
void join (const ComputeJacobianThread &)
 
virtual void operator() (const ConstElemRange &range, bool bypass_threading=false) override
 
virtual void operator() (const RangeType &range, bool bypass_threading=false)
 
virtual void subdomainChanged () override
 Called every time the current subdomain changes (i.e.
 
virtual void onElement (const Elem *elem) override
 Assembly of the element (not including surface assembly)
 
virtual void onBoundary (const Elem *elem, unsigned int side, BoundaryID bnd_id, const Elem *lower_d_elem=nullptr) override
 Called when doing boundary assembling.
 
virtual void onInterface (const Elem *elem, unsigned int side, BoundaryID bnd_id) override
 Called when doing interface assembling.
 
virtual void onInternalSide (const Elem *elem, unsigned int side) override
 Called when doing internal edge assembling.
 
virtual void onExternalSide (const Elem *elem, unsigned int side) override
 Called when iterating over external sides (no side neighbor)
 
virtual void post () override
 Called after the element range loop.
 
bool shouldComputeInternalSide (const Elem &elem, const Elem &neighbor) const override
 Whether to compute the internal side for the provided element-neighbor pair.
 
virtual void caughtMooseException (MooseException &e) override
 Called if a MooseException is caught anywhere during the computation.
 
virtual bool keepGoing () override
 Whether or not the loop should continue.
 
virtual void preElement (const Elem *elem) override
 Called before the element assembly.
 
virtual void preInternalSide (const Elem *elem, unsigned int side) override
 Called before evaluations on an element internal side.
 
virtual void preBoundary (const Elem *elem, unsigned int side, BoundaryID bnd_id, const Elem *lower_d_elem=nullptr) override
 Called before the boundary assembly.
 
virtual void neighborSubdomainChanged () override
 Called every time the neighbor subdomain changes (i.e.
 
virtual void pre ()
 Called before the element range loop.
 

Protected Member Functions

virtual void postElement (const Elem *elem) override
 Called after the element assembly is done (including surface assembling)
 
virtual void postInternalSide (const Elem *elem, unsigned int side) override
 Called after evaluations on an element internal side.
 
virtual void computeOnElement () override
 
virtual void computeOnBoundary (BoundaryID bnd_id, const Elem *lower_d_elem) override
 
virtual void computeOnInternalFace (const Elem *neighbor) override
 
virtual void computeOnInternalFace () override
 
virtual void computeOnInterface (BoundaryID bnd_id) override
 
void determineObjectWarehouses () override
 Determine the objects we will actually compute based on vector/matrix tag information.
 
void accumulateNeighbor () override
 Add neighbor residual/Jacobian into assembly global data.
 
virtual void accumulateNeighborLower () override
 Add neighbor and lower residual/Jacobian into assembly global data.
 
virtual void accumulateLower () override
 Add lower-d residual/Jacobian into assembly global data.
 
virtual void accumulate () override
 Add element residual/Jacobian into assembly global data.
 
virtual void compute (ResidualObject &) override
 Will dispatch to computeResidual/computeJacobian/computeResidualAndJacobian based on the derived class.
 
void compute (KernelBase &kernel) override
 
void compute (FVElementalKernel &kernel) override
 
void compute (IntegratedBCBase &bc) override
 
void compute (DGKernelBase &dg, const Elem *neighbor) override
 
void compute (InterfaceKernelBase &ik) override
 
std::string objectType () const override
 Return what the loops is meant to compute.
 
void prepareFace (const Elem *elem, unsigned int side, BoundaryID bnd_id=Moose::INVALID_BOUNDARY_ID, const Elem *lower_d_elem=nullptr)
 Reinitialize variables and materials on a face.
 
void printGeneralExecutionInformation () const override
 Print information about the loop, mostly order of execution of objects.
 
void printBlockExecutionInformation () const override
 Print list of specific objects executed on each block and in which order.
 
void printBoundaryExecutionInformation (const unsigned int bid) const override
 Print list of specific objects executed on each boundary and in which order.
 
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.
 
void printExecutionOrdering (const std::vector< std::shared_ptr< T > > &objs_ptrs, const bool print_header=true, const std::string &line_prefix="[DBG]") const
 
void resetExecPrintedSets () const
 Resets the set of blocks and boundaries visited.
 

Protected Attributes

std::vector< JacobianBlock * > _blocks
 
const std::set< TagID > & _tags
 
NonlinearSystemBase_nl
 Reference to the underlying NonlinearSystemBase.
 
unsigned int _num_cached
 
MooseObjectTagWarehouse< IntegratedBCBase > & _integrated_bcs
 Reference to BC storage structures.
 
MooseObjectWarehouse< IntegratedBCBase > * _ibc_warehouse
 
MooseObjectTagWarehouse< DGKernelBase > & _dg_kernels
 Reference to DGKernel storage structure.
 
MooseObjectWarehouse< DGKernelBase > * _dg_warehouse
 
MooseObjectTagWarehouse< InterfaceKernelBase > & _interface_kernels
 Reference to interface kernel storage structure.
 
MooseObjectWarehouse< InterfaceKernelBase > * _ik_warehouse
 
std::vector< FVElementalKernel * > _fv_kernels
 Current subdomain FVElementalKernels.
 
const bool _has_active_objects
 Whether there are any active residual objects; otherwise we will do an early return.
 
FEProblemBase_fe_problem
 
MooseMesh_mesh
 
THREAD_ID _tid
 
SubdomainID _subdomain
 The subdomain for the current element.
 
SubdomainID _old_subdomain
 The subdomain for the last element.
 
SubdomainID _neighbor_subdomain
 The subdomain for the current neighbor.
 
SubdomainID _old_neighbor_subdomain
 The subdomain for the last neighbor.
 
std::set< SubdomainID_blocks_exec_printed
 Keep track of which blocks were visited.
 
std::set< BoundaryID_boundaries_exec_printed
 Keep track of which boundaries were visited.
 
MooseObjectTagWarehouse< KernelBase > & _kernels
 
MooseObjectWarehouse< KernelBase > * _tag_kernels
 
MooseObjectTagWarehouse< HDGKernel > & _hdg_kernels
 
MooseObjectWarehouse< HDGKernel > * _hdg_warehouse
 

Private Attributes

std::vector< dof_id_type > _dof_indices
 
std::vector< dof_id_type > _dof_neighbor_indices
 
bool _should_execute_dg
 Whether DG kernels should be executed for a given elem-neighbor pairing.
 
bool _subdomain_has_dg
 Whether the subdomain has DGKernels.
 
bool _subdomain_has_hdg
 Whether the subdomain has HDGKernels.
 

Detailed Description

Specialization for filling multiple "small" preconditioning matrices simulatenously.

Definition at line 39 of file ComputeJacobianBlocksThread.h.

Constructor & Destructor Documentation

◆ ComputeJacobianBlocksThread() [1/2]

ComputeJacobianBlocksThread::ComputeJacobianBlocksThread ( FEProblemBase fe_problem,
std::vector< JacobianBlock * > &  blocks,
const std::set< TagID > &  tags 
)

Definition at line 21 of file ComputeJacobianBlocksThread.C.

24 : ComputeFullJacobianThread(fe_problem, tags), _blocks(blocks)
25{
26}
char ** blocks
std::vector< JacobianBlock * > _blocks

◆ ComputeJacobianBlocksThread() [2/2]

ComputeJacobianBlocksThread::ComputeJacobianBlocksThread ( ComputeJacobianBlocksThread x,
Threads::split  split 
)

Definition at line 29 of file ComputeJacobianBlocksThread.C.

32{
33}

◆ ~ComputeJacobianBlocksThread()

ComputeJacobianBlocksThread::~ComputeJacobianBlocksThread ( )
virtual

Definition at line 35 of file ComputeJacobianBlocksThread.C.

35{}

Member Function Documentation

◆ accumulate()

virtual void ComputeJacobianThread::accumulate ( )
inlineoverrideprotectedvirtualinherited

Add element residual/Jacobian into assembly global data.

Implements NonlinearThread.

Definition at line 47 of file ComputeJacobianThread.h.

47{}

◆ accumulateLower()

void ComputeJacobianThread::accumulateLower ( )
overrideprotectedvirtualinherited

Add lower-d residual/Jacobian into assembly global data.

Implements NonlinearThread.

Definition at line 134 of file ComputeJacobianThread.C.

135{
137}
virtual void addJacobianLowerD(const THREAD_ID tid) override

◆ accumulateNeighbor()

void ComputeJacobianThread::accumulateNeighbor ( )
overrideprotectedvirtualinherited

Add neighbor residual/Jacobian into assembly global data.

Implements NonlinearThread.

Definition at line 146 of file ComputeJacobianThread.C.

147{
149}
virtual void addJacobianNeighbor(const THREAD_ID tid) override

◆ accumulateNeighborLower()

void ComputeJacobianThread::accumulateNeighborLower ( )
overrideprotectedvirtualinherited

Add neighbor and lower residual/Jacobian into assembly global data.

Implements NonlinearThread.

Definition at line 140 of file ComputeJacobianThread.C.

141{
143}
virtual void addJacobianNeighborLowerD(const THREAD_ID tid) override

◆ caughtMooseException()

void ThreadedElementLoop< ConstElemRange >::caughtMooseException ( MooseException e)
overridevirtualinherited

Called if a MooseException is caught anywhere during the computation.

The single input parameter taken is a MooseException object.

Reimplemented from ThreadedElementLoopBase< RangeType >.

Definition at line 43 of file ThreadedElementLoop.h.

106{
107 Threads::spin_mutex::scoped_lock lock(threaded_element_mutex);
108
109 std::string what(e.what());
111}
static Threads::spin_mutex threaded_element_mutex
This mutex is used by all derived classes of the ThreadedElementLoop.
virtual void setException(const std::string &message)
Set an exception, which is stored at this point by toggling a member variable in this class,...
virtual const char * what() const
Get out the error message.

◆ clearVarsAndMaterials()

void ThreadedElementLoop< ConstElemRange >::clearVarsAndMaterials ( )
protectedinherited

Definition at line 60 of file ThreadedElementLoop.h.

196{
199}
void clearActiveMaterialProperties(const THREAD_ID tid)
Clear the active material properties.
virtual void clearActiveElementalMooseVariables(const THREAD_ID tid) override
Clear the active elemental MooseVariableFEBase.

◆ compute() [1/6]

void ComputeJacobianThread::compute ( DGKernelBase dg,
const Elem *  neighbor 
)
overrideprotectedvirtualinherited

Reimplemented from NonlinearThread.

Definition at line 77 of file ComputeJacobianThread.C.

78{
79 if (dg.isImplicit())
80 {
81 dg.prepareShapes(dg.variable().number());
83 if (dg.hasBlocks(neighbor->subdomain_id()))
84 dg.computeJacobian();
85 }
86}
bool hasBlocks(const SubdomainName &name) const
Test if the supplied block name is valid for this object.
virtual void computeJacobian() override
Computes the jacobian for the current side.
void prepareShapes(unsigned int var_num) override final
Prepare shape functions.
unsigned int number() const
Get variable number coming from libMesh.
void prepareNeighborShapes(unsigned int var_num)
Prepare neighbor shape functions.
virtual const MooseVariableBase & variable() const =0
Returns the variable that this object operates on.

◆ compute() [2/6]

void ComputeJacobianThread::compute ( FVElementalKernel kernel)
overrideprotectedvirtualinherited

Reimplemented from NonlinearThread.

Definition at line 56 of file ComputeJacobianThread.C.

57{
58 if (fvkernel.isImplicit())
59 fvkernel.computeJacobian();
60}

◆ compute() [3/6]

void ComputeJacobianThread::compute ( IntegratedBCBase bc)
overrideprotectedvirtualinherited

Reimplemented from NonlinearThread.

Definition at line 63 of file ComputeJacobianThread.C.

64{
65 if (bc.shouldApply() && bc.isImplicit())
66 {
67 bc.prepareShapes(bc.variable().number());
68 bc.computeJacobian();
70 mooseError("Nonlocal boundary conditions only supported for non-diagonal coupling. Please "
71 "specify an SMP preconditioner, with appropriate row-column coupling or specify "
72 "full = true.");
73 }
74}
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application.
Definition MooseError.h:311
void computingScalingJacobian(bool computing_scaling_jacobian)
Setter for whether we're computing the scaling jacobian.
virtual bool checkNonlocalCouplingRequirement() const override
void prepareShapes(unsigned int var_num) override final
Prepare shape functions.
virtual bool shouldApply() const override
Hook for turning the boundary condition on and off.
virtual void computeJacobian()=0
Compute this object's contribution to the diagonal Jacobian entries.

◆ compute() [4/6]

void ComputeJacobianThread::compute ( InterfaceKernelBase ik)
overrideprotectedvirtualinherited

Reimplemented from NonlinearThread.

Definition at line 89 of file ComputeJacobianThread.C.

90{
91 if (intk.isImplicit())
92 {
93 intk.prepareShapes(intk.variable().number());
94 intk.prepareNeighborShapes(intk.neighborVariable().number());
95 intk.computeJacobian();
96 }
97}

◆ compute() [5/6]

void ComputeJacobianThread::compute ( KernelBase kernel)
overrideprotectedvirtualinherited

Defaults to forwarding to the residual object class

Reimplemented from NonlinearThread.

Definition at line 43 of file ComputeJacobianThread.C.

44{
45 if (kernel.isImplicit())
46 {
47 kernel.prepareShapes(kernel.variable().number());
48 kernel.computeJacobian();
50 mooseError("Nonlocal kernels only supported for non-diagonal coupling. Please specify an SMP "
51 "preconditioner, with appropriate row-column coupling or specify full = true.");
52 }
53}
virtual void prepareShapes(unsigned int var_num)
Prepare shape functions.

◆ compute() [6/6]

virtual void ComputeJacobianThread::compute ( ResidualObject ro)
inlineoverrideprotectedvirtualinherited

Will dispatch to computeResidual/computeJacobian/computeResidualAndJacobian based on the derived class.

Implements NonlinearThread.

Definition at line 49 of file ComputeJacobianThread.h.

49{ mooseError("Not implemented"); };

◆ computeOnBoundary()

void ComputeFullJacobianThread::computeOnBoundary ( BoundaryID  bnd_id,
const Elem *  lower_d_elem 
)
overrideprotectedvirtualinherited

done only when nonlocal integrated_bcs exist in the system

Reimplemented from NonlinearThread.

Definition at line 137 of file ComputeFullJacobianThread.C.

138{
139 auto & ce = _fe_problem.couplingEntries(_tid, _nl.number());
140 for (const auto & it : ce)
141 {
142 MooseVariableFieldBase & ivariable = *(it.first);
143 MooseVariableFieldBase & jvariable = *(it.second);
144
145 // We don't currently support coupling with FV variables
146 if (ivariable.isFV() || jvariable.isFV())
147 continue;
148
149 const auto ivar = ivariable.number();
150 const auto jvar = jvariable.number();
151
152 if (!ivariable.activeOnSubdomain(_subdomain))
153 continue;
154
155 // only if there are dofs for j-variable (if it is subdomain restricted var, there may not be
156 // any)
157 if (lower_d_elem)
158 {
159 auto lower_d_subdomain = lower_d_elem->subdomain_id();
160 if (!jvariable.activeOnSubdomain(_subdomain) &&
161 !jvariable.activeOnSubdomain(lower_d_subdomain))
162 continue;
163 }
164 else
165 {
166 if (!jvariable.activeOnSubdomain(_subdomain))
167 continue;
168 }
169
171 continue;
172
173 const auto & bcs = _ibc_warehouse->getActiveBoundaryObjects(bnd_id, _tid);
174 for (const auto & bc : bcs)
175 if (bc->shouldApply() && bc->variable().number() == ivar && bc->isImplicit())
176 {
177 bc->prepareShapes(jvar);
178 bc->computeOffDiagJacobian(jvar);
179 }
180 }
181
184 {
186 for (const auto & it : cne)
187 {
188 MooseVariableFieldBase & ivariable = *(it.first);
189 MooseVariableFieldBase & jvariable = *(it.second);
190
191 if (ivariable.isFV())
192 continue;
193
194 unsigned int ivar = ivariable.number();
195 unsigned int jvar = jvariable.number();
196
197 if (ivariable.activeOnSubdomain(_subdomain) && jvariable.activeOnSubdomain(_subdomain) &&
199 {
200 const std::vector<std::shared_ptr<IntegratedBCBase>> & integrated_bcs =
202 for (const auto & integrated_bc : integrated_bcs)
203 {
204 std::shared_ptr<NonlocalIntegratedBC> nonlocal_integrated_bc =
205 std::dynamic_pointer_cast<NonlocalIntegratedBC>(integrated_bc);
206 if (nonlocal_integrated_bc)
207 if ((integrated_bc->variable().number() == ivar) && integrated_bc->isImplicit())
208 {
209 integrated_bc->prepareShapes(jvar);
210 integrated_bc->computeNonlocalOffDiagJacobian(jvar);
211 }
212 }
213 }
214 }
215 }
216
217 const std::vector<MooseVariableScalar *> & scalar_vars = _nl.getScalarVariables(_tid);
218 if (scalar_vars.size() > 0)
219 {
220 // go over nl-variables (non-scalar)
221 const std::vector<MooseVariableFieldBase *> & vars = _nl.getVariables(_tid);
222 for (const auto & ivar : vars)
223 if (ivar->activeOnSubdomain(_subdomain) > 0 &&
224 _ibc_warehouse->hasActiveBoundaryObjects(bnd_id, _tid))
225 {
226 // for each variable get the list of active kernels
227 const auto & bcs = _ibc_warehouse->getActiveBoundaryObjects(bnd_id, _tid);
228 for (const auto & bc : bcs)
229 if (bc->variable().number() == ivar->number() && bc->isImplicit())
230 {
231 // now, get the list of coupled scalar vars and compute their off-diag jacobians
232 const std::vector<MooseVariableScalar *> coupled_scalar_vars =
233 bc->getCoupledMooseScalarVars();
234
235 // Do: dvar / dscalar_var, only want to process only nl-variables (not aux ones)
236 for (const auto & jvar : coupled_scalar_vars)
237 if (_nl.hasScalarVariable(jvar->name()))
238 bc->computeOffDiagJacobianScalar(jvar->number());
239 }
240 }
241 }
242}
char ** vars
if(!dmm->_nl) SETERRQ(PETSC_COMM_WORLD
std::vector< std::pair< MooseVariableFieldBase *, MooseVariableFieldBase * > > & nonlocalCouplingEntries(const THREAD_ID tid, const unsigned int nl_sys_num)
std::vector< std::pair< MooseVariableFieldBase *, MooseVariableFieldBase * > > & couplingEntries(const THREAD_ID tid, const unsigned int nl_sys_num)
const std::map< BoundaryID, std::vector< std::shared_ptr< T > > > & getActiveBoundaryObjects(THREAD_ID tid=0) const
bool hasActiveBoundaryObjects(THREAD_ID tid=0) const
const std::map< BoundaryID, std::vector< std::shared_ptr< T > > > & getBoundaryObjects(THREAD_ID tid=0) const
This class provides an interface for common operations on field variables of both FE and FV types wit...
bool activeOnSubdomain(SubdomainID subdomain) const
Is the variable active on the subdomain?
NonlinearSystemBase & _nl
Reference to the underlying NonlinearSystemBase.
MooseObjectWarehouse< IntegratedBCBase > * _ibc_warehouse
unsigned int number() const
Gets the number of this system.
const std::vector< MooseVariableFieldBase * > & getVariables(THREAD_ID tid)
Definition SystemBase.h:770
const std::vector< MooseVariableScalar * > & getScalarVariables(THREAD_ID tid)
Definition SystemBase.h:777
SubdomainID _subdomain
The subdomain for the current element.
std::string name(const ElemQuality q)

◆ computeOnElement()

void ComputeFullJacobianThread::computeOnElement ( )
overrideprotectedvirtualinherited

Base class version just calls compute on each object for the element

done only when nonlocal kernels exist in the system

Reimplemented from NonlinearThread.

Reimplemented in ComputeJacobianForScalingThread.

Definition at line 41 of file ComputeFullJacobianThread.C.

42{
44 for (const auto & it : ce)
45 {
46 MooseVariableFieldBase & ivariable = *(it.first);
47 MooseVariableFieldBase & jvariable = *(it.second);
48
49 if (ivariable.isFV())
50 continue;
51
52 unsigned int ivar = ivariable.number();
53 unsigned int jvar = jvariable.number();
54
55 if (ivariable.activeOnSubdomain(_subdomain) && jvariable.activeOnSubdomain(_subdomain) &&
57 {
58 // only if there are dofs for j-variable (if it is subdomain restricted var, there may not be
59 // any)
60 const auto & kernels = _tag_kernels->getActiveVariableBlockObjects(ivar, _subdomain, _tid);
61 for (const auto & kernel : kernels)
62 if ((kernel->variable().number() == ivar) && kernel->isImplicit())
63 {
64 kernel->prepareShapes(jvar);
65 kernel->computeOffDiagJacobian(jvar);
66 }
67 }
68 }
69
72 {
74 for (const auto & it : cne)
75 {
76 MooseVariableFieldBase & ivariable = *(it.first);
77 MooseVariableFieldBase & jvariable = *(it.second);
78
79 if (ivariable.isFV())
80 continue;
81
82 unsigned int ivar = ivariable.number();
83 unsigned int jvar = jvariable.number();
84
85 if (ivariable.activeOnSubdomain(_subdomain) && jvariable.activeOnSubdomain(_subdomain) &&
87 {
88 const auto & kernels = _tag_kernels->getActiveVariableBlockObjects(ivar, _subdomain, _tid);
89 for (const auto & kernel : kernels)
90 {
91 std::shared_ptr<NonlocalKernel> nonlocal_kernel =
92 std::dynamic_pointer_cast<NonlocalKernel>(kernel);
93 if (nonlocal_kernel)
94 if ((kernel->variable().number() == ivar) && kernel->isImplicit())
95 {
96 kernel->prepareShapes(jvar);
97 kernel->computeNonlocalOffDiagJacobian(jvar);
98 }
99 }
100 }
101 }
102 }
103
104 const std::vector<MooseVariableScalar *> & scalar_vars = _nl.getScalarVariables(_tid);
105 if (scalar_vars.size() > 0)
106 {
107 // go over nl-variables (non-scalar)
108 const std::vector<MooseVariableFieldBase *> & vars = _nl.getVariables(_tid);
109 for (const auto & ivariable : vars)
110 if (ivariable->activeOnSubdomain(_subdomain) > 0 &&
111 _tag_kernels->hasActiveVariableBlockObjects(ivariable->number(), _subdomain, _tid))
112 {
113 // for each variable get the list of active kernels
114 const auto & kernels =
116 for (const auto & kernel : kernels)
117 if (kernel->isImplicit())
118 {
119 // now, get the list of coupled scalar vars and compute their off-diag jacobians
120 const auto & coupled_scalar_vars = kernel->getCoupledMooseScalarVars();
121
122 // Do: dvar / dscalar_var, only want to process only nl-variables (not aux ones)
123 for (const auto & jvariable : coupled_scalar_vars)
124 if (_nl.hasScalarVariable(jvariable->name()))
125 kernel->computeOffDiagJacobianScalar(jvariable->number());
126 }
127 }
128 }
129
130 if (_fe_problem.haveFV())
131 for (auto fv_kernel : _fv_kernels)
132 if (fv_kernel->isImplicit())
133 fv_kernel->computeOffDiagJacobian();
134}
virtual bool haveFV() const override
returns true if this problem includes/needs finite volume functionality.
bool hasActiveVariableBlockObjects(unsigned int variable_id, SubdomainID block_id, THREAD_ID tid=0) const
Methods for checking/getting variable kernels for a variable and SubdomainID.
const std::vector< std::shared_ptr< T > > & getActiveVariableBlockObjects(unsigned int variable_id, SubdomainID block_id, THREAD_ID tid=0) const
std::vector< FVElementalKernel * > _fv_kernels
Current subdomain FVElementalKernels.
MooseObjectWarehouse< KernelBase > * _tag_kernels

Referenced by ComputeJacobianForScalingThread::computeOnElement().

◆ computeOnInterface()

void ComputeFullJacobianThread::computeOnInterface ( BoundaryID  bnd_id)
overrideprotectedvirtualinherited

Reimplemented from NonlinearThread.

Definition at line 245 of file ComputeFullJacobianThread.C.

246{
248 {
249 const auto & ce = _fe_problem.couplingEntries(_tid, _nl.number());
250 for (const auto & it : ce)
251 {
252 MooseVariableFieldBase & ivariable = *(it.first);
253 MooseVariableFieldBase & jvariable = *(it.second);
254
255 if (ivariable.isFV())
256 continue;
257
258 unsigned int ivar = ivariable.number();
259 unsigned int jvar = jvariable.number();
260
261 const auto & int_ks = _ik_warehouse->getActiveBoundaryObjects(bnd_id, _tid);
262 for (const auto & interface_kernel : int_ks)
263 {
264 if (!interface_kernel->isImplicit())
265 continue;
266
267 interface_kernel->prepareShapes(jvar);
268 interface_kernel->prepareNeighborShapes(jvar);
269
270 if (interface_kernel->variable().number() == ivar)
271 interface_kernel->computeElementOffDiagJacobian(jvar);
272
273 if (interface_kernel->neighborVariable().number() == ivar)
274 interface_kernel->computeNeighborOffDiagJacobian(jvar);
275 }
276 }
277 }
278}
MooseObjectWarehouse< InterfaceKernelBase > * _ik_warehouse

◆ computeOnInternalFace() [1/2]

void ComputeFullJacobianThread::computeOnInternalFace ( )
overrideprotectedvirtualinherited

Reimplemented from ComputeJacobianThread.

Definition at line 316 of file ComputeFullJacobianThread.C.

317{
319 "We should not be called if we have no active HDG kernels");
320 for (const auto & hdg_kernel : _hdg_warehouse->getActiveBlockObjects(_subdomain, _tid))
321 {
322 mooseAssert(
323 hdg_kernel->hasBlocks(_subdomain),
324 "We queried the warehouse for active blocks on this subdomain, so this better be active");
325 mooseAssert(
327 "We should have set a valid neighbor subdomain ID if we made it in side this method");
328 if (hdg_kernel->hasBlocks(_neighbor_subdomain))
329 hdg_kernel->computeJacobianOnSide();
330 }
331}
bool hasActiveBlockObjects(THREAD_ID tid=0) const
MooseObjectWarehouse< HDGKernel > * _hdg_warehouse
SubdomainID _neighbor_subdomain
The subdomain for the current neighbor.
const SubdomainID INVALID_BLOCK_ID
Definition MooseTypes.C:20

◆ computeOnInternalFace() [2/2]

void ComputeFullJacobianThread::computeOnInternalFace ( const Elem *  neighbor)
overrideprotectedvirtualinherited

Reimplemented from NonlinearThread.

Definition at line 281 of file ComputeFullJacobianThread.C.

282{
284 {
285 const auto & ce = _fe_problem.couplingEntries(_tid, _nl.number());
286 for (const auto & it : ce)
287 {
288 MooseVariableFieldBase & ivariable = *(it.first);
289 MooseVariableFieldBase & jvariable = *(it.second);
290
291 if (ivariable.isFV())
292 continue;
293
294 unsigned int ivar = ivariable.number();
295 unsigned int jvar = jvariable.number();
296
297 const auto & dgks = _dg_warehouse->getActiveBlockObjects(_subdomain, _tid);
298 for (const auto & dg : dgks)
299 {
300 // this check may skip some couplings...
301 if (dg->variable().number() == ivar && dg->isImplicit() &&
302 dg->hasBlocks(neighbor->subdomain_id()) &&
303 (jvariable.activeOnSubdomain(_subdomain) ||
305 {
306 dg->prepareShapes(jvar);
307 dg->prepareNeighborShapes(jvar);
308 dg->computeOffDiagJacobian(jvar);
309 }
310 }
311 }
312 }
313}
virtual MooseMesh & mesh() override
const std::set< SubdomainID > & interiorLowerDBlocks() const
Definition MooseMesh.h:1552
const std::map< SubdomainID, std::vector< std::shared_ptr< T > > > & getActiveBlockObjects(THREAD_ID tid=0) const
bool activeOnSubdomains(const std::set< SubdomainID > &subdomains) const
Is the variable active on the subdomains?
MooseObjectWarehouse< DGKernelBase > * _dg_warehouse

◆ determineObjectWarehouses()

void ComputeJacobianThread::determineObjectWarehouses ( )
overrideprotectedvirtualinherited

Determine the objects we will actually compute based on vector/matrix tag information.

Implements NonlinearThread.

Definition at line 100 of file ComputeJacobianThread.C.

101{
102 // If users pass a empty vector or a full size of vector,
103 // we take all kernels
104 if (!_tags.size() || _tags.size() == _fe_problem.numMatrixTags())
105 {
111 }
112 // If we have one tag only,
113 // We call tag based storage
114 else if (_tags.size() == 1)
115 {
121 }
122 // This one may be expensive, and hopefully we do not use it so often
123 else
124 {
130 }
131}
const std::set< TagID > & _tags
MooseObjectWarehouse< T > & getMatrixTagsObjectWarehouse(const std::set< TagID > &tags, THREAD_ID tid)
Retrieve a moose object warehouse in which every moose object has one of the given matrix tags.
MooseObjectWarehouse< T > & getMatrixTagObjectWarehouse(TagID tag_id, THREAD_ID tid)
Retrieve a moose object warehouse in which every moose object has the given matrix tag.
MooseObjectTagWarehouse< HDGKernel > & _hdg_kernels
MooseObjectTagWarehouse< KernelBase > & _kernels
MooseObjectTagWarehouse< IntegratedBCBase > & _integrated_bcs
Reference to BC storage structures.
MooseObjectTagWarehouse< DGKernelBase > & _dg_kernels
Reference to DGKernel storage structure.
MooseObjectTagWarehouse< InterfaceKernelBase > & _interface_kernels
Reference to interface kernel storage structure.
virtual unsigned int numMatrixTags() const
The total number of tags.
Definition SubProblem.h:248

◆ join()

void ComputeJacobianBlocksThread::join ( const ComputeJacobianThread )
inline

Definition at line 51 of file ComputeJacobianBlocksThread.h.

51{}

◆ keepGoing()

virtual bool ThreadedElementLoop< ConstElemRange >::keepGoing ( )
inlineoverridevirtualinherited

Whether or not the loop should continue.

Returns
true to keep going, false to stop.

Reimplemented from ThreadedElementLoopBase< RangeType >.

Definition at line 45 of file ThreadedElementLoop.h.

45{ return !_fe_problem.hasException(); }
virtual bool hasException()
Whether or not an exception has occurred.

◆ neighborSubdomainChanged()

void ThreadedElementLoop< ConstElemRange >::neighborSubdomainChanged ( )
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< RangeType >.

Definition at line 56 of file ThreadedElementLoop.h.

140{
143}
virtual void neighborSubdomainSetup(SubdomainID subdomain, const THREAD_ID tid)
Base class for assembly-like calculations.

◆ objectType()

std::string ComputeJacobianThread::objectType ( ) const
inlineoverrideprotectedvirtualinherited

Return what the loops is meant to compute.

Reimplemented from NonlinearThread.

Definition at line 58 of file ComputeJacobianThread.h.

58{ return "Jacobian"; }

◆ onBoundary()

void NonlinearThread::onBoundary ( const Elem *  elem,
unsigned int  side,
BoundaryID  bnd_id,
const Elem *  lower_d_elem = nullptr 
)
overridevirtualinherited

Called when doing boundary assembling.

Parameters
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< RangeType >.

Definition at line 160 of file NonlinearThread.C.

164{
166 {
167 // Set up Sentinel class so that, after we swap in reinitMaterialsFace in prepareFace, even if
168 // one of our callees throws we remember to swap back during stack unwinding. We put our
169 // sentinel here as opposed to in prepareFace because we certainly don't want our materials
170 // swapped back before we proceed to residual/Jacobian computation
172
173 prepareFace(elem, side, bnd_id, lower_d_elem);
174 computeOnBoundary(bnd_id, lower_d_elem);
175
176 if (lower_d_elem)
178 }
179}
virtual void swapBackMaterialsFace(const THREAD_ID tid)
void prepareFace(const Elem *elem, unsigned int side, BoundaryID bnd_id=Moose::INVALID_BOUNDARY_ID, const Elem *lower_d_elem=nullptr)
Reinitialize variables and materials on a face.
virtual void computeOnBoundary(BoundaryID bnd_id, const Elem *lower_d_elem)
virtual void accumulateLower()=0
Add lower-d residual/Jacobian into assembly global data.
The "SwapBackSentinel" class's destructor guarantees that FEProblemBase::swapBackMaterials{Face,...

◆ onElement()

void NonlinearThread::onElement ( const Elem *  elem)
overridevirtualinherited

Assembly of the element (not including surface assembly)

Parameters
elem- active element

Reimplemented from ThreadedElementLoopBase< RangeType >.

Definition at line 129 of file NonlinearThread.C.

130{
131 // Set up Sentinel class so that, even if reinitMaterials() throws in prepareElement, we
132 // still remember to swap back during stack unwinding.
134
135 prepareElement(elem);
136
137 if (dynamic_cast<ComputeJacobianThread *>(this))
138 if (_nl.getScalarVariables(_tid).size() > 0)
140
142}
virtual void reinitOffDiagScalars(const THREAD_ID tid) override
virtual void swapBackMaterials(const THREAD_ID tid)
virtual void computeOnElement()

Referenced by ComputeJacobianForScalingThread::operator()().

◆ onExternalSide()

void NonlinearThread::onExternalSide ( const Elem *  elem,
unsigned int  side 
)
overridevirtualinherited

Called when iterating over external sides (no side neighbor)

Parameters
elem- Element we are on
side- local side number of the element 'elem'

Reimplemented from ThreadedElementLoopBase< RangeType >.

Definition at line 270 of file NonlinearThread.C.

271{
272 // Check that we don't have any interface kernels defined on this boundary
273 const auto boundary_ids = _mesh.getBoundaryIDs(elem, side);
274
275 bool has_interface_kernels = false;
276 for (const auto bid : boundary_ids)
277 if (_ik_warehouse && _ik_warehouse->hasActiveBoundaryObjects(bid, _tid))
278 has_interface_kernels = true;
279
280 if (has_interface_kernels)
281 mooseError("Element ",
282 elem->id(),
283 " on side ",
284 side,
285 " is missing a neighbor (hence identified as an external side) but "
286 "has interface kernel(s) defined on the boundary.");
287}
std::vector< BoundaryID > getBoundaryIDs(const Elem *const elem, const unsigned short int side) const
Returns a vector of boundary IDs for the requested element on the requested side.
Definition MooseMesh.C:3027

◆ onInterface()

void NonlinearThread::onInterface ( const Elem *  elem,
unsigned int  side,
BoundaryID  bnd_id 
)
overridevirtualinherited

Called when doing interface assembling.

Parameters
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< RangeType >.

Definition at line 191 of file NonlinearThread.C.

192{
194 {
195
196 // Pointer to the neighbor we are currently working on.
197 const Elem * neighbor = elem->neighbor_ptr(side);
198
199 if (neighbor->active())
200 {
201 _fe_problem.reinitNeighbor(elem, side, _tid);
202
203 // Set up Sentinels so that, even if one of the reinitMaterialsXXX() calls throws, we
204 // still remember to swap back during stack unwinding. Note that face, boundary, and interface
205 // all operate with the same MaterialData object
207 _fe_problem.reinitMaterialsFaceOnBoundary(bnd_id, elem->subdomain_id(), _tid);
209
211 _fe_problem.reinitMaterialsNeighborOnBoundary(bnd_id, neighbor->subdomain_id(), _tid);
212
213 // Has to happen after face and neighbor properties have been computed. Note that we don't use
214 // a sentinel here because FEProblem::swapBackMaterialsFace is going to handle face materials,
215 // boundary materials, and interface materials (e.g. it queries the boundary material data
216 // with the current element and side
218
219 computeOnInterface(bnd_id);
220
222 }
223 }
224}
virtual void swapBackMaterialsNeighbor(const THREAD_ID tid)
void reinitMaterialsFaceOnBoundary(const BoundaryID boundary_id, const SubdomainID blk_id, const THREAD_ID tid, const bool swap_stateful=true, const std::deque< MaterialBase * > *const reinit_mats=nullptr)
reinit materials on element faces on a boundary (internal or external) This specific routine helps us...
void reinitMaterialsBoundary(BoundaryID boundary_id, const THREAD_ID tid, bool swap_stateful=true, const std::deque< MaterialBase * > *reinit_mats=nullptr)
reinit materials on a boundary
void reinitMaterialsNeighborOnBoundary(const BoundaryID boundary_id, const SubdomainID blk_id, const THREAD_ID tid, const bool swap_stateful=true, const std::deque< MaterialBase * > *const reinit_mats=nullptr)
reinit materials on neighbor element (usually faces) on a boundary (internal or external) This specif...
void reinitMaterialsInterface(BoundaryID boundary_id, const THREAD_ID tid, bool swap_stateful=true)
virtual void reinitNeighbor(const Elem *elem, unsigned int side, const THREAD_ID tid) override
virtual void accumulateNeighbor()=0
Add neighbor residual/Jacobian into assembly global data.
virtual void computeOnInterface(BoundaryID bnd_id)

◆ onInternalSide()

void NonlinearThread::onInternalSide ( const Elem *  elem,
unsigned int  side 
)
overridevirtualinherited

Called when doing internal edge assembling.

Parameters
elem- Element we are on
side- local side number of the element 'elem'

Reimplemented from ThreadedElementLoopBase< RangeType >.

Definition at line 235 of file NonlinearThread.C.

236{
238 {
239 // Pointer to the neighbor we are currently working on.
240 const Elem * neighbor = elem->neighbor_ptr(side);
241
243
244 // Set up Sentinels so that, even if one of the reinitMaterialsXXX() calls throws, we
245 // still remember to swap back during stack unwinding.
247 _fe_problem.reinitMaterialsFace(elem->subdomain_id(), _tid);
248
250 _fe_problem.reinitMaterialsNeighbor(neighbor->subdomain_id(), _tid);
251
252 computeOnInternalFace(neighbor);
253
255 }
257 {
258 // Set up Sentinel class so that, after we swap in reinitMaterialsFace in prepareFace, even if
259 // one of our callees throws we remember to swap back during stack unwinding. We put our
260 // sentinel here as opposed to in prepareFace because we certainly don't want our materials
261 // swapped back before we proceed to residual/Jacobian computation
263
264 prepareFace(elem, side, Moose::INVALID_BOUNDARY_ID, nullptr);
266 }
267}
void reinitMaterialsFace(SubdomainID blk_id, const THREAD_ID tid, bool swap_stateful=true, const std::deque< MaterialBase * > *reinit_mats=nullptr)
reinit materials on element faces
virtual void reinitElemNeighborAndLowerD(const Elem *elem, unsigned int side, const THREAD_ID tid) override
void reinitMaterialsNeighbor(SubdomainID blk_id, const THREAD_ID tid, bool swap_stateful=true, const std::deque< MaterialBase * > *reinit_mats=nullptr)
reinit materials on the neighboring element face
virtual void accumulateNeighborLower()=0
Add neighbor and lower residual/Jacobian into assembly global data.
virtual void computeOnInternalFace()=0
bool _subdomain_has_hdg
Whether the subdomain has HDGKernels.
bool _should_execute_dg
Whether DG kernels should be executed for a given elem-neighbor pairing.
const BoundaryID INVALID_BOUNDARY_ID
Definition MooseTypes.C:22

◆ operator()() [1/2]

void NonlinearThread::operator() ( const ConstElemRange &  range,
bool  bypass_threading = false 
)
overridevirtualinherited

Definition at line 61 of file NonlinearThread.C.

62{
65}
const bool _has_active_objects
Whether there are any active residual objects; otherwise we will do an early return.
virtual void operator()(const RangeType &range, bool bypass_threading=false)

◆ operator()() [2/2]

template<typename RangeType >
void ThreadedElementLoopBase< RangeType >::operator() ( const RangeType &  range,
bool  bypass_threading = false 
)
virtualinherited

Definition at line 226 of file ThreadedElementLoopBase.h.

227{
228 try
229 {
230 try
231 {
232 ParallelUniqueId puid;
233 _tid = bypass_threading ? 0 : puid.id;
234
235 pre();
237
240 typename RangeType::const_iterator el = range.begin();
241 for (el = range.begin(); el != range.end(); ++el)
242 {
243 if (!keepGoing())
244 break;
245
246 const Elem * elem = *el;
247
248 preElement(elem);
249
251 _subdomain = elem->subdomain_id();
253 {
256 }
257
258 onElement(elem);
259
260 if (_mesh.interiorLowerDBlocks().count(elem->subdomain_id()) > 0 ||
261 _mesh.boundaryLowerDBlocks().count(elem->subdomain_id()) > 0)
262 {
263 postElement(elem);
264 continue;
265 }
266
267 const auto elem_boundary_ids = _mesh.getBoundaryIDs(elem);
268 for (unsigned int side = 0; side < elem->n_sides(); side++)
269 {
270 const auto & boundary_ids = elem_boundary_ids[side];
271 const Elem * lower_d_elem = _mesh.getLowerDElem(elem, side);
272
273 for (const auto bnd_id : boundary_ids)
274 {
275 preBoundary(elem, side, bnd_id, lower_d_elem);
277 onBoundary(elem, side, bnd_id, lower_d_elem);
278 }
279
280 const Elem * neighbor = elem->neighbor_ptr(side);
281 if (neighbor)
282 {
283 preInternalSide(elem, side);
284
286 _neighbor_subdomain = neighbor->subdomain_id();
289
290 if (shouldComputeInternalSide(*elem, *neighbor))
291 onInternalSide(elem, side);
292
293 for (const auto bnd_id : boundary_ids)
294 onInterface(elem, side, bnd_id);
295
296 postInternalSide(elem, side);
297 }
298 else
299 onExternalSide(elem, side);
300 } // sides
301
302 postElement(elem);
303 } // range
304
305 post();
307 }
308 catch (MetaPhysicL::LogicError & e)
309 {
311 }
312 catch (std::exception & e)
313 {
314 // Continue if we find a libMesh degenerate map exception, but
315 // just re-throw for any real error
316 if (!strstr(e.what(), "Jacobian") && !strstr(e.what(), "singular") &&
317 !strstr(e.what(), "det != 0"))
318 throw; // not "throw e;" - that destroys type info!
319
320 mooseException("We caught a libMesh degeneracy exception in ThreadedElementLoopBase:\n",
321 e.what());
322 }
323 }
324 catch (MooseException & e)
325 {
327 }
328}
Provides a way for users to bail out of the current solve.
const Elem * getLowerDElem(const Elem *, unsigned short int) const
Returns a const pointer to a lower dimensional element that corresponds to a side of a higher dimensi...
Definition MooseMesh.C:1690
const std::set< SubdomainID > & boundaryLowerDBlocks() const
Definition MooseMesh.h:1556
virtual void onExternalSide(const Elem *elem, unsigned int side)
Called when iterating over external sides (no side neighbor)
virtual void caughtMooseException(MooseException &)
Called if a MooseException is caught anywhere during the computation.
virtual void onBoundary(const Elem *elem, unsigned int side, BoundaryID bnd_id, const Elem *lower_d_elem=nullptr)
Called when doing boundary assembling.
virtual void printBoundaryExecutionInformation(const unsigned int) const
Print information about the particular ordering of objects on each boundary.
virtual void neighborSubdomainChanged()
Called every time the neighbor subdomain changes (i.e.
virtual void printGeneralExecutionInformation() const
Print information about the loop ordering.
virtual void onInterface(const Elem *elem, unsigned int side, BoundaryID bnd_id)
Called when doing interface assembling.
virtual bool keepGoing()
Whether or not the loop should continue.
void resetExecPrintedSets() const
Resets the set of blocks and boundaries visited.
SubdomainID _old_subdomain
The subdomain for the last element.
virtual void preInternalSide(const Elem *elem, unsigned int side)
Called before evaluations on an element internal side.
virtual void postInternalSide(const Elem *elem, unsigned int side)
Called after evaluations on an element internal side.
virtual void subdomainChanged()
Called every time the current subdomain changes (i.e.
virtual void onInternalSide(const Elem *elem, unsigned int side)
Called when doing internal edge assembling.
virtual void preBoundary(const Elem *elem, unsigned int side, BoundaryID bnd_id, const Elem *lower_d_elem=nullptr)
Called before the boundary assembly.
virtual void onElement(const Elem *elem)
Assembly of the element (not including surface assembly)
virtual void postElement(const Elem *elem)
Called after the element assembly is done (including surface assembling)
virtual void preElement(const Elem *elem)
Called before the element assembly.
SubdomainID _old_neighbor_subdomain
The subdomain for the last neighbor.
virtual void printBlockExecutionInformation() const
Print information about the particular ordering of objects on each block.
virtual void post()
Called after the element range loop.
virtual void pre()
Called before the element range loop.
virtual bool shouldComputeInternalSide(const Elem &elem, const Elem &neighbor) const
Whether to compute the internal side for the provided element-neighbor pair.
void translateMetaPhysicLError(const MetaPhysicL::LogicError &)
emit a relatively clear error message when we catch a MetaPhysicL logic error
Definition MooseError.C:155

Referenced by NonlinearThread::operator()().

◆ post()

void NonlinearThread::post ( )
overridevirtualinherited

Called after the element range loop.

Reimplemented from ThreadedElementLoopBase< RangeType >.

Definition at line 335 of file NonlinearThread.C.

Referenced by ComputeJacobianForScalingThread::operator()().

◆ postElement()

void ComputeJacobianBlocksThread::postElement ( const Elem *  elem)
overrideprotectedvirtual

Called after the element assembly is done (including surface assembling)

Parameters
elem- active element

Reimplemented from ComputeJacobianThread.

Definition at line 38 of file ComputeJacobianBlocksThread.C.

39{
40 _dof_indices.clear();
41
42 for (const auto & block : _blocks)
43 {
44 const auto & dof_map = block->_precond_system.get_dof_map();
45 dof_map.dof_indices(elem, _dof_indices);
46
48 block->_jacobian, block->_ivar, block->_jvar, dof_map, _dof_indices, _tags, _tid);
49 }
50}
std::vector< dof_id_type > _dof_indices
virtual void addJacobianBlockTags(libMesh::SparseMatrix< libMesh::Number > &jacobian, unsigned int ivar, unsigned int jvar, const DofMap &dof_map, std::vector< dof_id_type > &dof_indices, const std::set< TagID > &tags, const THREAD_ID tid)

◆ postInternalSide()

void ComputeJacobianBlocksThread::postInternalSide ( const Elem *  elem,
unsigned int  side 
)
overrideprotectedvirtual

Called after evaluations on an element internal side.

Parameters
elem- Element we are on
side- local side number of the element 'elem'

Reimplemented from ThreadedElementLoopBase< RangeType >.

Definition at line 53 of file ComputeJacobianBlocksThread.C.

54{
56 {
57 _dof_indices.clear();
59
60 // Pointer to the neighbor we are currently working on.
61 const Elem * neighbor = elem->neighbor_ptr(side);
62
63 // Get the global id of the element and the neighbor
64 const auto elem_id = elem->id(), neighbor_id = neighbor->id();
65
66 if ((neighbor->active() && (neighbor->level() == elem->level()) && (elem_id < neighbor_id)) ||
67 (neighbor->level() < elem->level()))
68 for (const auto & block : _blocks)
69 {
70 const auto & dof_map = block->_precond_system.get_dof_map();
71 dof_map.dof_indices(elem, _dof_indices);
72 dof_map.dof_indices(neighbor, _dof_neighbor_indices);
73
74 _fe_problem.addJacobianNeighbor(block->_jacobian,
75 block->_ivar,
76 block->_jvar,
77 dof_map,
80 _tags,
81 _tid);
82 }
83 }
84}
std::vector< dof_id_type > _dof_neighbor_indices

◆ pre()

template<typename RangeType >
void ThreadedElementLoopBase< RangeType >::pre ( )
virtualinherited

Called before the element range loop.

Reimplemented in ComputeDiracThread.

Definition at line 332 of file ThreadedElementLoopBase.h.

333{
334}

Referenced by ComputeJacobianForScalingThread::operator()().

◆ preBoundary()

void ThreadedElementLoop< ConstElemRange >::preBoundary ( const Elem *  elem,
unsigned int  side,
BoundaryID  bnd_id,
const Elem *  lower_d_elem = nullptr 
)
overridevirtualinherited

Called before the boundary assembly.

Parameters
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< RangeType >.

Definition at line 51 of file ThreadedElementLoop.h.

133{
135}
virtual void setCurrentBoundaryID(BoundaryID bid, const THREAD_ID tid) override
sets the current boundary ID in assembly

◆ preElement()

void ThreadedElementLoop< ConstElemRange >::preElement ( const Elem *  elem)
overridevirtualinherited

Called before the element assembly.

Parameters
elem- active element

Reimplemented from ThreadedElementLoopBase< RangeType >.

Definition at line 47 of file ThreadedElementLoop.h.

116{
118}
virtual void setCurrentSubdomainID(const Elem *elem, const THREAD_ID tid) override

◆ preInternalSide()

void ThreadedElementLoop< ConstElemRange >::preInternalSide ( const Elem *  elem,
unsigned int  side 
)
overridevirtualinherited

Called before evaluations on an element internal side.

Parameters
elem- Element we are on
side- local side number of the element 'elem'

Reimplemented from ThreadedElementLoopBase< RangeType >.

Definition at line 49 of file ThreadedElementLoop.h.

123{
125}
virtual void setNeighborSubdomainID(const Elem *elem, unsigned int side, const THREAD_ID tid) override

◆ prepareElement()

void ThreadedElementLoop< ConstElemRange >::prepareElement ( const Elem *  elem)
protectedinherited

Definition at line 59 of file ThreadedElementLoop.h.

187{
188 _fe_problem.prepare(elem, this->_tid);
189 _fe_problem.reinitElem(elem, this->_tid);
191}
virtual void reinitElem(const Elem *elem, const THREAD_ID tid) override
void reinitMaterials(SubdomainID blk_id, const THREAD_ID tid, bool swap_stateful=true)
virtual void prepare(const Elem *elem, const THREAD_ID tid) override

◆ prepareFace()

void NonlinearThread::prepareFace ( const Elem *  elem,
unsigned int  side,
BoundaryID  bnd_id = Moose::INVALID_BOUNDARY_ID,
const Elem *  lower_d_elem = nullptr 
)
protectedinherited

Reinitialize variables and materials on a face.

Parameters
fe_problemThe finite element problem to call reinit methods on
tidThe thread ID for which we should reinit variables and materials
elemThe element we are reiniting
sideThe element side corresponding to the face we are reiniting
bnd_idIf provided, materials associated with this boundary ID will be reinit'd
lower_d_elemIf provided, lower dimensional variables coincident with the element face will be reinit'd

Definition at line 437 of file NonlinearThread.C.

441{
442 _fe_problem.reinitElemFace(elem, side, _tid);
443
444 // Needed to use lower-dimensional variables on Materials
445 if (lower_d_elem)
446 _fe_problem.reinitLowerDElem(lower_d_elem, _tid);
447
448 if (bnd_id != Moose::INVALID_BOUNDARY_ID)
449 {
450 _fe_problem.reinitMaterialsFaceOnBoundary(bnd_id, elem->subdomain_id(), _tid);
452 }
453 // Currently only used by HDG
454 else
455 _fe_problem.reinitMaterialsFace(elem->subdomain_id(), _tid);
456}
void reinitElemFace(const Elem *elem, unsigned int side, BoundaryID, const THREAD_ID tid)
virtual void reinitLowerDElem(const Elem *lower_d_elem, const THREAD_ID tid, const std::vector< Point > *const pts=nullptr, const std::vector< Real > *const weights=nullptr) override

Referenced by NonlinearThread::onBoundary(), and NonlinearThread::onInternalSide().

◆ printBlockExecutionInformation()

void NonlinearThread::printBlockExecutionInformation ( ) const
overrideprotectedvirtualinherited

Print list of specific objects executed on each block and in which order.

Reimplemented from ThreadedElementLoopBase< RangeType >.

Definition at line 361 of file NonlinearThread.C.

362{
363 // Number of objects executing is approximated by size of warehouses
364 const int num_objects = _kernels.size() + _fv_kernels.size() + _integrated_bcs.size() +
366 const auto & console = _fe_problem.console();
367 const auto block_name = _mesh.getSubdomainName(_subdomain);
368
369 if (_fe_problem.shouldPrintExecution(_tid) && num_objects > 0)
370 {
372 return;
373 console << "[DBG] Ordering of " + objectType() + " Objects on block " << block_name << " ("
374 << _subdomain << ")" << std::endl;
376 {
377 console << "[DBG] Ordering of kernels:" << std::endl;
378 console << _kernels.activeObjectsToFormattedString() << std::endl;
379 }
380 if (_fv_kernels.size())
381 {
382 console << "[DBG] Ordering of FV elemental kernels:" << std::endl;
383 std::string fvkernels =
384 std::accumulate(_fv_kernels.begin() + 1,
385 _fv_kernels.end(),
386 _fv_kernels[0]->name(),
387 [](const std::string & str_out, FVElementalKernel * kernel)
388 { return str_out + " " + kernel->name(); });
389 console << ConsoleUtils::formatString(fvkernels, "[DBG]") << std::endl;
390 }
392 {
393 console << "[DBG] Ordering of DG kernels:" << std::endl;
394 console << _dg_kernels.activeObjectsToFormattedString() << std::endl;
395 }
396 }
397 else if (_fe_problem.shouldPrintExecution(_tid) && num_objects == 0 &&
399 console << "[DBG] No Active " + objectType() + " Objects on block " << block_name << " ("
400 << _subdomain << ")" << std::endl;
401
403}
bool shouldPrintExecution(const THREAD_ID tid) const
Check whether the problem should output execution orders at this time.
FVElemental is used for calculating residual contributions from volume integral terms of a PDE where ...
const std::string & getSubdomainName(SubdomainID subdomain_id) const
Return the name of a block given an id.
Definition MooseMesh.C:1751
unsigned int size(THREAD_ID tid=0) const
Return how many kernels we store in the current warehouse.
std::string activeObjectsToFormattedString(THREAD_ID tid=0, const std::string &prefix="[DBG]") const
Output the active content of the warehouse to a string, meant to be output to the console.
virtual std::string objectType() const
Return what the loops is meant to compute.
const ConsoleStream & console() const
Return console handle.
Definition Problem.h:48
std::set< SubdomainID > _blocks_exec_printed
Keep track of which blocks were visited.
std::string formatString(std::string message, const std::string &prefix)
Add new lines and prefixes to a string for pretty display in output NOTE: This makes a copy of the st...

◆ printBoundaryExecutionInformation()

void NonlinearThread::printBoundaryExecutionInformation ( const unsigned int  bid) const
overrideprotectedvirtualinherited

Print list of specific objects executed on each boundary and in which order.

Reimplemented from ThreadedElementLoopBase< RangeType >.

Definition at line 406 of file NonlinearThread.C.

407{
411 return;
412
413 const auto & console = _fe_problem.console();
414 const auto b_name = _mesh.getBoundaryName(bid);
415 console << "[DBG] Ordering of " + objectType() + " Objects on boundary " << b_name << " (" << bid
416 << ")" << std::endl;
417
419 {
420 console << "[DBG] Ordering of integrated boundary conditions:" << std::endl;
421 console << _integrated_bcs.activeObjectsToFormattedString() << std::endl;
422 }
423
424 // We have not checked if we have a neighbor. This could be premature for saying we are executing
425 // interface kernels. However, we should assume the execution will happen on another side of the
426 // same boundary
428 {
429 console << "[DBG] Ordering of interface kernels:" << std::endl;
430 console << _interface_kernels.activeObjectsToFormattedString() << std::endl;
431 }
432
433 _boundaries_exec_printed.insert(bid);
434}
const std::string & getBoundaryName(const BoundaryID boundary_id) const
Return the name of the boundary given the id.
Definition MooseMesh.C:1780
std::set< BoundaryID > _boundaries_exec_printed
Keep track of which boundaries were visited.

◆ printExecutionOrdering() [1/2]

void ThreadedElementLoop< ConstElemRange >::printExecutionOrdering ( const std::vector< std::shared_ptr< T > > &  objs_ptrs,
const bool  print_header = true,
const std::string &  line_prefix = "[DBG]" 
) const
protectedinherited

Definition at line 80 of file ThreadedElementLoop.h.

177{
178 std::vector<T *> regular_ptrs;
179 for (auto shared_ptr : objs_ptrs)
180 regular_ptrs.push_back(shared_ptr.get());
181 printExecutionOrdering<T>(regular_ptrs, print_header, line_prefix);
182}
const Elem & get(const ElemType type_in)

◆ printExecutionOrdering() [2/2]

void ThreadedElementLoop< ConstElemRange >::printExecutionOrdering ( const std::vector< T * > &  objs,
const bool  print_header = true,
const std::string &  line_prefix = "[DBG]" 
) const
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.

Template Parameters
Tthe object type
Parameters
objsthe vector with all the objects (should be pointers)
objects_typethe name of the type of objects. Defaults to the CPP object name
print_headerwhether to print a header about the timing of execution and the type of objects

Definition at line 76 of file ThreadedElementLoop.h.

151{
152 if (!objs.size())
153 return;
154
155 auto & console = _fe_problem.console();
156 const auto objects_type = MooseUtils::prettyCppType(objs[0]);
157 std::vector<MooseObject *> moose_objs;
158 for (auto obj_ptr : objs)
159 moose_objs.push_back(dynamic_cast<MooseObject *>(obj_ptr));
160 const auto names = ConsoleUtils::mooseObjectVectorToString(moose_objs);
161
162 // Print string with a DBG prefix and with sufficient line breaks
163 std::string message = print_header ? "Executing " + objects_type + " on " +
165 : "";
166 message += (print_header ? "Order of execution:\n" : "") + names;
167 console << ConsoleUtils::formatString(message, line_prefix) << std::endl;
168}
const ExecFlagType & getCurrentExecuteOnFlag() const
Return/set the current execution flag.
const std::string & name() const
Every object that can be built by the factory should be derived from this class.
Definition MooseObject.h:31
std::string mooseObjectVectorToString(const std::vector< MooseObject * > &objs, const std::string &sep=" ")
Routine to output the name of MooseObjects in a string.
std::string prettyCppType(const std::string &cpp_type)

◆ printGeneralExecutionInformation()

void NonlinearThread::printGeneralExecutionInformation ( ) const
overrideprotectedvirtualinherited

Print information about the loop, mostly order of execution of objects.

Reimplemented from ThreadedElementLoopBase< RangeType >.

Definition at line 341 of file NonlinearThread.C.

342{
344 {
345 const auto & console = _fe_problem.console();
346 const auto execute_on = _fe_problem.getCurrentExecuteOnFlag();
347 console << "[DBG] Beginning elemental loop to compute " + objectType() + " on " << execute_on
348 << std::endl;
349 mooseDoOnce(
350 console << "[DBG] Execution order on each element:" << std::endl;
351 console << "[DBG] - kernels on element quadrature points" << std::endl;
352 console << "[DBG] - finite volume elemental kernels on element" << std::endl;
353 console << "[DBG] - integrated boundary conditions on element side quadrature points"
354 << std::endl;
355 console << "[DBG] - DG kernels on element side quadrature points" << std::endl;
356 console << "[DBG] - interface kernels on element side quadrature points" << std::endl;);
357 }
358}

◆ resetExecPrintedSets()

template<typename RangeType >
void ThreadedElementLoopBase< RangeType >::resetExecPrintedSets ( ) const
protectedinherited

Resets the set of blocks and boundaries visited.

Definition at line 454 of file ThreadedElementLoopBase.h.

455{
456 _blocks_exec_printed.clear();
458}

◆ shouldComputeInternalSide()

bool NonlinearThread::shouldComputeInternalSide ( const Elem &  elem,
const Elem &  neighbor 
) const
overridevirtualinherited

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< RangeType >.

Definition at line 459 of file NonlinearThread.C.

460{
461 // ThreadedElementLoop<ConstElemRange>::shouldComputeInternalSide gets expensive on high
462 // h-refinement cases so we avoid it if possible
463 _should_execute_dg = false;
468}
bool _subdomain_has_dg
Whether the subdomain has DGKernels.

◆ subdomainChanged()

void NonlinearThread::subdomainChanged ( )
overridevirtualinherited

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< RangeType >.

Definition at line 68 of file NonlinearThread.C.

69{
70 // This should come first to setup the residual objects before we do dependency determination of
71 // material properties and variables
73
75
76 // Update variable Dependencies
77 std::set<MooseVariableFEBase *> needed_moose_vars;
82
83 // Update FE variable coupleable vector tags
84 std::set<TagID> needed_fe_var_vector_tags;
86 _subdomain, needed_fe_var_vector_tags, _tid);
88 _subdomain, needed_fe_var_vector_tags, _tid);
90 _subdomain, needed_fe_var_vector_tags, _tid);
91
92 // Update material dependencies
93 std::unordered_set<unsigned int> needed_mat_props;
98
99 if (_fe_problem.haveFV())
100 {
101 // Re-query the finite volume elemental kernels
102 _fv_kernels.clear();
104 .query()
105 .template condition<AttribSysNum>(_nl.number())
106 .template condition<AttribSystem>("FVElementalKernel")
107 .template condition<AttribSubdomains>(_subdomain)
108 .template condition<AttribThread>(_tid)
110 for (const auto fv_kernel : _fv_kernels)
111 {
112 const auto & fv_mv_deps = fv_kernel->getMooseVariableDependencies();
113 needed_moose_vars.insert(fv_mv_deps.begin(), fv_mv_deps.end());
114 const auto & fv_mp_deps = fv_kernel->getMatPropDependencies();
115 needed_mat_props.insert(fv_mp_deps.begin(), fv_mp_deps.end());
116 }
117 }
118
119 // Cache these to avoid computing them on every side
122
124 _fe_problem.setActiveFEVariableCoupleableVectorTags(needed_fe_var_vector_tags, _tid);
125 _fe_problem.prepareMaterials(needed_mat_props, _subdomain, _tid);
126}
const MaterialWarehouse & getMaterialWarehouse() const
void prepareMaterials(const std::unordered_set< unsigned int > &consumer_needed_mat_props, const SubdomainID blk_id, const THREAD_ID tid)
Add the MooseVariables and the material properties that the current materials depend on to the depend...
virtual void setActiveElementalMooseVariables(const std::set< MooseVariableFEBase * > &moose_vars, const THREAD_ID tid) override
Set the MOOSE variables to be reinited on each element.
virtual void setActiveFEVariableCoupleableVectorTags(std::set< TagID > &vtags, const THREAD_ID tid) override
TheWarehouse & theWarehouse() const
virtual void subdomainSetup(SubdomainID subdomain, const THREAD_ID tid)
void updateBlockMatPropDependency(SubdomainID id, std::unordered_set< unsigned int > &needed_mat_props, THREAD_ID tid=0, const bool producer_only=false) const
void updateBlockFEVariableCoupledVectorTagDependency(SubdomainID id, std::set< TagID > &needed_fe_var_vector_tags, THREAD_ID tid=0) const
void updateBoundaryVariableDependency(std::set< MooseVariableFieldBase * > &needed_moose_vars, THREAD_ID tid=0) const
void updateBlockVariableDependency(SubdomainID id, std::set< MooseVariableFieldBase * > &needed_moose_vars, THREAD_ID tid=0) const
void updateBoundaryMatPropDependency(std::unordered_set< unsigned int > &needed_mat_props, THREAD_ID tid=0, const bool producer_only=false) const
virtual void determineObjectWarehouses()=0
Determine the objects we will actually compute based on vector/matrix tag information.
std::vector< T * > & queryInto(std::vector< T * > &results, Args &&... args)
queryInto executes the query and stores the results in the given vector.
Query query()
query creates and returns an initialized a query object for querying objects from the warehouse.

Referenced by ComputeJacobianForScalingThread::operator()().

Member Data Documentation

◆ _blocks

std::vector<JacobianBlock *> ComputeJacobianBlocksThread::_blocks
protected

Definition at line 58 of file ComputeJacobianBlocksThread.h.

Referenced by postElement(), and postInternalSide().

◆ _blocks_exec_printed

template<typename RangeType >
std::set<SubdomainID> ThreadedElementLoopBase< RangeType >::_blocks_exec_printed
mutableprotectedinherited

◆ _boundaries_exec_printed

template<typename RangeType >
std::set<BoundaryID> ThreadedElementLoopBase< RangeType >::_boundaries_exec_printed
mutableprotectedinherited

Keep track of which boundaries were visited.

Definition at line 193 of file ThreadedElementLoopBase.h.

Referenced by NonlinearThread::printBoundaryExecutionInformation().

◆ _dg_kernels

MooseObjectTagWarehouse<DGKernelBase>& NonlinearThread::_dg_kernels
protectedinherited

◆ _dg_warehouse

MooseObjectWarehouse<DGKernelBase>* NonlinearThread::_dg_warehouse
protectedinherited

◆ _dof_indices

std::vector<dof_id_type> ComputeJacobianBlocksThread::_dof_indices
private

Definition at line 61 of file ComputeJacobianBlocksThread.h.

Referenced by postElement(), and postInternalSide().

◆ _dof_neighbor_indices

std::vector<dof_id_type> ComputeJacobianBlocksThread::_dof_neighbor_indices
private

Definition at line 63 of file ComputeJacobianBlocksThread.h.

Referenced by postInternalSide().

◆ _fe_problem

FEProblemBase& ThreadedElementLoop< ConstElemRange >::_fe_problem
protectedinherited

Definition at line 62 of file ThreadedElementLoop.h.

◆ _fv_kernels

std::vector<FVElementalKernel *> NonlinearThread::_fv_kernels
protectedinherited

◆ _has_active_objects

const bool NonlinearThread::_has_active_objects
protectedinherited

Whether there are any active residual objects; otherwise we will do an early return.

Definition at line 170 of file NonlinearThread.h.

Referenced by NonlinearThread::operator()().

◆ _hdg_kernels

MooseObjectTagWarehouse<HDGKernel>& NonlinearThread::_hdg_kernels
protectedinherited

◆ _hdg_warehouse

MooseObjectWarehouse<HDGKernel>* NonlinearThread::_hdg_warehouse
protectedinherited

◆ _ibc_warehouse

MooseObjectWarehouse<IntegratedBCBase>* NonlinearThread::_ibc_warehouse
protectedinherited

◆ _ik_warehouse

MooseObjectWarehouse<InterfaceKernelBase>* NonlinearThread::_ik_warehouse
protectedinherited

◆ _integrated_bcs

MooseObjectTagWarehouse<IntegratedBCBase>& NonlinearThread::_integrated_bcs
protectedinherited

◆ _interface_kernels

MooseObjectTagWarehouse<InterfaceKernelBase>& NonlinearThread::_interface_kernels
protectedinherited

◆ _kernels

MooseObjectTagWarehouse<KernelBase>& NonlinearThread::_kernels
protectedinherited

◆ _mesh

template<typename RangeType >
MooseMesh& ThreadedElementLoopBase< RangeType >::_mesh
protectedinherited

◆ _neighbor_subdomain

template<typename RangeType >
SubdomainID ThreadedElementLoopBase< RangeType >::_neighbor_subdomain
protectedinherited

◆ _nl

NonlinearSystemBase& NonlinearThread::_nl
protectedinherited

◆ _num_cached

unsigned int NonlinearThread::_num_cached
protectedinherited

◆ _old_neighbor_subdomain

template<typename RangeType >
SubdomainID ThreadedElementLoopBase< RangeType >::_old_neighbor_subdomain
protectedinherited

The subdomain for the last neighbor.

Definition at line 178 of file ThreadedElementLoopBase.h.

◆ _old_subdomain

template<typename RangeType >
SubdomainID ThreadedElementLoopBase< RangeType >::_old_subdomain
protectedinherited

The subdomain for the last element.

Definition at line 172 of file ThreadedElementLoopBase.h.

Referenced by ComputeJacobianForScalingThread::operator()().

◆ _should_execute_dg

bool NonlinearThread::_should_execute_dg
mutableprivateinherited

Whether DG kernels should be executed for a given elem-neighbor pairing.

This is determined by calling down to our parent (ThreadedElementLoop) class's shouldComputeOnInternalSide method which checks things like whether the elem id is less than the neighbor id such that we make sure we do not execute DGKernels twice on the same face

Definition at line 177 of file NonlinearThread.h.

Referenced by NonlinearThread::onInternalSide(), and NonlinearThread::shouldComputeInternalSide().

◆ _subdomain

template<typename RangeType >
SubdomainID ThreadedElementLoopBase< RangeType >::_subdomain
protectedinherited

The subdomain for the current element.

Definition at line 169 of file ThreadedElementLoopBase.h.

Referenced by ComputeResidualAndJacobianThread::compute(), ComputeFullJacobianThread::computeOnBoundary(), NonlinearThread::computeOnElement(), ComputeFullJacobianThread::computeOnElement(), ComputeFullJacobianThread::computeOnInternalFace(), ComputeJacobianThread::computeOnInternalFace(), ComputeResidualAndJacobianThread::computeOnInternalFace(), ComputeResidualThread::computeOnInternalFace(), NonlinearThread::computeOnInternalFace(), ComputeFullJacobianThread::computeOnInternalFace(), ComputeResidualAndJacobianThread::determineObjectWarehouses(), ComputeResidualThread::determineObjectWarehouses(), ComputeMaterialsObjectThread::onBoundary(), ComputeDiracThread::onElement(), ComputeIndicatorThread::onElement(), ComputeMarkerThread::onElement(), ComputeMaterialsObjectThread::onElement(), ComputeUserObjectsThread::onElement(), ComputeMaterialsObjectThread::onInterface(), ComputeMaterialsObjectThread::onInternalSide(), ComputeJacobianForScalingThread::operator()(), postInternalSide(), ComputeDiracThread::printBlockExecutionInformation(), ComputeIndicatorThread::printBlockExecutionInformation(), ComputeMarkerThread::printBlockExecutionInformation(), ComputeUserObjectsThread::printBlockExecutionInformation(), NonlinearThread::printBlockExecutionInformation(), ComputeUserObjectsThread::querySubdomain(), ComputeDiracThread::subdomainChanged(), ComputeIndicatorThread::subdomainChanged(), ComputeMarkerThread::subdomainChanged(), ComputeMaterialsObjectThread::subdomainChanged(), ComputeUserObjectsThread::subdomainChanged(), NonlinearThread::subdomainChanged(), and ProjectMaterialProperties::subdomainChanged().

◆ _subdomain_has_dg

bool NonlinearThread::_subdomain_has_dg
privateinherited

Whether the subdomain has DGKernels.

Definition at line 179 of file NonlinearThread.h.

Referenced by NonlinearThread::shouldComputeInternalSide().

◆ _subdomain_has_hdg

bool NonlinearThread::_subdomain_has_hdg
privateinherited

Whether the subdomain has HDGKernels.

Definition at line 181 of file NonlinearThread.h.

Referenced by NonlinearThread::onInternalSide(), and NonlinearThread::shouldComputeInternalSide().

◆ _tag_kernels

MooseObjectWarehouse<KernelBase>* NonlinearThread::_tag_kernels
protectedinherited

◆ _tags

const std::set<TagID>& ComputeJacobianThread::_tags
protectedinherited

◆ _tid

template<typename RangeType >
THREAD_ID ThreadedElementLoopBase< RangeType >::_tid
protectedinherited

Definition at line 166 of file ThreadedElementLoopBase.h.

Referenced by ComputeResidualAndJacobianThread::accumulate(), ComputeResidualThread::accumulate(), ComputeJacobianThread::accumulateLower(), ComputeResidualAndJacobianThread::accumulateLower(), ComputeResidualThread::accumulateLower(), ComputeJacobianThread::accumulateNeighbor(), ComputeResidualAndJacobianThread::accumulateNeighbor(), ComputeResidualThread::accumulateNeighbor(), ComputeJacobianThread::accumulateNeighborLower(), ComputeResidualAndJacobianThread::accumulateNeighborLower(), ComputeResidualThread::accumulateNeighborLower(), ComputeResidualAndJacobianThread::compute(), NonlinearThread::computeOnBoundary(), ComputeFullJacobianThread::computeOnBoundary(), NonlinearThread::computeOnElement(), ComputeFullJacobianThread::computeOnElement(), NonlinearThread::computeOnInterface(), ComputeFullJacobianThread::computeOnInterface(), ComputeFullJacobianThread::computeOnInternalFace(), ComputeJacobianThread::computeOnInternalFace(), ComputeResidualAndJacobianThread::computeOnInternalFace(), ComputeResidualThread::computeOnInternalFace(), NonlinearThread::computeOnInternalFace(), ComputeFullJacobianThread::computeOnInternalFace(), ComputeJacobianThread::determineObjectWarehouses(), ComputeResidualAndJacobianThread::determineObjectWarehouses(), ComputeResidualThread::determineObjectWarehouses(), ComputeMaterialsObjectThread::onBoundary(), ComputeUserObjectsThread::onBoundary(), NonlinearThread::onBoundary(), ProjectMaterialProperties::onBoundary(), ComputeDiracThread::onElement(), ComputeElemDampingThread::onElement(), ComputeIndicatorThread::onElement(), ComputeMarkerThread::onElement(), ComputeMaterialsObjectThread::onElement(), ComputeUserObjectsThread::onElement(), NonlinearThread::onElement(), ProjectMaterialProperties::onElement(), UpdateErrorVectorsThread::onElement(), NonlinearThread::onExternalSide(), ComputeMaterialsObjectThread::onInterface(), ComputeUserObjectsThread::onInterface(), NonlinearThread::onInterface(), ComputeIndicatorThread::onInternalSide(), ComputeMaterialsObjectThread::onInternalSide(), ComputeUserObjectsThread::onInternalSide(), NonlinearThread::onInternalSide(), ProjectMaterialProperties::onInternalSide(), ComputeJacobianForScalingThread::operator()(), ComputeDiracThread::post(), ComputeIndicatorThread::post(), ComputeMarkerThread::post(), ComputeMaterialsObjectThread::post(), ComputeUserObjectsThread::post(), ComputeDiracThread::postElement(), ComputeJacobianThread::postElement(), postElement(), postInternalSide(), ComputeDiracThread::pre(), NonlinearThread::prepareFace(), ComputeDiracThread::printBlockExecutionInformation(), ComputeIndicatorThread::printBlockExecutionInformation(), ComputeMarkerThread::printBlockExecutionInformation(), ComputeUserObjectsThread::printBlockExecutionInformation(), NonlinearThread::printBlockExecutionInformation(), NonlinearThread::printBoundaryExecutionInformation(), ComputeDiracThread::printGeneralExecutionInformation(), ComputeElemDampingThread::printGeneralExecutionInformation(), ComputeIndicatorThread::printGeneralExecutionInformation(), ComputeMarkerThread::printGeneralExecutionInformation(), ComputeUserObjectsThread::printGeneralExecutionInformation(), NonlinearThread::printGeneralExecutionInformation(), ComputeUserObjectsThread::queryBoundary(), ComputeUserObjectsThread::querySubdomain(), ComputeDiracThread::subdomainChanged(), ComputeIndicatorThread::subdomainChanged(), ComputeMarkerThread::subdomainChanged(), ComputeMaterialsObjectThread::subdomainChanged(), ComputeUserObjectsThread::subdomainChanged(), NonlinearThread::subdomainChanged(), and ProjectMaterialProperties::subdomainChanged().


The documentation for this class was generated from the following files: