specfem::quadrature¶
The quadrature class provides methods to compute the quadrature points and weights required to compute integrals and derivatives of functions within a spectral element.
specfem::quadrature::quadrature¶
-
class quadrature¶
Base quadrature class.
Subclassed by specfem::quadrature::gll::gll
Public Functions
-
inline quadrature()¶
Construct a quadrature object with default values.
-
inline virtual Kokkos::View<type_real*, Kokkos::LayoutRight, Kokkos::DefaultExecutionSpace> get_xi() const¶
Construct a new quadrature object.
- Parameters:
alpha – alpha value of the quadrature
beta – beta value of the quadrature
-
inline virtual Kokkos::View<type_real*, Kokkos::LayoutRight, Kokkos::DefaultExecutionSpace> get_w() const¶
Get quadrature weights on device
-
inline virtual Kokkos::View<type_real**, Kokkos::LayoutRight, Kokkos::DefaultExecutionSpace> get_hprime() const¶
Get derivatives of quadrature polynomials at quadrature points on device
-
inline virtual Kokkos::View<type_real*, Kokkos::LayoutRight, Kokkos::HostSpace> get_hxi() const¶
Get quadrature points on host
-
inline virtual Kokkos::View<type_real*, Kokkos::LayoutRight, Kokkos::HostSpace> get_hw() const¶
Get quadrature weights on host
-
inline virtual Kokkos::View<type_real**, Kokkos::LayoutRight, Kokkos::HostSpace> get_hhprime() const¶
Get derivatives of quadrature polynomials at quadrature points on host
-
inline virtual int get_N() const¶
get number of quadrture points
-
virtual void print(std::ostream &out) const¶
Log quadrature information to console.
-
virtual std::string to_string() const¶
return string representation of the quadrature
- Returns:
std::string String representation of the quadrature
Private Members
-
type_real alpha¶
alpha value of the quadrature
-
type_real beta¶
beta value of the quadrature
-
int N¶
Number of qudrature points.
-
Kokkos::View<type_real*, Kokkos::LayoutRight, Kokkos::DefaultExecutionSpace> xi¶
qudrature points stored on device
-
Kokkos::View<type_real*, Kokkos::LayoutRight, Kokkos::HostSpace> h_xi¶
quadrature points stored on host
-
Kokkos::View<type_real*, Kokkos::LayoutRight, Kokkos::DefaultExecutionSpace> w¶
qudrature weights stored on device
-
Kokkos::View<type_real*, Kokkos::LayoutRight, Kokkos::HostSpace> h_w¶
quadrature weights stored on host
-
Kokkos::View<type_real**, Kokkos::LayoutRight, Kokkos::DefaultExecutionSpace> hprime¶
Polynomial derivatives stored on device
-
Kokkos::View<type_real**, Kokkos::LayoutRight, Kokkos::HostSpace> h_hprime¶
Polynomial derivatives store on host
-
inline quadrature()¶