Intrepid2
Intrepid2_CubatureDirectTetDefault.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_TET_DEFAULT_HPP__
17#define __INTREPID2_CUBATURE_DIRECT_TET_DEFAULT_HPP__
18
19#include "Intrepid2_ConfigDefs.hpp"
21
22namespace 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
55 CubatureDirectTetDefault(const ordinal_type degree = 0);
56
59 virtual
60 const char*
61 getName() const override {
62 return "CubatureDirectTetDefault";
63 }
64 };
65
66} // end namespace Intrepid2
67
68
69// include templated definitions
71
72#endif
Definition file for the Intrepid2::CubatureDirectTetDefault class.
Header file for the Intrepid2::CubatureDirect class.
Defines direct integration rules on a tetrahedron.
virtual const char * getName() const override
Returns cubature name.
static const CubatureDataStatic cubatureDataStatic_[cubatureDataStaticSize]
Complete set of data defining default cubature rules on a triangle.
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.