18 #include "libmesh/threads.h" 23 const std::set<TagID> & tags)
25 _fe_problem(fe_problem),
26 _aux_sys(fe_problem.getAuxiliarySystem()),
28 _nodal_kernels(nodal_kernels),
37 _fe_problem(x._fe_problem),
40 _nodal_kernels(x._nodal_kernels),
52 else if (
_tags.size() == 1)
61 const BndNode * bnode = *node_it;
71 Node * node = bnode->
_node;
74 std::set<TagID> needed_fe_var_vector_tags;
76 boundary_id, needed_fe_var_vector_tags,
_tid);
81 for (
const auto & nodal_kernel : objects)
82 nodal_kernel->computeResidual();
91 Threads::spin_mutex::scoped_lock lock(Threads::spin_mtx);
109 console <<
"[DBG] Executing nodal kernels contribution to residual on nodes on " << execute_on
111 console <<
"[DBG] Ordering of the nodal kernels on the nodes they are defined on:" << std::endl;
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 void pre() override
Called before the node range loop.
AuxiliarySystem & _aux_sys
FEProblemBase & _fe_problem
MooseObjectWarehouse< NodalKernelBase > * _nkernel_warehouse
const ExecFlagType & getCurrentExecuteOnFlag() const
Return/set the current execution flag.
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 void onNode(ConstBndNodeRange::const_iterator &node_it) override
Called for each node.
BoundaryID _bnd_id
boundary id for the node
Node * _node
pointer to the node
Specialization of SubProblem for solving nonlinear equations plus auxiliary equations.
void updateBoundaryFEVariableCoupledVectorTagDependency(BoundaryID id, std::set< TagID > &needed_fe_var_vector_tags, THREAD_ID tid=0) const
bool hasActiveBoundaryObjects(THREAD_ID tid=0) const
bool shouldPrintExecution(const THREAD_ID tid) const
Check whether the problem should output execution orders at this time.
boundary_id_type BoundaryID
const std::map< BoundaryID, std::vector< std::shared_ptr< T > > > & getActiveBoundaryObjects(THREAD_ID tid=0) const
std::vector< std::vector< MooseVariableFEBase * > > _nodal_vars
void printGeneralExecutionInformation() const override
Print information about the loop, mostly order of execution of objects.
const ConsoleStream & console() const
Return console handle.
ComputeNodalKernelBcsThread(FEProblemBase &fe_problem, MooseObjectTagWarehouse< NodalKernelBase > &nodal_kernels, const std::set< TagID > &tags)
bool hasActiveObjects(THREAD_ID tid=0) const
virtual unsigned int numVectorTags(const Moose::VectorTagType type=Moose::VECTOR_TAG_ANY) const
The total number of tags, which can be limited to the tag type.
MooseObjectWarehouse< T > & getVectorTagObjectWarehouse(TagID tag_id, THREAD_ID tid)
Retrieve a moose object warehouse in which every moose object has the given vector tag...
void join(const ComputeNodalKernelBcsThread &)
StoredRange< MooseMesh::const_bnd_node_iterator, const BndNode * > ConstBndNodeRange
Some useful StoredRange typedefs.
virtual void setActiveFEVariableCoupleableVectorTags(std::set< TagID > &vtags, const THREAD_ID tid) override
processor_id_type processor_id() const
virtual void reinitNodeFace(const Node *node, BoundaryID bnd_id, const THREAD_ID tid) override
virtual void addCachedResidual(const THREAD_ID tid) override
MooseObjectTagWarehouse< NodalKernelBase > & _nodal_kernels
const std::set< TagID > & _tags