#include <ComputeNodalKernelBcsThread.h>
◆ ComputeNodalKernelBcsThread() [1/2]
Definition at line 20 of file ComputeNodalKernelBcsThread.C.
AuxiliarySystem & _aux_sys
FEProblemBase & _fe_problem
MooseObjectTagWarehouse< NodalKernel > & _nodal_kernels
AuxiliarySystem & getAuxiliarySystem()
const std::set< TagID > & _tags
◆ ComputeNodalKernelBcsThread() [2/2]
Definition at line 34 of file ComputeNodalKernelBcsThread.C.
AuxiliarySystem & _aux_sys
FEProblemBase & _fe_problem
static PetscErrorCode Vec x
std::vector< std::string > split(const std::string &str, const std::string &delimiter)
Python like split function for strings.
MooseObjectTagWarehouse< NodalKernel > & _nodal_kernels
const std::set< TagID > & _tags
◆ caughtMooseException()
Called if a MooseException is caught anywhere during the computation.
The single input parameter taken is a MooseException object.
Definition at line 55 of file ThreadedNodeLoop.h.
57 std::string what(e.
what());
virtual const char * what() const
Get out the error message.
virtual void setException(const std::string &message)
Set an exception.
FEProblemBase & _fe_problem
◆ join()
◆ keepGoing()
Whether or not the loop should continue.
- Returns
- true to keep going, false to stop.
Definition at line 66 of file ThreadedNodeLoop.h.
FEProblemBase & _fe_problem
virtual bool hasException()
Whether or not an exception has occurred.
◆ onNode()
void ComputeNodalKernelBcsThread::onNode |
( |
ConstBndNodeRange::const_iterator & |
node_it | ) |
|
|
overridevirtual |
Called for each node.
Reimplemented from ThreadedNodeLoop< ConstBndNodeRange, ConstBndNodeRange::const_iterator >.
Definition at line 59 of file ComputeNodalKernelBcsThread.C.
61 const BndNode * bnode = *node_it;
74 Node * node = bnode->
_node;
75 if (node->processor_id() ==
_fe_problem.processor_id())
79 for (
const auto & nodal_kernel : objects)
80 nodal_kernel->computeResidual();
89 Threads::spin_mutex::scoped_lock lock(Threads::spin_mtx);
AuxiliarySystem & _aux_sys
FEProblemBase & _fe_problem
std::vector< std::map< std::string, MooseVariable * > > _nodal_vars
MooseObjectWarehouse< NodalKernel > * _nkernel_warehouse
BoundaryID _bnd_id
boundary id for the node
Node * _node
pointer to the node
bool hasActiveBoundaryObjects(THREAD_ID tid=0) const
virtual void addCachedResidual(THREAD_ID tid) override
virtual void reinitNodeFace(const Node *node, BoundaryID bnd_id, THREAD_ID tid) override
const std::map< BoundaryID, std::vector< std::shared_ptr< T > > > & getActiveBoundaryObjects(THREAD_ID tid=0) const
boundary_id_type BoundaryID
void prepareAux() override
◆ operator()()
Definition at line 88 of file ThreadedNodeLoop.h.
97 for (IteratorType nd = range.begin(); nd != range.end(); ++nd)
virtual void caughtMooseException(MooseException &e)
Called if a MooseException is caught anywhere during the computation.
virtual bool keepGoing()
Whether or not the loop should continue.
Provides a way for users to bail out of the current solve.
virtual void pre()
Called before the node range loop.
virtual void post()
Called after the node range loop.
virtual void postNode(ConstBndNodeRange::const_iterator &node_it)
Called after the node assembly is done (including surface assembling)
virtual void onNode(ConstBndNodeRange::const_iterator &node_it)
Called for each node.
◆ post()
◆ postNode()
Called after the node assembly is done (including surface assembling)
- Parameters
-
Definition at line 135 of file ThreadedNodeLoop.h.
◆ pre()
void ComputeNodalKernelBcsThread::pre |
( |
| ) |
|
|
overridevirtual |
Called before the node range loop.
Reimplemented from ThreadedNodeLoop< ConstBndNodeRange, ConstBndNodeRange::const_iterator >.
Definition at line 46 of file ComputeNodalKernelBcsThread.C.
52 else if (
_tags.size() == 1)
FEProblemBase & _fe_problem
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...
MooseObjectWarehouse< NodalKernel > * _nkernel_warehouse
virtual unsigned int numVectorTags()
The total number of tags.
MooseObjectTagWarehouse< NodalKernel > & _nodal_kernels
MooseObjectWarehouse< T > & getVectorTagObjectWarehouse(TagID tag_id, THREAD_ID tid)
Retrieve a moose object warehouse in which every moose object has the given vector tag...
const std::set< TagID > & _tags
◆ _aux_sys
◆ _fe_problem
◆ _nkernel_warehouse
◆ _nodal_kernels
◆ _num_cached
unsigned int ComputeNodalKernelBcsThread::_num_cached |
|
protected |
◆ _tags
const std::set<TagID>& ComputeNodalKernelBcsThread::_tags |
|
protected |
◆ _tid
The documentation for this class was generated from the following files: