49 #ifndef __INTREPID2_HGRAD_TET_COMP12_FEM_HPP__
50 #define __INTREPID2_HGRAD_TET_COMP12_FEM_HPP__
112 template<
typename po
intValueType>
113 KOKKOS_INLINE_FUNCTION
116 const pointValueType y,
117 const pointValueType z );
122 template<EOperator opType>
124 template<
typename outputValueViewType,
125 typename inputPointViewType>
126 KOKKOS_INLINE_FUNCTION
128 getValues( outputValueViewType outputValues,
129 const inputPointViewType inputPoints );
133 template<
typename ExecSpaceType,
134 typename outputValueValueType,
class ...outputValueProperties,
135 typename inputPointValueType,
class ...inputPointProperties>
137 getValues( Kokkos::DynRankView<outputValueValueType,outputValueProperties...> outputValues,
138 const Kokkos::DynRankView<inputPointValueType, inputPointProperties...> inputPoints,
139 const EOperator operatorType );
144 template<
typename outputValueViewType,
145 typename inputPointViewType,
148 outputValueViewType _outputValues;
149 const inputPointViewType _inputPoints;
151 KOKKOS_INLINE_FUNCTION
152 Functor( outputValueViewType outputValues_,
153 inputPointViewType inputPoints_ )
154 : _outputValues(outputValues_), _inputPoints(inputPoints_) {}
156 KOKKOS_INLINE_FUNCTION
157 void operator()(
const ordinal_type pt)
const {
159 case OPERATOR_VALUE : {
160 auto output = Kokkos::subview( _outputValues, Kokkos::ALL(), pt );
161 const auto input = Kokkos::subview( _inputPoints, pt, Kokkos::ALL() );
166 case OPERATOR_MAX : {
167 auto output = Kokkos::subview( _outputValues, Kokkos::ALL(), pt, Kokkos::ALL() );
168 const auto input = Kokkos::subview( _inputPoints, pt, Kokkos::ALL() );
173 INTREPID2_TEST_FOR_ABORT( opType != OPERATOR_VALUE &&
174 opType != OPERATOR_GRAD &&
175 opType != OPERATOR_MAX,
176 ">>> ERROR: (Intrepid2::Basis_HGRAD_TET_COMP12_FEM::Functor::operator() operator is not supported");
184 template<
typename ExecSpaceType = void,
185 typename outputValueType = double,
186 typename pointValueType =
double>
219 const EOperator operatorType = OPERATOR_VALUE )
const {
220 #ifdef HAVE_INTREPID2_DEBUG
221 Intrepid2::getValues_HGRAD_Args(outputValues,
227 Impl::Basis_HGRAD_TET_COMP12_FEM::
228 getValues<ExecSpaceType>( outputValues,
242 #ifdef HAVE_INTREPID2_DEBUG
244 INTREPID2_TEST_FOR_EXCEPTION( dofCoords.rank() != 2, std::invalid_argument,
245 ">>> ERROR: (Intrepid2::Basis_HGRAD_TET_COMP12_FEM::getDofCoords) rank = 2 required for dofCoords array");
247 INTREPID2_TEST_FOR_EXCEPTION( static_cast<ordinal_type>(dofCoords.extent(0)) != this->
getCardinality(), std::invalid_argument,
248 ">>> ERROR: (Intrepid2::Basis_HGRAD_TET_COMP12_FEM::getDofCoords) mismatch in number of dof and 0th dimension of dofCoords array");
250 INTREPID2_TEST_FOR_EXCEPTION( dofCoords.extent(1) != this->
getBaseCellTopology().getDimension(), std::invalid_argument,
251 ">>> ERROR: (Intrepid2::Basis_HGRAD_TET_COMP12_FEM::getDofCoords) incorrect reference cell (1st) dimension in dofCoords array");
253 Kokkos::deep_copy(dofCoords, this->
dofCoords_);
259 return "Intrepid2_HGRAD_TET_COMP12_FEM";
See Intrepid2::Basis_HGRAD_TET_COMP12_FEM.
Basis_HGRAD_TET_COMP12_FEM()
Constructor.
virtual void getValues(outputViewType outputValues, const pointViewType inputPoints, const EOperator operatorType=OPERATOR_VALUE) const
FEM basis evaluation on a reference Tetrahedron cell.
Kokkos::DynRankView< scalarType, Kokkos::LayoutStride, ExecSpaceType > scalarViewType
View type for scalars.
See Intrepid2::Basis_HGRAD_TET_COMP12_FEM.
An abstract base class that defines interface for concrete basis implementations for Finite Element (...
Kokkos::DynRankView< outputValueType, Kokkos::LayoutStride, ExecSpaceType > outputViewType
View type for basis value output.
shards::CellTopology getBaseCellTopology() const
Returns the base cell topology for which the basis is defined. See Shards documentation https://trili...
Kokkos::DynRankView< scalarType, ExecSpaceType > dofCoords_
Coordinates of degrees-of-freedom for basis functions defined in physical space.
ordinal_type getCardinality() const
Returns cardinality of the basis.
Kokkos::View< ordinal_type ***, typename ExecSpaceType::array_layout, Kokkos::HostSpace > ordinal_type_array_3d_host
View type for 3d host array.
static KOKKOS_INLINE_FUNCTION ordinal_type getLocalSubTet(const pointValueType x, const pointValueType y, const pointValueType z)
See Intrepid2::Basis_HGRAD_TET_COMP12_FEM.
Kokkos::View< ordinal_type *,typename ExecSpaceType::array_layout, Kokkos::HostSpace > ordinal_type_array_1d_host
View type for 1d host array.
Kokkos::DynRankView< pointValueType, Kokkos::LayoutStride, ExecSpaceType > pointViewType
View type for input points.
Implementation of the default H(grad)-compatible FEM basis of degree 2 on Tetrahedron cell...
See Intrepid2::Basis_HGRAD_TET_COMP12_FEM.
Definition file for the composite H(grad)-compatible FEM basis of degree 1 on Tetrahedron cell with 1...
virtual void getDofCoords(scalarViewType dofCoords) const
Returns spatial locations (coordinates) of degrees of freedom on a reference Tetrahedron.
virtual const char * getName() const
Returns basis name.
Header file for the abstract base class Intrepid2::Basis.
Kokkos::View< ordinal_type **,typename ExecSpaceType::array_layout, Kokkos::HostSpace > ordinal_type_array_2d_host
View type for 2d host array.