www.mooseframework.org
MaxQpsThread.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* DO NOT MODIFY THIS HEADER */
3 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
4 /* */
5 /* (c) 2010 Battelle Energy Alliance, LLC */
6 /* ALL RIGHTS RESERVED */
7 /* */
8 /* Prepared by Battelle Energy Alliance, LLC */
9 /* Under Contract No. DE-AC07-05ID14517 */
10 /* With the U. S. Department of Energy */
11 /* */
12 /* See COPYRIGHT for full restrictions */
13 /****************************************************************/
14 
15 #ifndef MAXQPSTHREAD_H
16 #define MAXQPSTHREAD_H
17 
18 #include "MooseTypes.h"
19 
20 #include "libmesh/elem_range.h"
21 #include "libmesh/enum_order.h"
22 #include "libmesh/enum_quadrature_type.h"
23 
24 // Forward declarations
25 class FEProblemBase;
26 
34 {
35 public:
36  MaxQpsThread(FEProblemBase & fe_problem, QuadratureType type, Order order, Order face_order);
37 
38  // Splitting Constructor
39  MaxQpsThread(MaxQpsThread & x, Threads::split split);
40 
41  void operator()(const ConstElemRange & range);
42 
43  void join(const MaxQpsThread & y);
44 
45  unsigned int max() const { return _max; }
46 
47  unsigned int max_shape_funcs() const { return _max_shape_funcs; }
48 
49 protected:
51 
52  QuadratureType _qtype;
53  Order _order;
54  Order _face_order;
55 
57 
59  unsigned int _max;
60 
62  unsigned int _max_shape_funcs;
63 };
64 
65 #endif // MAXQPSTHREAD_H
This class determines the maximum number of Quadrature Points and Shape Functions used for a given si...
Definition: MaxQpsThread.h:33
unsigned int max() const
Definition: MaxQpsThread.h:45
unsigned int _max
Maximum number of qps encountered.
Definition: MaxQpsThread.h:59
unsigned int _max_shape_funcs
Maximum number of shape functions encountered.
Definition: MaxQpsThread.h:62
void join(const MaxQpsThread &y)
Definition: MaxQpsThread.C:96
void operator()(const ConstElemRange &range)
Definition: MaxQpsThread.C:49
Order _face_order
Definition: MaxQpsThread.h:54
static PetscErrorCode Vec x
Specialization of SubProblem for solving nonlinear equations plus auxiliary equations.
FEProblemBase & _fe_problem
Definition: MaxQpsThread.h:50
QuadratureType _qtype
Definition: MaxQpsThread.h:52
unsigned int max_shape_funcs() const
Definition: MaxQpsThread.h:47
MaxQpsThread(FEProblemBase &fe_problem, QuadratureType type, Order order, Order face_order)
Definition: MaxQpsThread.C:24
MatType type
THREAD_ID _tid
Definition: MaxQpsThread.h:56
unsigned int THREAD_ID
Definition: MooseTypes.h:79