48 std::set<TagID> needed_vector_tags;
49 std::set<TagID> needed_matrix_tags;
51 for (
const auto & block : _block_ids)
53 std::vector<AuxKernelType *> block_kernels;
54 _query_subdomain.queryInto(block_kernels, _tid, block);
56 if (block_kernels.size())
57 for (
const auto & aux : block_kernels)
59 auto & matrix_tags = aux->getFEVariableCoupleableMatrixTags();
60 needed_matrix_tags.insert(matrix_tags.begin(), matrix_tags.end());
61 auto & vector_tags = aux->getFEVariableCoupleableVectorTags();
62 needed_vector_tags.insert(vector_tags.begin(), vector_tags.end());
66 _fe_problem.setActiveFEVariableCoupleableMatrixTags(needed_matrix_tags, _tid);
67 _fe_problem.setActiveFEVariableCoupleableVectorTags(needed_vector_tags, _tid);
74 const Node * node = *node_it;
76 const auto & block_ids = _aux_sys.mesh().getNodeBlockIds(*node);
78 if (_block_ids != block_ids)
81 _block_ids.insert(block_ids.begin(), block_ids.end());
85 _fe_problem.reinitNode(node, _tid);
89 for (
const auto & block : _block_ids)
91 std::vector<AuxKernelType *> block_kernels;
92 _query_subdomain.queryInto(block_kernels, _tid, block);
94 if (block_kernels.size())
95 for (
const auto & aux : block_kernels)
101 if (aux->variable().isNodalDefined())
102 aux->variable().insert(_aux_sys.solution());
105 if (aux->hasWritableCoupledVariables())
107 for (
auto * var : aux->getWritableCoupledVariables())
108 if (var->isNodalDefined())
110 var->insert(_aux_sys.solution());
113 _fe_problem.reinitNode(node, _tid);
137 if (!_fe_problem.shouldPrintExecution(_tid))
140 std::vector<AuxKernelType *> all_kernels;
143 _all_kernels_query.clone().condition<
AttribThread>(_tid).queryInto(all_kernels);
144 if (all_kernels.empty())
147 const auto & console = _fe_problem.console();
148 const auto & execute_on = _fe_problem.getCurrentExecuteOnFlag();
149 console <<
"[DBG] Beginning nodal loop of nodal " << MooseUtils::prettyCppType<AuxKernelType>()
150 <<
" on " << execute_on << std::endl;
151 console <<
"[DBG] Ordering of the kernels on each block they are defined on:" << std::endl;
153 printExecutionOrdering<AuxKernelType>(all_kernels,
false);