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

#include <ComputeIndicatorThread.h>

Inheritance diagram for ComputeIndicatorThread:
[legend]

Public Member Functions

 ComputeIndicatorThread (FEProblemBase &fe_problem, bool finalize=false)
 
 ComputeIndicatorThread (ComputeIndicatorThread &x, Threads::split split)
 
virtual ~ComputeIndicatorThread ()
 
virtual void subdomainChanged () override
 Called every time the current subdomain changes (i.e. More...
 
virtual void onElement (const Elem *elem) override
 Assembly of the element (not including surface assembly) More...
 
virtual void onBoundary (const Elem *elem, unsigned int side, BoundaryID bnd_id) override
 Called when doing boundary assembling. More...
 
virtual void onInternalSide (const Elem *elem, unsigned int side) override
 Called when doing internal edge assembling. More...
 
virtual void postElement (const Elem *) override
 Called after the element assembly is done (including surface assembling) More...
 
virtual void post () override
 Called after the element range loop. More...
 
void join (const ComputeIndicatorThread &)
 
virtual void caughtMooseException (MooseException &e) override
 Called if a MooseException is caught anywhere during the computation. More...
 
virtual bool keepGoing () override
 Whether or not the loop should continue. More...
 
virtual void preElement (const Elem *elem) override
 Called before the element assembly. More...
 
virtual void preInternalSide (const Elem *elem, unsigned int side) override
 Called before evaluations on an element internal side. More...
 
virtual void preBoundary (const Elem *elem, unsigned int side, BoundaryID bnd_id) override
 Called before the boundary assembly. More...
 
virtual void neighborSubdomainChanged () override
 Called every time the neighbor subdomain changes (i.e. More...
 
virtual void operator() (const ConstElemRange &range, bool bypass_threading=false)
 
virtual void pre ()
 Called before the element range loop. More...
 
virtual void postInternalSide (const Elem *elem, unsigned int side)
 Called after evaluations on an element internal side. More...
 
virtual void onInterface (const Elem *elem, unsigned int side, BoundaryID bnd_id)
 Called when doing interface assembling. More...
 

Protected Attributes

FEProblemBase_fe_problem
 
AuxiliarySystem_aux_sys
 
const MooseObjectWarehouse< Indicator > & _indicator_whs
 Indicator Storage. More...
 
const MooseObjectWarehouse< InternalSideIndicator > & _internal_side_indicators
 InternalSideIndicator Storage. More...
 
bool _finalize
 
MooseMesh_mesh
 
THREAD_ID _tid
 
SubdomainID _subdomain
 The subdomain for the current element. More...
 
SubdomainID _old_subdomain
 The subdomain for the last element. More...
 
SubdomainID _neighbor_subdomain
 The subdomain for the current neighbor. More...
 
SubdomainID _old_neighbor_subdomain
 The subdomain for the last neighbor. More...
 

Detailed Description

Definition at line 20 of file ComputeIndicatorThread.h.

Constructor & Destructor Documentation

◆ ComputeIndicatorThread() [1/2]

ComputeIndicatorThread::ComputeIndicatorThread ( FEProblemBase fe_problem,
bool  finalize = false 
)
Parameters
fe_problemreference to the FEProblemBase we are computing on
sysreference to the AuxSystem we are computing on
indicator_whsWarehouse of Indicator objects.
finalizeWhether or not we are just in the "finalize" stage or not.

Definition at line 23 of file ComputeIndicatorThread.C.

◆ ComputeIndicatorThread() [2/2]

ComputeIndicatorThread::ComputeIndicatorThread ( ComputeIndicatorThread x,
Threads::split  split 
)

Definition at line 34 of file ComputeIndicatorThread.C.

36  _fe_problem(x._fe_problem),
37  _aux_sys(x._aux_sys),
38  _indicator_whs(x._indicator_whs),
39  _internal_side_indicators(x._internal_side_indicators),
40  _finalize(x._finalize)
41 {
42 }

◆ ~ComputeIndicatorThread()

ComputeIndicatorThread::~ComputeIndicatorThread ( )
virtual

Definition at line 44 of file ComputeIndicatorThread.C.

44 {}

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 }

◆ join()

void ComputeIndicatorThread::join ( const ComputeIndicatorThread )

Definition at line 182 of file ComputeIndicatorThread.C.

183 {
184 }

◆ 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 43 of file ThreadedElementLoop.h.

43 { return !_fe_problem.hasException(); }

◆ 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 110 of file ThreadedElementLoop.h.

◆ onBoundary()

void ComputeIndicatorThread::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 123 of file ComputeIndicatorThread.C.

126 {
127 }

◆ onElement()

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

Assembly of the element (not including surface assembly)

Parameters
elem- active element

Reimplemented from ThreadedElementLoopBase< ConstElemRange >.

Definition at line 68 of file ComputeIndicatorThread.C.

69 {
70  for (auto * var : _aux_sys._elem_vars[_tid])
71  var->prepareAux();
72 
73  _fe_problem.prepare(elem, _tid);
75 
76  // Set up Sentinel class so that, even if reinitMaterials() throws, we
77  // still remember to swap back during stack unwinding.
79 
81 
82  // Compute
83  if (!_finalize)
84  {
86  {
87  const std::vector<std::shared_ptr<Indicator>> & indicators =
89  for (const auto & indicator : indicators)
90  indicator->computeIndicator();
91  }
92  }
93 
94  // Finalize
95  else
96  {
98  {
99  const std::vector<std::shared_ptr<Indicator>> & indicators =
101  for (const auto & indicator : indicators)
102  indicator->finalize();
103  }
104 
106  {
107  const std::vector<std::shared_ptr<InternalSideIndicator>> & internal_indicators =
109  for (const auto & internal_indicator : internal_indicators)
110  internal_indicator->finalize();
111  }
112  }
113 
114  if (!_finalize) // During finalize the Indicators should be setting values in the vectors manually
115  {
116  Threads::spin_mutex::scoped_lock lock(Threads::spin_mtx);
117  for (auto * var : _aux_sys._elem_vars[_tid])
118  var->add(_aux_sys.solution());
119  }
120 }

◆ onInterface()

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

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 in ComputeUserObjectsThread, ComputeMaterialsObjectThread, ComputeResidualThread, and ComputeJacobianThread.

Definition at line 328 of file ThreadedElementLoopBase.h.

331 {
332 }

◆ onInternalSide()

void ComputeIndicatorThread::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 130 of file ComputeIndicatorThread.C.

131 {
132  if (_finalize) // If finalizing we only do something on the elements
133  return;
134 
135  // Pointer to the neighbor we are currently working on.
136  const Elem * neighbor = elem->neighbor_ptr(side);
137 
138  // Get the global id of the element and the neighbor
139  const dof_id_type elem_id = elem->id(), neighbor_id = neighbor->id();
140 
141  if ((neighbor->active() && (neighbor->level() == elem->level()) && (elem_id < neighbor_id)) ||
142  (neighbor->level() < elem->level()))
143  {
144  for (auto * var : _aux_sys._elem_vars[_tid])
145  var->prepareAux();
146 
147  SubdomainID block_id = elem->subdomain_id();
149  {
150  _fe_problem.reinitNeighbor(elem, side, _tid);
151 
152  // Set up Sentinels so that, even if one of the reinitMaterialsXXX() calls throws, we
153  // still remember to swap back during stack unwinding.
156 
157  SwapBackSentinel neighbor_sentinel(
159  _fe_problem.reinitMaterialsNeighbor(neighbor->subdomain_id(), _tid);
160 
161  const std::vector<std::shared_ptr<InternalSideIndicator>> & indicators =
163  for (const auto & indicator : indicators)
164  indicator->computeIndicator();
165  }
166  }
167 }

◆ operator()()

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

Definition at line 181 of file ThreadedElementLoopBase.h.

182 {
183  try
184  {
185  try
186  {
187  ParallelUniqueId puid;
188  _tid = bypass_threading ? 0 : puid.id;
189 
190  pre();
191 
194  typename RangeType::const_iterator el = range.begin();
195  for (el = range.begin(); el != range.end(); ++el)
196  {
197  if (!keepGoing())
198  break;
199 
200  const Elem * elem = *el;
201 
202  preElement(elem);
203 
205  _subdomain = elem->subdomain_id();
206  if (_subdomain != _old_subdomain)
208 
209  onElement(elem);
210 
211  for (unsigned int side = 0; side < elem->n_sides(); side++)
212  {
213  std::vector<BoundaryID> boundary_ids = _mesh.getBoundaryIDs(elem, side);
214 
215  if (boundary_ids.size() > 0)
216  for (std::vector<BoundaryID>::iterator it = boundary_ids.begin();
217  it != boundary_ids.end();
218  ++it)
219  {
220  preBoundary(elem, side, *it);
221  onBoundary(elem, side, *it);
222  }
223 
224  const Elem * neighbor = elem->neighbor_ptr(side);
225  if (neighbor != nullptr)
226  {
227  preInternalSide(elem, side);
228 
230  _neighbor_subdomain = neighbor->subdomain_id();
233 
234  onInternalSide(elem, side);
235 
236  if (boundary_ids.size() > 0)
237  for (std::vector<BoundaryID>::iterator it = boundary_ids.begin();
238  it != boundary_ids.end();
239  ++it)
240  onInterface(elem, side, *it);
241 
242  postInternalSide(elem, side);
243  }
244  } // sides
245  postElement(elem);
246 
247  } // range
248 
249  post();
250  }
251  catch (libMesh::LogicError & e)
252  {
253  throw MooseException("We caught a libMesh error in ThreadedElementLoopBase");
254  }
255  }
256  catch (MooseException & e)
257  {
259  }
260 }

◆ post()

void ComputeIndicatorThread::post ( )
overridevirtual

Called after the element range loop.

Reimplemented from ThreadedElementLoopBase< ConstElemRange >.

Definition at line 175 of file ComputeIndicatorThread.C.

◆ postElement()

void ComputeIndicatorThread::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 170 of file ComputeIndicatorThread.C.

171 {
172 }

◆ 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'

Reimplemented in ComputeJacobianBlocksThread.

Definition at line 316 of file ThreadedElementLoopBase.h.

317 {
318 }

◆ pre()

void ThreadedElementLoopBase< ConstElemRange >::pre ( )
virtualinherited

Called before the element range loop.

Definition at line 264 of file ThreadedElementLoopBase.h.

265 {
266 }

◆ preBoundary()

void ThreadedElementLoop< ConstElemRange >::preBoundary ( const Elem *  elem,
unsigned int  side,
BoundaryID  bnd_id 
)
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

Reimplemented from ThreadedElementLoopBase< ConstElemRange >.

Definition at line 101 of file ThreadedElementLoop.h.

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

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

◆ subdomainChanged()

void ComputeIndicatorThread::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 47 of file ComputeIndicatorThread.C.

48 {
50 
53 
54  std::set<MooseVariableFEBase *> needed_moose_vars;
55  _indicator_whs.updateVariableDependency(needed_moose_vars, _tid);
58 
59  std::set<unsigned int> needed_mat_props;
60  _indicator_whs.updateMatPropDependency(needed_mat_props, _tid);
62  _fe_problem.setActiveMaterialProperties(needed_mat_props, _tid);
63 
65 }

Member Data Documentation

◆ _aux_sys

AuxiliarySystem& ComputeIndicatorThread::_aux_sys
protected

Definition at line 47 of file ComputeIndicatorThread.h.

Referenced by onElement(), and onInternalSide().

◆ _fe_problem

FEProblemBase& ComputeIndicatorThread::_fe_problem
protected

Definition at line 46 of file ComputeIndicatorThread.h.

Referenced by onElement(), onInternalSide(), post(), and subdomainChanged().

◆ _finalize

bool ComputeIndicatorThread::_finalize
protected

Definition at line 55 of file ComputeIndicatorThread.h.

Referenced by onElement(), and onInternalSide().

◆ _indicator_whs

const MooseObjectWarehouse<Indicator>& ComputeIndicatorThread::_indicator_whs
protected

Indicator Storage.

Definition at line 50 of file ComputeIndicatorThread.h.

Referenced by onElement(), and subdomainChanged().

◆ _internal_side_indicators

const MooseObjectWarehouse<InternalSideIndicator>& ComputeIndicatorThread::_internal_side_indicators
protected

◆ _mesh

MooseMesh& ThreadedElementLoopBase< ConstElemRange >::_mesh
protectedinherited

Definition at line 146 of file ThreadedElementLoopBase.h.

◆ _neighbor_subdomain

SubdomainID ThreadedElementLoopBase< ConstElemRange >::_neighbor_subdomain
protectedinherited

The subdomain for the current neighbor.

Definition at line 156 of file ThreadedElementLoopBase.h.

◆ _old_neighbor_subdomain

SubdomainID ThreadedElementLoopBase< ConstElemRange >::_old_neighbor_subdomain
protectedinherited

The subdomain for the last neighbor.

Definition at line 159 of file ThreadedElementLoopBase.h.

◆ _old_subdomain

SubdomainID ThreadedElementLoopBase< ConstElemRange >::_old_subdomain
protectedinherited

The subdomain for the last element.

Definition at line 153 of file ThreadedElementLoopBase.h.

◆ _subdomain

SubdomainID ThreadedElementLoopBase< ConstElemRange >::_subdomain
protectedinherited

The subdomain for the current element.

Definition at line 150 of file ThreadedElementLoopBase.h.

◆ _tid

THREAD_ID ThreadedElementLoopBase< ConstElemRange >::_tid
protectedinherited

Definition at line 147 of file ThreadedElementLoopBase.h.


The documentation for this class was generated from the following files:
ThreadedElementLoopBase< ConstElemRange >::onBoundary
virtual void onBoundary(const Elem *elem, unsigned int side, BoundaryID bnd_id)
Called when doing boundary assembling.
Definition: ThreadedElementLoopBase.h:302
ThreadedElementLoopBase< ConstElemRange >::post
virtual void post()
Called after the element range loop.
Definition: ThreadedElementLoopBase.h:270
AuxiliarySystem::solution
NumericVector< Number > & solution() override
Definition: AuxiliarySystem.h:161
ComputeIndicatorThread::_finalize
bool _finalize
Definition: ComputeIndicatorThread.h:55
FEProblemBase::reinitMaterials
virtual void reinitMaterials(SubdomainID blk_id, THREAD_ID tid, bool swap_stateful=true)
Definition: FEProblemBase.C:2933
FEProblemBase::reinitMaterialsFace
virtual void reinitMaterialsFace(SubdomainID blk_id, THREAD_ID tid, bool swap_stateful=true)
Definition: FEProblemBase.C:2957
ThreadedElementLoopBase< ConstElemRange >::onElement
virtual void onElement(const Elem *elem)
Assembly of the element (not including surface assembly)
Definition: ThreadedElementLoopBase.h:276
ThreadedElementLoop< ConstElemRange >
MooseUtils::split
std::vector< std::string > split(const std::string &str, const std::string &delimiter)
Python like split function for strings.
Definition: MooseUtils.C:753
SubProblem::setCurrentBoundaryID
void setCurrentBoundaryID(BoundaryID bid, THREAD_ID tid)
sets the current boundary ID in assembly
Definition: SubProblem.C:609
ThreadedElementLoopBase< ConstElemRange >::neighborSubdomainChanged
virtual void neighborSubdomainChanged()
Called every time the neighbor subdomain changes (i.e.
Definition: ThreadedElementLoopBase.h:342
FEProblemBase::getIndicatorWarehouse
const MooseObjectWarehouse< Indicator > & getIndicatorWarehouse()
Return indicator/marker storage.
Definition: FEProblemBase.h:1309
FEProblemBase::swapBackMaterialsFace
virtual void swapBackMaterialsFace(THREAD_ID tid)
Definition: FEProblemBase.C:3079
MooseObjectWarehouse::subdomainSetup
virtual void subdomainSetup(THREAD_ID tid=0) const
Definition: MooseObjectWarehouse.h:181
FEProblemBase::clearActiveMaterialProperties
virtual void clearActiveMaterialProperties(THREAD_ID tid) override
Clear the active material properties.
Definition: FEProblemBase.C:4383
MooseObjectWarehouseBase::updateVariableDependency
void updateVariableDependency(std::set< MooseVariableFEBase * > &needed_moose_vars, THREAD_ID tid=0) const
Update variable dependency vector.
Definition: MooseObjectWarehouseBase.h:553
MooseException
Provides a way for users to bail out of the current solve.
Definition: MooseException.h:20
ParallelUniqueId
Definition: ParallelUniqueId.h:29
ThreadedElementLoopBase< ConstElemRange >::preInternalSide
virtual void preInternalSide(const Elem *elem, unsigned int side)
Called before evaluations on an element internal side.
Definition: ThreadedElementLoopBase.h:310
FEProblemBase::swapBackMaterials
virtual void swapBackMaterials(THREAD_ID tid)
Definition: FEProblemBase.C:3072
FEProblemBase::neighborSubdomainSetup
virtual void neighborSubdomainSetup(SubdomainID subdomain, THREAD_ID tid)
Definition: FEProblemBase.C:1854
ComputeIndicatorThread::_fe_problem
FEProblemBase & _fe_problem
Definition: ComputeIndicatorThread.h:46
FEProblemBase::setCurrentSubdomainID
virtual void setCurrentSubdomainID(const Elem *elem, THREAD_ID tid) override
Definition: FEProblemBase.C:1289
ThreadedElementLoop< ConstElemRange >::_fe_problem
FEProblemBase & _fe_problem
Definition: ThreadedElementLoop.h:54
ThreadedElementLoopBase< ConstElemRange >::pre
virtual void pre()
Called before the element range loop.
Definition: ThreadedElementLoopBase.h:264
FEProblemBase::reinitNeighbor
virtual void reinitNeighbor(const Elem *elem, unsigned int side, THREAD_ID tid) override
Definition: FEProblemBase.C:1734
ThreadedElementLoopBase< ConstElemRange >::subdomainChanged
virtual void subdomainChanged()
Called every time the current subdomain changes (i.e.
Definition: ThreadedElementLoopBase.h:336
ThreadedElementLoopBase< ConstElemRange >::postInternalSide
virtual void postInternalSide(const Elem *elem, unsigned int side)
Called after evaluations on an element internal side.
Definition: ThreadedElementLoopBase.h:316
x
static PetscErrorCode Vec x
Definition: PetscDMMoose.C:1263
ComputeIndicatorThread::_indicator_whs
const MooseObjectWarehouse< Indicator > & _indicator_whs
Indicator Storage.
Definition: ComputeIndicatorThread.h:50
FEProblemBase::setNeighborSubdomainID
virtual void setNeighborSubdomainID(const Elem *elem, unsigned int side, THREAD_ID tid) override
Definition: FEProblemBase.C:1298
ThreadedElementLoopBase< ConstElemRange >::onInterface
virtual void onInterface(const Elem *elem, unsigned int side, BoundaryID bnd_id)
Called when doing interface assembling.
Definition: ThreadedElementLoopBase.h:328
ThreadedElementLoopBase
Base class for assembly-like calculations.
Definition: ThreadedElementLoopBase.h:23
ThreadedElementLoopBase< ConstElemRange >::postElement
virtual void postElement(const Elem *elem)
Called after the element assembly is done (including surface assembling)
Definition: ThreadedElementLoopBase.h:288
FEProblemBase::reinitElem
virtual void reinitElem(const Elem *elem, THREAD_ID tid) override
Definition: FEProblemBase.C:1620
ThreadedElementLoopBase< ConstElemRange >::_tid
THREAD_ID _tid
Definition: ThreadedElementLoopBase.h:147
FEProblemBase::subdomainSetup
virtual void subdomainSetup(SubdomainID subdomain, THREAD_ID tid)
Definition: FEProblemBase.C:1839
FEProblemBase::swapBackMaterialsNeighbor
virtual void swapBackMaterialsNeighbor(THREAD_ID tid)
Definition: FEProblemBase.C:3087
ThreadedElementLoopBase< ConstElemRange >::onInternalSide
virtual void onInternalSide(const Elem *elem, unsigned int side)
Called when doing internal edge assembling.
Definition: ThreadedElementLoopBase.h:322
Moose::INVALID_BLOCK_ID
const SubdomainID INVALID_BLOCK_ID
Definition: MooseTypes.C:18
FEProblemBase::setException
virtual void setException(const std::string &message)
Set an exception.
Definition: FEProblemBase.C:4655
ThreadedElementLoopBase< ConstElemRange >::preBoundary
virtual void preBoundary(const Elem *elem, unsigned int side, BoundaryID bnd_id)
Called before the boundary assembly.
Definition: ThreadedElementLoopBase.h:294
MooseObjectWarehouseBase::getActiveBlockObjects
const std::map< SubdomainID, std::vector< std::shared_ptr< T > > > & getActiveBlockObjects(THREAD_ID tid=0) const
Definition: MooseObjectWarehouseBase.h:387
FEProblemBase::getInternalSideIndicatorWarehouse
const MooseObjectWarehouse< InternalSideIndicator > & getInternalSideIndicatorWarehouse()
Definition: FEProblemBase.h:1310
SubdomainID
subdomain_id_type SubdomainID
Definition: AutomaticMortarGeneration.h:48
threaded_element_mutex
static Threads::spin_mutex threaded_element_mutex
This mutex is used by all derived classes of the ThreadedElementLoop.
Definition: ThreadedElementLoop.h:17
MooseObjectWarehouseBase::hasActiveBlockObjects
bool hasActiveBlockObjects(THREAD_ID tid=0) const
Definition: MooseObjectWarehouseBase.h:422
FEProblemBase::hasException
virtual bool hasException()
Whether or not an exception has occurred.
Definition: FEProblemBase.h:412
ParallelUniqueId::id
THREAD_ID id
Definition: ParallelUniqueId.h:82
ThreadedElementLoopBase< ConstElemRange >::_mesh
MooseMesh & _mesh
Definition: ThreadedElementLoopBase.h:146
ComputeIndicatorThread::_aux_sys
AuxiliarySystem & _aux_sys
Definition: ComputeIndicatorThread.h:47
MooseException::what
virtual const char * what() const
Get out the error message.
Definition: MooseException.h:60
ThreadedElementLoopBase< ConstElemRange >::_old_neighbor_subdomain
SubdomainID _old_neighbor_subdomain
The subdomain for the last neighbor.
Definition: ThreadedElementLoopBase.h:159
ThreadedElementLoopBase< ConstElemRange >::_old_subdomain
SubdomainID _old_subdomain
The subdomain for the last element.
Definition: ThreadedElementLoopBase.h:153
FEProblemBase::prepare
virtual void prepare(const Elem *elem, THREAD_ID tid) override
Definition: FEProblemBase.C:1227
FEProblemBase::prepareMaterials
virtual void prepareMaterials(SubdomainID blk_id, THREAD_ID tid)
Add the MooseVariables that the current materials depend on to the dependency list.
Definition: FEProblemBase.C:2892
ThreadedElementLoopBase< ConstElemRange >::preElement
virtual void preElement(const Elem *elem)
Called before the element assembly.
Definition: ThreadedElementLoopBase.h:282
ComputeIndicatorThread::_internal_side_indicators
const MooseObjectWarehouse< InternalSideIndicator > & _internal_side_indicators
InternalSideIndicator Storage.
Definition: ComputeIndicatorThread.h:53
MooseObjectWarehouseBase::updateMatPropDependency
void updateMatPropDependency(std::set< unsigned int > &needed_mat_props, THREAD_ID tid=0) const
Update material property dependency vector.
Definition: MooseObjectWarehouseBase.h:610
ThreadedElementLoopBase< ConstElemRange >::caughtMooseException
virtual void caughtMooseException(MooseException &)
Called if a MooseException is caught anywhere during the computation.
Definition: ThreadedElementLoopBase.h:136
ThreadedElementLoopBase< ConstElemRange >::_subdomain
SubdomainID _subdomain
The subdomain for the current element.
Definition: ThreadedElementLoopBase.h:150
FEProblemBase::getAuxiliarySystem
AuxiliarySystem & getAuxiliarySystem()
Definition: FEProblemBase.h:648
SwapBackSentinel
The "SwapBackSentinel" class's destructor guarantees that FEProblemBase::swapBackMaterials{Face,...
Definition: SwapBackSentinel.h:32
FEProblemBase::setActiveMaterialProperties
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.
Definition: FEProblemBase.C:4373
FEProblemBase::reinitMaterialsNeighbor
virtual void reinitMaterialsNeighbor(SubdomainID blk_id, THREAD_ID tid, bool swap_stateful=true)
Definition: FEProblemBase.C:2987
AuxiliarySystem::_elem_vars
std::vector< std::vector< MooseVariableFEBase * > > _elem_vars
Definition: AuxiliarySystem.h:235
FEProblemBase::clearActiveElementalMooseVariables
virtual void clearActiveElementalMooseVariables(THREAD_ID tid) override
Clear the active elemental MooseVariableFEBase.
Definition: FEProblemBase.C:4328
FEProblemBase::setActiveElementalMooseVariables
virtual void setActiveElementalMooseVariables(const std::set< MooseVariableFEBase * > &moose_vars, THREAD_ID tid) override
Set the MOOSE variables to be reinited on each element.
Definition: FEProblemBase.C:4318
MooseMesh::getBoundaryIDs
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:2169
ThreadedElementLoopBase< ConstElemRange >::_neighbor_subdomain
SubdomainID _neighbor_subdomain
The subdomain for the current neighbor.
Definition: ThreadedElementLoopBase.h:156
ThreadedElementLoopBase< ConstElemRange >::keepGoing
virtual bool keepGoing()
Whether or not the loop should continue.
Definition: ThreadedElementLoopBase.h:143