20 jacobian[0] = (global_vertices[1][0] - global_vertices[0][0]);
31 inv_jacobian[0] = 1.0 / (global_vertices[1][0] - global_vertices[0][0]);
42 getInverseTransformationJacobian(global_vertices);
68 for (
const T& jacobian_val : getTransformationJacobian(global_vertices)) {
69 determinant *= jacobian_val;
80 return getInverseTransformationJacobian(global_vertices);
86 for (
size_t d = 0; d < 1; d++) {
87 if (point[d] > 1.0 || point[d] < 0.0) {
Implementations for FFT constructor/destructor and transforms.
KOKKOS_FUNCTION point_t globalToLocal(const vertex_points_t &, const point_t &) const
Transforms a point from global to local coordinates.
KOKKOS_FUNCTION point_t getInverseTransposeTransformationJacobian(const vertex_points_t &global_vertices) const
Returns the inverse of the transpose of the transformation Jacobian.
KOKKOS_FUNCTION bool isPointInRefElement(const Vector< T, 1 > &point) const
Returns whether a point in local coordinates ([0, 1]) is inside the reference element.
KOKKOS_FUNCTION point_t getTransformationJacobian(const vertex_points_t &global_vertices) const
Function to return the Jacobian of the transformation matrix.
KOKKOS_FUNCTION vertex_points_t getLocalVertices() const
Function to return the coordinates of the vertices of the reference element.
KOKKOS_FUNCTION point_t localToGlobal(const vertex_points_t &global_vertices, const point_t &point) const
Transforms a point from local to global coordinates.
KOKKOS_FUNCTION T getDeterminantOfTransformationJacobian(const vertex_points_t &global_vertices) const
Returns the determinant of the transformation Jacobian.
KOKKOS_FUNCTION point_t getInverseTransformationJacobian(const vertex_points_t &global_vertices) const
Function to return the inverse of the Jacobian of the transformation matrix.