54 printGeneralExecutionInformation();
56 for (
const auto & belem : range)
58 const Elem * elem = belem->_elem;
59 unsigned short int side = belem->_side;
61 SubdomainID last_sub_id = Elem::invalid_subdomain_id;
64 _fe_problem.setCurrentBoundaryID(boundary_id, _tid);
66 if (elem->processor_id() == _fe_problem.processor_id())
70 std::vector<AuxKernelType *> kernels;
71 _query_boundary.queryInto(
72 kernels, _tid, std::make_tuple(boundary_id,
true));
76 printBoundaryExecutionInformation(boundary_id, kernels);
77 const auto sub_id = elem->subdomain_id();
78 if (sub_id != last_sub_id)
80 _fe_problem.subdomainSetup(sub_id, _tid);
83 _fe_problem.setCurrentSubdomainID(elem, _tid);
84 _fe_problem.prepare(elem, _tid);
85 _fe_problem.reinitElemFace(elem, side, _tid);
87 const Elem * lower_d_elem = _fe_problem.mesh().getLowerDElem(elem, side);
88 _fe_problem.setCurrentLowerDElem(lower_d_elem, _tid);
90 _fe_problem.reinitLowerDElem(lower_d_elem, _tid);
92 const Elem * neighbor = elem->neighbor_ptr(side);
97 bool compute_interface =
98 neighbor && neighbor->active() &&
99 _fe_problem.getInterfaceMaterialsWarehouse().hasActiveBoundaryObjects(boundary_id,
110 std::unordered_set<unsigned int> needed_mat_props;
111 for (
const auto & aux : kernels)
113 const auto & mp_deps = aux->getMatPropDependencies();
114 needed_mat_props.insert(mp_deps.begin(), mp_deps.end());
116 _fe_problem.setActiveMaterialProperties(needed_mat_props, _tid);
118 _fe_problem.reinitMaterialsFaceOnBoundary(boundary_id, sub_id, _tid);
120 _fe_problem.reinitMaterialsBoundary(boundary_id, _tid);
122 if (compute_interface)
124 _fe_problem.reinitNeighbor(elem, side, _tid);
125 _fe_problem.reinitMaterialsNeighbor(neighbor->subdomain_id(), _tid);
126 _fe_problem.reinitMaterialsInterface(boundary_id, _tid);
130 for (
const auto & aux : kernels)
132 aux->determineWhetherCoincidentLowerDCalc();
138 _fe_problem.clearActiveMaterialProperties(_tid);
171 unsigned int boundary_id,
const std::vector<AuxKernelType *> & kernels)
const
173 if (!_fe_problem.shouldPrintExecution(_tid) || _boundaries_exec_printed.count(boundary_id))
176 const auto & console = _fe_problem.console();
177 console <<
"[DBG] Ordering on boundary " << boundary_id << std::endl;
178 std::vector<MooseObject *> objs_ptrs;
179 for (
auto * kernel_ptr : kernels)
180 if (kernel_ptr->hasBoundary(boundary_id))
181 objs_ptrs.push_back(
dynamic_cast<MooseObject *
>(kernel_ptr));
184 _boundaries_exec_printed.insert(boundary_id);