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 cubWeights )
const {
138 INTREPID2_TEST_FOR_EXCEPTION(
true, std::logic_error,
139 ">>> ERROR (Cubature::getCubature): this method should be over-riden by derived classes.");
152 weightViewType cubWeights,
153 pointViewType cellVertices)
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 ordinal_type getDimension() const
Returns dimension of the integration domain.
Defines the base class for cubature (integration) rules in Intrepid.
virtual const char * getName() const
Returns cubature name.
virtual ordinal_type getNumPoints() const
Returns the number of cubature points.
Header function for Intrepid2::Util class and other utility functions.
virtual void getCubature(pointViewType cubPoints, weightViewType cubWeights, pointViewType cellVertices) const
Returns cubature points and weights on physical cells (return arrays must be pre-sized/pre-allocated)...
Contains definitions of custom data types in Intrepid2.
virtual ordinal_type getAccuracy() const
Returns dimension of the integration domain.
virtual void getCubature(pointViewType cubPoints, weightViewType cubWeights) const
Returns cubature points and weights (return arrays must be pre-sized/pre-allocated).