www.mooseframework.org
Public Member Functions | Protected Attributes | List of all members
ComputeResidualThread Class Reference

#include <ComputeResidualThread.h>

Inheritance diagram for ComputeResidualThread:
[legend]

Public Member Functions

 ComputeResidualThread (FEProblemBase &fe_problem, const std::set< TagID > &tags)
 
 ComputeResidualThread (ComputeResidualThread &x, Threads::split split)
 
virtual ~ComputeResidualThread ()
 
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) override
 Called when doing boundary assembling. More...
 
virtual void onInterface (const Elem *elem, unsigned int side, BoundaryID bnd_id) override
 Called when doing interface assembling. More...
 
virtual void onInternalSide (const Elem *elem, unsigned int side) override
 Called when doing internal edge assembling. More...
 
virtual void postElement (const Elem *) override
 Called after the element assembly is done (including surface assembling) More...
 
virtual void post () override
 Called after the element range loop. More...
 
void join (const ComputeResidualThread &)
 
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 neighborSubdomainChanged () override
 Called every time the neighbor subdomain changes (i.e. More...
 
void operator() (const ConstElemRange &range, bool bypass_threading=false)
 
virtual void pre ()
 Called before the element range loop. More...
 
virtual void postInternalSide (const Elem *elem, unsigned int side)
 Called after evaluations on an element internal side. More...
 

Protected Attributes

NonlinearSystemBase_nl
 
const std::set< TagID > & _tags
 
unsigned int _num_cached
 
MooseObjectTagWarehouse< IntegratedBCBase > & _integrated_bcs
 Reference to BC storage structures. More...
 
MooseObjectWarehouse< IntegratedBCBase > * _ibc_warehouse
 
MooseObjectTagWarehouse< DGKernel > & _dg_kernels
 Reference to DGKernel storage structure. More...
 
MooseObjectWarehouse< DGKernel > * _dg_warehouse
 
MooseObjectTagWarehouse< InterfaceKernel > & _interface_kernels
 Reference to interface kernel storage structure. More...
 
MooseObjectWarehouse< InterfaceKernel > * _ik_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...
 
MooseObjectTagWarehouse< KernelBase > & _kernels
 
MooseObjectWarehouse< KernelBase > * _tag_kernels
 

Detailed Description

Definition at line 28 of file ComputeResidualThread.h.

Constructor & Destructor Documentation

◆ ComputeResidualThread() [1/2]

ComputeResidualThread::ComputeResidualThread ( FEProblemBase fe_problem,
const std::set< TagID > &  tags 
)

Definition at line 24 of file ComputeResidualThread.C.

27  _nl(fe_problem.getNonlinearSystemBase()),
28  _tags(tags),
29  _num_cached(0),
34 {
35 }
NonlinearSystemBase & getNonlinearSystemBase()
MooseObjectTagWarehouse< KernelBase > & _kernels
MooseObjectTagWarehouse< KernelBase > & getKernelWarehouse()
Access functions to Warehouses from outside NonlinearSystemBase.
MooseObjectTagWarehouse< IntegratedBCBase > & getIntegratedBCWarehouse()
MooseObjectTagWarehouse< DGKernel > & _dg_kernels
Reference to DGKernel storage structure.
MooseObjectTagWarehouse< InterfaceKernel > & _interface_kernels
Reference to interface kernel storage structure.
const std::set< TagID > & _tags
NonlinearSystemBase & _nl
MooseObjectTagWarehouse< IntegratedBCBase > & _integrated_bcs
Reference to BC storage structures.
MooseObjectTagWarehouse< InterfaceKernel > & getInterfaceKernelWarehouse()
MooseObjectTagWarehouse< DGKernel > & getDGKernelWarehouse()

◆ ComputeResidualThread() [2/2]

ComputeResidualThread::ComputeResidualThread ( ComputeResidualThread x,
Threads::split  split 
)

Definition at line 38 of file ComputeResidualThread.C.

40  _nl(x._nl),
41  _tags(x._tags),
42  _num_cached(0),
43  _integrated_bcs(x._integrated_bcs),
44  _dg_kernels(x._dg_kernels),
45  _interface_kernels(x._interface_kernels),
46  _kernels(x._kernels),
47  _tag_kernels(x._tag_kernels)
48 {
49 }
MooseObjectTagWarehouse< KernelBase > & _kernels
MooseObjectWarehouse< KernelBase > * _tag_kernels
static PetscErrorCode Vec x
MooseObjectTagWarehouse< DGKernel > & _dg_kernels
Reference to DGKernel storage structure.
MooseObjectTagWarehouse< InterfaceKernel > & _interface_kernels
Reference to interface kernel storage structure.
const std::set< TagID > & _tags
NonlinearSystemBase & _nl
MooseObjectTagWarehouse< IntegratedBCBase > & _integrated_bcs
Reference to BC storage structures.

◆ ~ComputeResidualThread()

ComputeResidualThread::~ComputeResidualThread ( )
virtual

Definition at line 51 of file ComputeResidualThread.C.

51 {}

Member Function Documentation

◆ 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< ConstElemRange >.

Definition at line 77 of file ThreadedElementLoop.h.

78 {
79  Threads::spin_mutex::scoped_lock lock(threaded_element_mutex);
80 
81  std::string what(e.what());
83 }
virtual const char * what() const
Get out the error message.
virtual void setException(const std::string &message)
Set an exception.
static Threads::spin_mutex threaded_element_mutex
This mutex is used by all derived classes of the ThreadedElementLoop.

◆ join()

void ComputeResidualThread::join ( const ComputeResidualThread )

Definition at line 243 of file ComputeResidualThread.C.

244 {
245 }

◆ 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< ConstElemRange >.

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

Definition at line 101 of file ThreadedElementLoop.h.

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

◆ onBoundary()

void ComputeResidualThread::onBoundary ( const Elem *  elem,
unsigned int  side,
BoundaryID  bnd_id 
)
overridevirtual

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

Reimplemented from ThreadedElementLoopBase< ConstElemRange >.

Definition at line 128 of file ComputeResidualThread.C.

129 {
131  {
132  const auto & bcs = _ibc_warehouse->getActiveBoundaryObjects(bnd_id, _tid);
133 
134  _fe_problem.reinitElemFace(elem, side, bnd_id, _tid);
135 
136  // Set up Sentinel class so that, even if reinitMaterialsFace() throws, we
137  // still remember to swap back during stack unwinding.
139 
140  _fe_problem.reinitMaterialsFace(elem->subdomain_id(), _tid);
142 
143  for (const auto & bc : bcs)
144  {
145  if (bc->shouldApply())
146  bc->computeResidual();
147  }
148  }
149 }
virtual void reinitMaterialsBoundary(BoundaryID boundary_id, THREAD_ID tid, bool swap_stateful=true)
bool hasActiveBoundaryObjects(THREAD_ID tid=0) const
const std::map< BoundaryID, std::vector< std::shared_ptr< T > > > & getActiveBoundaryObjects(THREAD_ID tid=0) const
virtual void reinitElemFace(const Elem *elem, unsigned int side, BoundaryID bnd_id, THREAD_ID tid) override
virtual void reinitMaterialsFace(SubdomainID blk_id, THREAD_ID tid, bool swap_stateful=true)
virtual void swapBackMaterialsFace(THREAD_ID tid)
MooseObjectWarehouse< IntegratedBCBase > * _ibc_warehouse
The "SwapBackSentinel" class&#39;s destructor guarantees that FEProblemBase::swapBackMaterials{Face,Neighbor}() is called even when an exception is thrown from FEProblemBase::reinitMaterials{Face,Neighbor}.

◆ onElement()

void ComputeResidualThread::onElement ( const Elem *  elem)
overridevirtual

Assembly of the element (not including surface assembly)

Parameters
elem- active element

Reimplemented from ThreadedElementLoopBase< ConstElemRange >.

Definition at line 108 of file ComputeResidualThread.C.

109 {
110  _fe_problem.prepare(elem, _tid);
111  _fe_problem.reinitElem(elem, _tid);
112 
113  // Set up Sentinel class so that, even if reinitMaterials() throws, we
114  // still remember to swap back during stack unwinding.
116 
118 
120  {
121  const auto & kernels = _tag_kernels->getActiveBlockObjects(_subdomain, _tid);
122  for (const auto & kernel : kernels)
123  kernel->computeResidual();
124  }
125 }
virtual void prepare(const Elem *elem, THREAD_ID tid) override
bool hasActiveBlockObjects(THREAD_ID tid=0) const
const std::map< SubdomainID, std::vector< std::shared_ptr< T > > > & getActiveBlockObjects(THREAD_ID tid=0) const
MooseObjectWarehouse< KernelBase > * _tag_kernels
virtual void reinitElem(const Elem *elem, THREAD_ID tid) override
virtual void reinitMaterials(SubdomainID blk_id, THREAD_ID tid, bool swap_stateful=true)
virtual void swapBackMaterials(THREAD_ID tid)
SubdomainID _subdomain
The subdomain for the current element.
The "SwapBackSentinel" class&#39;s destructor guarantees that FEProblemBase::swapBackMaterials{Face,Neighbor}() is called even when an exception is thrown from FEProblemBase::reinitMaterials{Face,Neighbor}.

◆ onInterface()

void ComputeResidualThread::onInterface ( const Elem *  elem,
unsigned int  side,
BoundaryID  bnd_id 
)
overridevirtual

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

Definition at line 152 of file ComputeResidualThread.C.

153 {
155  {
156 
157  // Pointer to the neighbor we are currently working on.
158  const Elem * neighbor = elem->neighbor_ptr(side);
159 
160  if (neighbor->active())
161  {
162  _fe_problem.reinitNeighbor(elem, side, _tid);
163 
164  // Set up Sentinels so that, even if one of the reinitMaterialsXXX() calls throws, we
165  // still remember to swap back during stack unwinding.
167  _fe_problem.reinitMaterialsFace(elem->subdomain_id(), _tid);
169 
171  _fe_problem.reinitMaterialsNeighbor(neighbor->subdomain_id(), _tid);
172 
173  const auto & int_ks = _ik_warehouse->getActiveBoundaryObjects(bnd_id, _tid);
174  for (const auto & interface_kernel : int_ks)
175  interface_kernel->computeResidual();
176 
177  {
178  Threads::spin_mutex::scoped_lock lock(Threads::spin_mtx);
180  }
181  }
182  }
183 }
virtual void addResidualNeighbor(THREAD_ID tid) override
virtual void reinitMaterialsNeighbor(SubdomainID blk_id, THREAD_ID tid, bool swap_stateful=true)
virtual void reinitMaterialsBoundary(BoundaryID boundary_id, THREAD_ID tid, bool swap_stateful=true)
bool hasActiveBoundaryObjects(THREAD_ID tid=0) const
virtual void swapBackMaterialsNeighbor(THREAD_ID tid)
const std::map< BoundaryID, std::vector< std::shared_ptr< T > > > & getActiveBoundaryObjects(THREAD_ID tid=0) const
MooseObjectWarehouse< InterfaceKernel > * _ik_warehouse
virtual void reinitMaterialsFace(SubdomainID blk_id, THREAD_ID tid, bool swap_stateful=true)
virtual void reinitNeighbor(const Elem *elem, unsigned int side, THREAD_ID tid) override
virtual void swapBackMaterialsFace(THREAD_ID tid)
The "SwapBackSentinel" class&#39;s destructor guarantees that FEProblemBase::swapBackMaterials{Face,Neighbor}() is called even when an exception is thrown from FEProblemBase::reinitMaterials{Face,Neighbor}.

◆ onInternalSide()

void ComputeResidualThread::onInternalSide ( const Elem *  elem,
unsigned int  side 
)
overridevirtual

Called when doing internal edge assembling.

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

Reimplemented from ThreadedElementLoopBase< ConstElemRange >.

Definition at line 186 of file ComputeResidualThread.C.

187 {
189  {
190  // Pointer to the neighbor we are currently working on.
191  const Elem * neighbor = elem->neighbor_ptr(side);
192 
193  // Get the global id of the element and the neighbor
194  const dof_id_type elem_id = elem->id(), neighbor_id = neighbor->id();
195 
196  if ((neighbor->active() && (neighbor->level() == elem->level()) && (elem_id < neighbor_id)) ||
197  (neighbor->level() < elem->level()))
198  {
199  _fe_problem.reinitNeighbor(elem, side, _tid);
200 
201  // Set up Sentinels so that, even if one of the reinitMaterialsXXX() calls throws, we
202  // still remember to swap back during stack unwinding.
204  _fe_problem.reinitMaterialsFace(elem->subdomain_id(), _tid);
205 
207  _fe_problem.reinitMaterialsNeighbor(neighbor->subdomain_id(), _tid);
208 
209  const auto & dgks = _dg_warehouse->getActiveBlockObjects(_subdomain, _tid);
210  for (const auto & dg_kernel : dgks)
211  if (dg_kernel->hasBlocks(neighbor->subdomain_id()))
212  dg_kernel->computeResidual();
213 
214  {
215  Threads::spin_mutex::scoped_lock lock(Threads::spin_mtx);
217  }
218  }
219  }
220 }
virtual void addResidualNeighbor(THREAD_ID tid) override
bool hasActiveBlockObjects(THREAD_ID tid=0) const
const std::map< SubdomainID, std::vector< std::shared_ptr< T > > > & getActiveBlockObjects(THREAD_ID tid=0) const
virtual void reinitMaterialsNeighbor(SubdomainID blk_id, THREAD_ID tid, bool swap_stateful=true)
virtual void swapBackMaterialsNeighbor(THREAD_ID tid)
virtual void reinitMaterialsFace(SubdomainID blk_id, THREAD_ID tid, bool swap_stateful=true)
MooseObjectWarehouse< DGKernel > * _dg_warehouse
virtual void reinitNeighbor(const Elem *elem, unsigned int side, THREAD_ID tid) override
SubdomainID _subdomain
The subdomain for the current element.
virtual void swapBackMaterialsFace(THREAD_ID tid)
The "SwapBackSentinel" class&#39;s destructor guarantees that FEProblemBase::swapBackMaterials{Face,Neighbor}() is called even when an exception is thrown from FEProblemBase::reinitMaterials{Face,Neighbor}.

◆ operator()()

void ThreadedElementLoopBase< ConstElemRange >::operator() ( const ConstElemRange &  range,
bool  bypass_threading = false 
)
inherited

Definition at line 171 of file ThreadedElementLoopBase.h.

172 {
173  try
174  {
175  ParallelUniqueId puid;
176  _tid = bypass_threading ? 0 : puid.id;
177 
178  pre();
179 
182  typename RangeType::const_iterator el = range.begin();
183  for (el = range.begin(); el != range.end(); ++el)
184  {
185  if (!keepGoing())
186  break;
187 
188  const Elem * elem = *el;
189 
190  preElement(elem);
191 
193  _subdomain = elem->subdomain_id();
194  if (_subdomain != _old_subdomain)
196 
197  onElement(elem);
198 
199  for (unsigned int side = 0; side < elem->n_sides(); side++)
200  {
201  std::vector<BoundaryID> boundary_ids = _mesh.getBoundaryIDs(elem, side);
202 
203  if (boundary_ids.size() > 0)
204  for (std::vector<BoundaryID>::iterator it = boundary_ids.begin();
205  it != boundary_ids.end();
206  ++it)
207  onBoundary(elem, side, *it);
208 
209  const Elem * neighbor = elem->neighbor_ptr(side);
210  if (neighbor != nullptr)
211  {
212  preInternalSide(elem, side);
213 
215  _neighbor_subdomain = neighbor->subdomain_id();
218 
219  onInternalSide(elem, side);
220 
221  if (boundary_ids.size() > 0)
222  for (std::vector<BoundaryID>::iterator it = boundary_ids.begin();
223  it != boundary_ids.end();
224  ++it)
225  onInterface(elem, side, *it);
226 
227  postInternalSide(elem, side);
228  }
229  } // sides
230  postElement(elem);
231 
232  } // range
233 
234  post();
235  }
236  catch (MooseException & e)
237  {
239  }
240 }
virtual bool keepGoing()
Whether or not the loop should continue.
virtual void onElement(const Elem *elem)
Assembly of the element (not including surface assembly)
virtual void pre()
Called before the element range loop.
virtual void subdomainChanged()
Called every time the current subdomain changes (i.e.
virtual void neighborSubdomainChanged()
Called every time the neighbor subdomain changes (i.e.
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.
const SubdomainID INVALID_BLOCK_ID
Definition: MooseTypes.h:329
virtual void postElement(const Elem *elem)
Called after the element assembly is done (including surface assembling)
virtual void onInterface(const Elem *elem, unsigned int side, BoundaryID bnd_id)
Called when doing interface assembling.
SubdomainID _old_neighbor_subdomain
The subdomain for the last neighbor.
virtual void onInternalSide(const Elem *elem, unsigned int side)
Called when doing internal edge assembling.
Provides a way for users to bail out of the current solve.
virtual void caughtMooseException(MooseException &)
Called if a MooseException is caught anywhere during the computation.
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:2105
SubdomainID _subdomain
The subdomain for the current element.
SubdomainID _old_subdomain
The subdomain for the last element.
virtual void post()
Called after the element range loop.
virtual void preElement(const Elem *elem)
Called before the element assembly.
SubdomainID _neighbor_subdomain
The subdomain for the current neighbor.
virtual void onBoundary(const Elem *elem, unsigned int side, BoundaryID bnd_id)
Called when doing boundary assembling.

◆ post()

void ComputeResidualThread::post ( )
overridevirtual

Called after the element range loop.

Reimplemented from ThreadedElementLoopBase< ConstElemRange >.

Definition at line 236 of file ComputeResidualThread.C.

237 {
240 }
virtual void clearActiveMaterialProperties(THREAD_ID tid) override
Clear the active material properties.
virtual void clearActiveElementalMooseVariables(THREAD_ID tid) override
Clear the active elemental MooseVariableFEBase.

◆ postElement()

void ComputeResidualThread::postElement ( const Elem *  elem)
overridevirtual

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

Parameters
elem- active element

Reimplemented from ThreadedElementLoopBase< ConstElemRange >.

Definition at line 223 of file ComputeResidualThread.C.

224 {
226  _num_cached++;
227 
228  if (_num_cached % 20 == 0)
229  {
230  Threads::spin_mutex::scoped_lock lock(Threads::spin_mtx);
232  }
233 }
virtual void addCachedResidual(THREAD_ID tid) override
virtual void cacheResidual(THREAD_ID tid) override

◆ postInternalSide()

void ThreadedElementLoopBase< ConstElemRange >::postInternalSide ( const Elem *  elem,
unsigned int  side 
)
virtualinherited

Called after evaluations on an element internal side.

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

Definition at line 288 of file ThreadedElementLoopBase.h.

289 {
290 }

◆ pre()

void ThreadedElementLoopBase< ConstElemRange >::pre ( )
virtualinherited

Called before the element range loop.

Definition at line 244 of file ThreadedElementLoopBase.h.

245 {
246 }

◆ preElement()

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

Called before the element assembly.

Parameters
elem- active element

Reimplemented from ThreadedElementLoopBase< ConstElemRange >.

Definition at line 87 of file ThreadedElementLoop.h.

88 {
90 }
virtual void setCurrentSubdomainID(const Elem *elem, THREAD_ID tid) override
Base class for assembly-like calculations.

◆ 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< ConstElemRange >.

Definition at line 94 of file ThreadedElementLoop.h.

95 {
97 }
Base class for assembly-like calculations.
virtual void setNeighborSubdomainID(const Elem *elem, unsigned int side, THREAD_ID tid) override

◆ subdomainChanged()

void ComputeResidualThread::subdomainChanged ( )
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 54 of file ComputeResidualThread.C.

55 {
57 
58  // Update variable Dependencies
59  std::set<MooseVariableFEBase *> needed_moose_vars;
64 
65  // Update material dependencies
66  std::set<unsigned int> needed_mat_props;
71 
73  _fe_problem.setActiveMaterialProperties(needed_mat_props, _tid);
75 
76  // If users pass a empty vector or a full size of vector,
77  // we take all kernels
78  if (!_tags.size() || _tags.size() == _fe_problem.numVectorTags())
79  {
84  }
85  // If we have one tag only,
86  // We call tag based storage
87  else if (_tags.size() == 1)
88  {
93  }
94  // This one may be expensive
95  else
96  {
101  }
102 
103  for (auto & var : needed_moose_vars)
104  var->computingJacobian(false);
105 }
void updateBoundaryVariableDependency(std::set< MooseVariableFEBase *> &needed_moose_vars, THREAD_ID tid=0) const
void updateBlockMatPropDependency(SubdomainID id, std::set< unsigned int > &needed_mat_props, THREAD_ID tid=0) const
virtual void prepareMaterials(SubdomainID blk_id, THREAD_ID tid)
Add the MooseVariables that the current materials depend on to the dependency list.
virtual void setActiveElementalMooseVariables(const std::set< MooseVariableFEBase *> &moose_vars, THREAD_ID tid) override
Set the MOOSE variables to be reinited on each element.
MooseObjectTagWarehouse< KernelBase > & _kernels
void updateBlockVariableDependency(SubdomainID id, std::set< MooseVariableFEBase *> &needed_moose_vars, THREAD_ID tid=0) const
MooseObjectWarehouse< T > & getVectorTagsObjectWarehouse(const std::set< TagID > &tags, THREAD_ID tid)
Retrieve a moose object warehouse in which every moose object at least has one of the given vector ta...
virtual unsigned int numVectorTags()
The total number of tags.
Definition: SubProblem.h:110
MooseObjectWarehouse< KernelBase > * _tag_kernels
virtual void setActiveMaterialProperties(const std::set< unsigned int > &mat_prop_ids, THREAD_ID tid) override
Record and set the material properties required by the current computing thread.
virtual void subdomainSetup(SubdomainID subdomain, THREAD_ID tid)
MooseObjectTagWarehouse< DGKernel > & _dg_kernels
Reference to DGKernel storage structure.
MooseObjectTagWarehouse< InterfaceKernel > & _interface_kernels
Reference to interface kernel storage structure.
MooseObjectWarehouse< InterfaceKernel > * _ik_warehouse
const std::set< TagID > & _tags
MooseObjectWarehouse< DGKernel > * _dg_warehouse
MooseObjectWarehouse< T > & getVectorTagObjectWarehouse(TagID tag_id, THREAD_ID tid)
Retrieve a moose object warehouse in which every moose object has the given vector tag...
MooseObjectTagWarehouse< IntegratedBCBase > & _integrated_bcs
Reference to BC storage structures.
SubdomainID _subdomain
The subdomain for the current element.
MooseObjectWarehouse< IntegratedBCBase > * _ibc_warehouse
void updateBoundaryMatPropDependency(std::set< unsigned int > &needed_mat_props, THREAD_ID tid=0) const

Member Data Documentation

◆ _dg_kernels

MooseObjectTagWarehouse<DGKernel>& ComputeResidualThread::_dg_kernels
protected

Reference to DGKernel storage structure.

Definition at line 59 of file ComputeResidualThread.h.

Referenced by subdomainChanged().

◆ _dg_warehouse

MooseObjectWarehouse<DGKernel>* ComputeResidualThread::_dg_warehouse
protected

Definition at line 61 of file ComputeResidualThread.h.

Referenced by onInternalSide(), and subdomainChanged().

◆ _fe_problem

FEProblemBase& ThreadedElementLoop< ConstElemRange >::_fe_problem
protectedinherited

◆ _ibc_warehouse

MooseObjectWarehouse<IntegratedBCBase>* ComputeResidualThread::_ibc_warehouse
protected

Definition at line 56 of file ComputeResidualThread.h.

Referenced by onBoundary(), and subdomainChanged().

◆ _ik_warehouse

MooseObjectWarehouse<InterfaceKernel>* ComputeResidualThread::_ik_warehouse
protected

Definition at line 66 of file ComputeResidualThread.h.

Referenced by onInterface(), and subdomainChanged().

◆ _integrated_bcs

MooseObjectTagWarehouse<IntegratedBCBase>& ComputeResidualThread::_integrated_bcs
protected

Reference to BC storage structures.

Definition at line 54 of file ComputeResidualThread.h.

Referenced by subdomainChanged().

◆ _interface_kernels

MooseObjectTagWarehouse<InterfaceKernel>& ComputeResidualThread::_interface_kernels
protected

Reference to interface kernel storage structure.

Definition at line 64 of file ComputeResidualThread.h.

Referenced by subdomainChanged().

◆ _kernels

MooseObjectTagWarehouse<KernelBase>& ComputeResidualThread::_kernels
protected

Reference to Kernel storage structures

Definition at line 70 of file ComputeResidualThread.h.

Referenced by subdomainChanged().

◆ _mesh

MooseMesh& ThreadedElementLoopBase< ConstElemRange >::_mesh
protectedinherited

Definition at line 136 of file ThreadedElementLoopBase.h.

◆ _neighbor_subdomain

SubdomainID ThreadedElementLoopBase< ConstElemRange >::_neighbor_subdomain
protectedinherited

The subdomain for the current neighbor.

Definition at line 146 of file ThreadedElementLoopBase.h.

◆ _nl

NonlinearSystemBase& ComputeResidualThread::_nl
protected

Definition at line 49 of file ComputeResidualThread.h.

◆ _num_cached

unsigned int ComputeResidualThread::_num_cached
protected

Definition at line 51 of file ComputeResidualThread.h.

Referenced by postElement().

◆ _old_neighbor_subdomain

SubdomainID ThreadedElementLoopBase< ConstElemRange >::_old_neighbor_subdomain
protectedinherited

The subdomain for the last neighbor.

Definition at line 149 of file ThreadedElementLoopBase.h.

◆ _old_subdomain

SubdomainID ThreadedElementLoopBase< ConstElemRange >::_old_subdomain
protectedinherited

The subdomain for the last element.

Definition at line 143 of file ThreadedElementLoopBase.h.

◆ _subdomain

SubdomainID ThreadedElementLoopBase< ConstElemRange >::_subdomain
protectedinherited

◆ _tag_kernels

MooseObjectWarehouse<KernelBase>* ComputeResidualThread::_tag_kernels
protected

Definition at line 72 of file ComputeResidualThread.h.

Referenced by onElement(), and subdomainChanged().

◆ _tags

const std::set<TagID>& ComputeResidualThread::_tags
protected

Definition at line 50 of file ComputeResidualThread.h.

Referenced by subdomainChanged().

◆ _tid

THREAD_ID ThreadedElementLoopBase< ConstElemRange >::_tid
protectedinherited

Definition at line 137 of file ThreadedElementLoopBase.h.

Referenced by ComputeFullJacobianThread::computeFaceJacobian(), ComputeJacobianThread::computeFaceJacobian(), ComputeFullJacobianThread::computeInternalFaceJacobian(), ComputeJacobianThread::computeInternalFaceJacobian(), ComputeFullJacobianThread::computeInternalInterFaceJacobian(), ComputeJacobianThread::computeInternalInterFaceJacobian(), ComputeFullJacobianThread::computeJacobian(), ComputeJacobianThread::computeJacobian(), ComputeJacobianThread::onBoundary(), onBoundary(), ComputeMaterialsObjectThread::onBoundary(), ComputeUserObjectsThread::onBoundary(), ComputeMarkerThread::onElement(), ComputeElemDampingThread::onElement(), ComputeElemAuxVarsThread::onElement(), ComputeJacobianThread::onElement(), ComputeIndicatorThread::onElement(), onElement(), ComputeMaterialsObjectThread::onElement(), ComputeUserObjectsThread::onElement(), ComputeJacobianThread::onInterface(), onInterface(), ComputeJacobianThread::onInternalSide(), ComputeIndicatorThread::onInternalSide(), onInternalSide(), ComputeMaterialsObjectThread::onInternalSide(), ComputeUserObjectsThread::onInternalSide(), ComputeMarkerThread::post(), ComputeElemAuxVarsThread::post(), ComputeMaterialsObjectThread::post(), ComputeIndicatorThread::post(), ComputeJacobianThread::post(), post(), ComputeUserObjectsThread::post(), ComputeJacobianThread::postElement(), postElement(), ComputeJacobianBlocksThread::postElement(), ComputeUserObjectsThread::queryBoundary(), ComputeUserObjectsThread::querySubdomain(), ComputeMarkerThread::subdomainChanged(), ComputeElemAuxVarsThread::subdomainChanged(), ComputeJacobianThread::subdomainChanged(), ComputeIndicatorThread::subdomainChanged(), subdomainChanged(), ComputeMaterialsObjectThread::subdomainChanged(), and ComputeUserObjectsThread::subdomainChanged().


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