Line data Source code
1 : //* This file is part of the MOOSE framework 2 : //* https://mooseframework.inl.gov 3 : //* 4 : //* All rights reserved, see COPYRIGHT for full restrictions 5 : //* https://github.com/idaholab/moose/blob/master/COPYRIGHT 6 : //* 7 : //* Licensed under LGPL 2.1, please see LICENSE for details 8 : //* https://www.gnu.org/licenses/lgpl-2.1.html 9 : 10 : #pragma once 11 : 12 : #include "MooseTypes.h" 13 : 14 : #include "libmesh/elem_range.h" 15 : #include "libmesh/enum_order.h" 16 : #include "libmesh/enum_quadrature_type.h" 17 : 18 : // Forward declarations 19 : class FEProblemBase; 20 : 21 : /** 22 : * This class determines the maximum number of Quadrature Points and 23 : * Shape Functions used for a given simulation based on the variable 24 : * discretizations, and quadrature rules used for all variables in the 25 : * system. 26 : */ 27 : class MaxQpsThread 28 : { 29 : public: 30 : MaxQpsThread(FEProblemBase & fe_problem); 31 : 32 : // Splitting Constructor 33 : MaxQpsThread(MaxQpsThread & x, Threads::split split); 34 : 35 : void operator()(const libMesh::ConstElemRange & range); 36 : 37 : void join(const MaxQpsThread & y); 38 : 39 57708 : unsigned int max() const { return _max; } 40 : 41 : protected: 42 : FEProblemBase & _fe_problem; 43 : 44 : THREAD_ID _tid; 45 : 46 : /// Maximum number of qps encountered 47 : unsigned int _max; 48 : };