Intrepid2
Intrepid2_CubatureDirectTriDefault.hpp
Go to the documentation of this file.
1 // @HEADER
2 // *****************************************************************************
3 // Intrepid2 Package
4 //
5 // Copyright 2007 NTESS and the Intrepid2 contributors.
6 // SPDX-License-Identifier: BSD-3-Clause
7 // *****************************************************************************
8 // @HEADER
9 
16 #ifndef __INTREPID2_CUBATURE_DIRECT_TRI_DEFAULT_HPP__
17 #define __INTREPID2_CUBATURE_DIRECT_TRI_DEFAULT_HPP__
18 
19 #include "Intrepid2_ConfigDefs.hpp"
21 
22 namespace Intrepid2 {
23 
27  template<typename DeviceType = void,
28  typename pointValueType = double,
29  typename weightValueType = double>
31  : public CubatureDirect<DeviceType,pointValueType,weightValueType> {
32  public:
35 
36  typedef typename CubatureDirect<DeviceType,pointValueType,weightValueType>::PointViewType PointViewType;
37  typedef typename CubatureDirect<DeviceType,pointValueType,weightValueType>::weightViewType weightViewType;
38 
39  private:
40 
41  // static data initialize upto 21
42  static constexpr ordinal_type cubatureDataStaticSize=21;
43 
46  static const CubatureDataStatic cubatureDataStatic_[cubatureDataStaticSize]; // initialized once
47 
48  public:
49 
54  CubatureDirectTriDefault(const ordinal_type degree = 0);
55 
58  virtual
59  const char*
60  getName() const override {
61  return "CubatureDirectTriDefault";
62  }
63 
64  };
65 
66 } // end namespace Intrepid2
67 
68 
69 // include templated definitions
71 
72 #endif
Definition file for the Intrepid2::CubatureDirectTriDefault class.
Defines direct integration rules on a triangle.
static const CubatureDataStatic cubatureDataStatic_[cubatureDataStaticSize]
Complete set of data defining default cubature rules on a triangle.
virtual const char * getName() const override
Returns cubature name.
Defines direct cubature (integration) rules in Intrepid.
Cubature data is defined on the host space and is static.
Cubature data is defined on exec space and deep-copied when an object is created. ...
Header file for the Intrepid2::CubatureDirect class.
CubatureDirectTriDefault(const ordinal_type degree=0)
Constructor.