ComputeNodalKernelsThread::ComputeNodalKernelsThread(FEProblemBase & fe_problem, const MooseObjectWarehouse<NodalKernel> & nodal_kernels) : ThreadedNodeLoop<ConstNodeRange, ConstNodeRange::const_iterator>(fe_problem), _aux_sys(fe_problem.getAuxiliarySystem()), _nodal_kernels(nodal_kernels), _num_cached(0) { }
ComputeIndicatorThread::ComputeIndicatorThread(FEProblemBase & fe_problem, bool finalize) : ThreadedElementLoop<ConstElemRange>(fe_problem), _fe_problem(fe_problem), _aux_sys(fe_problem.getAuxiliarySystem()), _indicator_whs(_fe_problem.getIndicatorWarehouse()), _internal_side_indicators(_fe_problem.getInternalSideIndicatorWarehouse()), _finalize(finalize) { }
ComputeElemAuxVarsThread::ComputeElemAuxVarsThread(FEProblemBase & problem, const MooseObjectWarehouse<AuxKernel> & storage, bool need_materials) : ThreadedElementLoop<ConstElemRange>(problem), _aux_sys(problem.getAuxiliarySystem()), _aux_kernels(storage), _need_materials(need_materials) { }
ComputeNodalKernelBCJacobiansThread::ComputeNodalKernelBCJacobiansThread(FEProblemBase & fe_problem, const MooseObjectWarehouse<NodalKernel> & nodal_kernels, SparseMatrix<Number> & jacobian) : ThreadedNodeLoop<ConstBndNodeRange, ConstBndNodeRange::const_iterator>(fe_problem), _aux_sys(fe_problem.getAuxiliarySystem()), _nodal_kernels(nodal_kernels), _jacobian(jacobian), _num_cached(0) { }
ComputeNodalKernelBcsThread::ComputeNodalKernelBcsThread( FEProblemBase & fe_problem, MooseObjectTagWarehouse<NodalKernel> & nodal_kernels, const std::set<TagID> & tags) : ThreadedNodeLoop<ConstBndNodeRange, ConstBndNodeRange::const_iterator>(fe_problem), _fe_problem(fe_problem), _aux_sys(fe_problem.getAuxiliarySystem()), _tags(tags), _nodal_kernels(nodal_kernels), _num_cached(0) { }
UpdateErrorVectorsThread::UpdateErrorVectorsThread( FEProblemBase & fe_problem, const std::map<std::string, std::unique_ptr<ErrorVector>> & indicator_field_to_error_vector) : ThreadedElementLoop<ConstElemRange>(fe_problem), _indicator_field_to_error_vector(indicator_field_to_error_vector), _aux_sys(fe_problem.getAuxiliarySystem()), _system_number(_aux_sys.number()), _adaptivity(fe_problem.adaptivity()), _solution(_aux_sys.solution()) { // Build up this map once so we don't have to do these lookups over and over again for (const auto & it : _indicator_field_to_error_vector) { unsigned int var_num = _aux_sys.getVariable(0, it.first).number(); _indicator_field_number_to_error_vector.emplace(var_num, it.second.get()); } }