49 #ifndef __INTREPID2_CUBATURE_HPP__
50 #define __INTREPID2_CUBATURE_HPP__
52 #include "Intrepid2_ConfigDefs.hpp"
119 template<
typename ExecSpaceType = void,
120 typename pointValueType = double,
121 typename weightValueType =
double>
125 typedef Kokkos::DynRankView<pointValueType,Kokkos::LayoutStride,ExecSpaceType> pointViewType;
126 typedef Kokkos::DynRankView<weightValueType,Kokkos::LayoutStride,ExecSpaceType> weightViewType;
137 weightViewType )
const {
138 INTREPID2_TEST_FOR_EXCEPTION(
true, std::logic_error,
139 ">>> ERROR (Cubature::getCubature): this method should be over-riden by derived classes.");
153 pointViewType )
const {
154 INTREPID2_TEST_FOR_EXCEPTION(
true, std::logic_error,
155 ">>> ERROR (Cubature::getCubature): this method should be over-riden by derived classes.");
163 INTREPID2_TEST_FOR_WARNING(
true,
164 ">>> ERROR (Cubature::getNumPoints): this method should be over-riden by derived classes.");
174 INTREPID2_TEST_FOR_WARNING(
true,
175 ">>> ERROR (Cubature::getDimension): this method should be over-riden by derived classes.");
184 INTREPID2_TEST_FOR_WARNING(
true,
185 ">>> ERROR (Cubature::getDimension): this method should be over-riden by derived classes.");
virtual const char * getName() const
Returns cubature name.
Defines the base class for cubature (integration) rules in Intrepid.
virtual ordinal_type getAccuracy() const
Returns dimension of the integration domain.
virtual void getCubature(pointViewType, weightViewType) const
Returns cubature points and weights (return arrays must be pre-sized/pre-allocated).
virtual void getCubature(pointViewType, weightViewType, pointViewType) const
Returns cubature points and weights on physical cells (return arrays must be pre-sized/pre-allocated)...
virtual ordinal_type getNumPoints() const
Returns the number of cubature points.
Header function for Intrepid2::Util class and other utility functions.
virtual ordinal_type getDimension() const
Returns dimension of the integration domain.
Contains definitions of custom data types in Intrepid2.