Intrepid2
Classes | Typedefs | Enumerations | Functions
Intrepid2_Types.hpp File Reference

Contains definitions of custom data types in Intrepid2. More...

#include <Kokkos_Core.hpp>
#include <Kokkos_DynRankView.hpp>
#include <stdexcept>

Go to the source code of this file.

Classes

class  Intrepid2::Parameters
 Define constants. More...
 

Typedefs

typedef int Intrepid2::ordinal_type
 
typedef size_t Intrepid2::size_type
 

Enumerations

enum  EPolyType {
  POLYTYPE_GAUSS =0, POLYTYPE_GAUSS_RADAU_LEFT, POLYTYPE_GAUSS_RADAU_RIGHT, POLYTYPE_GAUSS_LOBATTO,
  POLYTYPE_MAX
}
 
enum  ECoordinates {
  COORDINATES_CARTESIAN =0, COORDINATES_POLAR, COORDINATES_CYLINDRICAL, COORDINATES_SPHERICAL,
  COORDINATES_MAX
}
 Enumeration of coordinate systems for geometrical entities (cells, points).
 
enum  ENorm {
  NORM_ONE = 0, NORM_TWO, NORM_INF, NORM_FRO,
  NORM_MAX
}
 Enumeration of norm types for vectors and functions.
 
enum  EOperator : int {
  OPERATOR_VALUE = 0, OPERATOR_GRAD, OPERATOR_CURL, OPERATOR_DIV,
  OPERATOR_D1, OPERATOR_D2, OPERATOR_D3, OPERATOR_D4,
  OPERATOR_D5, OPERATOR_D6, OPERATOR_D7, OPERATOR_D8,
  OPERATOR_D9, OPERATOR_D10, OPERATOR_Dn, OPERATOR_MAX = OPERATOR_Dn
}
 Enumeration of primitive operators available in Intrepid. Primitive operators act on reconstructed functions or basis functions. Pairs of primitive operators are used to specify what kind of local weak operator should be constructed.
 
enum  EFunctionSpace {
  FUNCTION_SPACE_HGRAD = 0, FUNCTION_SPACE_HCURL = 1, FUNCTION_SPACE_HDIV = 2, FUNCTION_SPACE_HVOL = 3,
  FUNCTION_SPACE_VECTOR_HGRAD = 4, FUNCTION_SPACE_TENSOR_HGRAD = 5, FUNCTION_SPACE_MAX
}
 
enum  EDiscreteSpace { DISCRETE_SPACE_COMPLETE = 0, DISCRETE_SPACE_INCOMPLETE, DISCRETE_SPACE_BROKEN, DISCRETE_SPACE_MAX }
 Enumeration of the discrete spaces used to define bases for function spaces. Intrepid allows up to three basic kinds of discrete spaces for each cell type. More...
 
enum  EPointType { POINTTYPE_EQUISPACED = 0, POINTTYPE_WARPBLEND, POINTTYPE_GAUSS, POINTTYPE_DEFAULT }
 Enumeration of types of point distributions in Intrepid.
 
enum  EBasis {
  BASIS_FEM_DEFAULT = 0, BASIS_FEM_HIERARCHICAL, BASIS_FEM_LAGRANGIAN, BASIS_FVD_DEFAULT,
  BASIS_FVD_COVOLUME, BASIS_FVD_MIMETIC, BASIS_MAX
}
 Enumeration of basis types for discrete spaces in Intrepid.
 

Functions

template<typename ValueType >
KOKKOS_FORCEINLINE_FUNCTION
ValueType 
Intrepid2::epsilon ()
 
template<>
KOKKOS_FORCEINLINE_FUNCTION double Intrepid2::epsilon< double > ()
 
template<>
KOKKOS_FORCEINLINE_FUNCTION float Intrepid2::epsilon< float > ()
 
template<typename ValueType >
KOKKOS_FORCEINLINE_FUNCTION
ValueType 
Intrepid2::tolerence ()
 
template<typename ValueType >
KOKKOS_FORCEINLINE_FUNCTION
ValueType 
Intrepid2::threshold ()
 
KOKKOS_INLINE_FUNCTION const char * Intrepid2::EPolyTypeToString (const EPolyType polytype)
 
KOKKOS_FORCEINLINE_FUNCTION bool Intrepid2::isValidPolyType (const EPolyType polytype)
 Verifies validity of a PolyType enum. More...
 
KOKKOS_INLINE_FUNCTION const char * Intrepid2::ECoordinatesToString (const ECoordinates coords)
 
KOKKOS_FORCEINLINE_FUNCTION bool Intrepid2::isValidCoordinate (const ECoordinates coordinateType)
 Verifies validity of a Coordinate enum. More...
 
KOKKOS_INLINE_FUNCTION const char * Intrepid2::ENormToString (const ENorm norm)
 
KOKKOS_FORCEINLINE_FUNCTION bool Intrepid2::isValidNorm (const ENorm normType)
 Verifies validity of a Norm enum. More...
 
KOKKOS_INLINE_FUNCTION const char * Intrepid2::EOperatorToString (const EOperator op)
 
KOKKOS_FORCEINLINE_FUNCTION bool Intrepid2::isValidOperator (const EOperator operatorType)
 Verifies validity of an operator enum. More...
 
KOKKOS_INLINE_FUNCTION const char * Intrepid2::EFunctionSpaceToString (const EFunctionSpace space)
 
KOKKOS_FORCEINLINE_FUNCTION bool Intrepid2::isValidFunctionSpace (const EFunctionSpace spaceType)
 Verifies validity of a function space enum. More...
 
KOKKOS_INLINE_FUNCTION const char * Intrepid2::EDiscreteSpaceToString (const EDiscreteSpace space)
 
KOKKOS_FORCEINLINE_FUNCTION bool Intrepid2::isValidDiscreteSpace (const EDiscreteSpace spaceType)
 Verifies validity of a discrete space enum. More...
 
KOKKOS_INLINE_FUNCTION const char * Intrepid2::EPointTypeToString (const EPointType pointType)
 
KOKKOS_FORCEINLINE_FUNCTION bool Intrepid2::isValidPointType (const EPointType pointType)
 Verifies validity of a point type enum. More...
 
KOKKOS_INLINE_FUNCTION const char * Intrepid2::EBasisToString (const EBasis basis)
 
KOKKOS_FORCEINLINE_FUNCTION bool Intrepid2::isValidBasis (const EBasis basisType)
 Verifies validity of a basis enum. More...
 

Detailed Description

Contains definitions of custom data types in Intrepid2.

Author
Created by P. Bochev and D. Ridzal and Kyungjoo Kim.

Definition in file Intrepid2_Types.hpp.