17 #include <unordered_set> 20 #include "libmesh/elem_range.h" 21 #include "libmesh/threads.h" 22 #include "libmesh/system.h" 51 const std::unordered_set<unsigned int> & requested_variables);
61 using ElemInfoRange = StoredRange<MooseMesh::const_elem_info_iterator, const ElemInfo *>;
86 const std::vector<std::unique_ptr<NumericVector<Number>>> &
_raw_gradient;
GradientLimiterType
Cell-gradient limiter variants used for MUSCL-style reconstructions.
const libMesh::System & _libmesh_system
Reference to the libMesh system backing the wrapper system.
ComputeLinearFVLimitedGradientThread(FEProblemBase &fe_problem, SystemBase &system, const std::vector< std::unique_ptr< NumericVector< Number >>> &raw_gradient, std::vector< std::unique_ptr< NumericVector< Number >>> &temporary_limited_gradient, const Moose::FV::GradientLimiterType limiter_type, const std::unordered_set< unsigned int > &requested_variables)
Class constructor.
Compute limited cell gradients for linear FV variables.
Base class for a system (of equations)
Specialization of SubProblem for solving nonlinear equations plus auxiliary equations.
const std::unordered_set< unsigned int > & _requested_variables
Variable numbers that requested the current limiter.
void join(const ComputeLinearFVLimitedGradientThread &y)
Join threads at the end of the execution.
const unsigned int _system_number
Global system number in the libMesh equation system.
FEProblemBase & _fe_problem
Reference to the problem.
std::vector< std::unique_ptr< NumericVector< Number > > > & _temporary_limited_gradient
Reference to the temporary limited gradient storage.
const Moose::FV::GradientLimiterType _limiter_type
The type of the limiter we requested.
void operator()(const ElemInfoRange &range)
Operator which is used to execute the thread over a certain iterator range.
SystemBase & _system
The system wrapper this thread operates on.
const unsigned int _dim
The dimension of the domain.
StoredRange< MooseMesh::const_elem_info_iterator, const ElemInfo * > ElemInfoRange
MooseLinearVariableFV< Real > * _current_var
Pointer to the current variable we are operating on.
const std::vector< std::unique_ptr< NumericVector< Number > > > & _raw_gradient
Reference to the raw gradient storage used as input for limiting.