deal.II version 9.8.0
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Loading...
Searching...
No Matches
Portable::MatrixFree< dim, Number >::PrecomputedData Struct Reference

#include <deal.II/matrix_free/portable_matrix_free.h>

Detailed Description

template<int dim, typename Number = double>
struct Portable::MatrixFree< dim, Number >::PrecomputedData

Structure which is passed to the kernel for a single DoFHandler. It is used to pass all the necessary information from the CPU to the GPU and is precomputed on the CPU. This data is read-only once we run on the GPU.

Definition at line 275 of file portable_matrix_free.h.

Public Attributes

Kokkos::View< point_type **, MemorySpace::Default::kokkos_space > q_points
Kokkos::View< types::global_dof_index **, MemorySpace::Default::kokkos_space > local_to_global
Kokkos::View< Number **[dim][dim], MemorySpace::Default::kokkos_space > inv_jacobian
Kokkos::View< Number **, MemorySpace::Default::kokkos_space > JxW
Kokkos::View<::internal::MatrixFreeFunctions::ConstraintKinds *, MemorySpace::Default::kokkos_space > constraint_mask
Kokkos::View< Number *, MemorySpace::Default::kokkos_space > shape_values
Kokkos::View< Number *, MemorySpace::Default::kokkos_space > shape_gradients
Kokkos::View< Number *, MemorySpace::Default::kokkos_space > co_shape_gradients
Kokkos::View< Number *, MemorySpace::Default::kokkos_space > constraint_weights
unsigned int n_cells
unsigned int n_components
unsigned int padding_length
unsigned int row_start
bool use_coloring
::internal::MatrixFreeFunctions::ElementType element_type
unsigned int scratch_pad_size

Member Data Documentation

◆ q_points

template<int dim, typename Number = double>
Kokkos::View<point_type **, MemorySpace::Default::kokkos_space> Portable::MatrixFree< dim, Number >::PrecomputedData::q_points

Kokkos::View of the quadrature points.

Definition at line 280 of file portable_matrix_free.h.

◆ local_to_global

template<int dim, typename Number = double>
Kokkos::View<types::global_dof_index **, MemorySpace::Default::kokkos_space> Portable::MatrixFree< dim, Number >::PrecomputedData::local_to_global

Map the position in the local vector to the position in the global vector.

Definition at line 288 of file portable_matrix_free.h.

◆ inv_jacobian

template<int dim, typename Number = double>
Kokkos::View<Number **[dim][dim], MemorySpace::Default::kokkos_space> Portable::MatrixFree< dim, Number >::PrecomputedData::inv_jacobian

Kokkos::View of the inverse Jacobian.

Definition at line 294 of file portable_matrix_free.h.

◆ JxW

template<int dim, typename Number = double>
Kokkos::View<Number **, MemorySpace::Default::kokkos_space> Portable::MatrixFree< dim, Number >::PrecomputedData::JxW

Kokkos::View of the Jacobian times the weights.

Definition at line 299 of file portable_matrix_free.h.

◆ constraint_mask

template<int dim, typename Number = double>
Kokkos::View<::internal::MatrixFreeFunctions::ConstraintKinds *, MemorySpace::Default::kokkos_space> Portable::MatrixFree< dim, Number >::PrecomputedData::constraint_mask

Mask deciding where constraints are set on a given cell.

Definition at line 306 of file portable_matrix_free.h.

◆ shape_values

template<int dim, typename Number = double>
Kokkos::View<Number *, MemorySpace::Default::kokkos_space> Portable::MatrixFree< dim, Number >::PrecomputedData::shape_values

Values of the shape functions.

Definition at line 311 of file portable_matrix_free.h.

◆ shape_gradients

template<int dim, typename Number = double>
Kokkos::View<Number *, MemorySpace::Default::kokkos_space> Portable::MatrixFree< dim, Number >::PrecomputedData::shape_gradients

Gradients of the shape functions.

Definition at line 317 of file portable_matrix_free.h.

◆ co_shape_gradients

template<int dim, typename Number = double>
Kokkos::View<Number *, MemorySpace::Default::kokkos_space> Portable::MatrixFree< dim, Number >::PrecomputedData::co_shape_gradients

Gradients of the shape functions for collocation methods.

Definition at line 323 of file portable_matrix_free.h.

◆ constraint_weights

template<int dim, typename Number = double>
Kokkos::View<Number *, MemorySpace::Default::kokkos_space> Portable::MatrixFree< dim, Number >::PrecomputedData::constraint_weights

Weights used when resolving hanging nodes.

Definition at line 329 of file portable_matrix_free.h.

◆ n_cells

template<int dim, typename Number = double>
unsigned int Portable::MatrixFree< dim, Number >::PrecomputedData::n_cells

Number of cells.

Definition at line 334 of file portable_matrix_free.h.

◆ n_components

template<int dim, typename Number = double>
unsigned int Portable::MatrixFree< dim, Number >::PrecomputedData::n_components

Number of components.

Definition at line 339 of file portable_matrix_free.h.

◆ padding_length

template<int dim, typename Number = double>
unsigned int Portable::MatrixFree< dim, Number >::PrecomputedData::padding_length

Length of the padding.

Definition at line 344 of file portable_matrix_free.h.

◆ row_start

template<int dim, typename Number = double>
unsigned int Portable::MatrixFree< dim, Number >::PrecomputedData::row_start

Row start (including padding).

Definition at line 349 of file portable_matrix_free.h.

◆ use_coloring

template<int dim, typename Number = double>
bool Portable::MatrixFree< dim, Number >::PrecomputedData::use_coloring

If true, use graph coloring has been used and we can simply add into the destingation vector. Otherwise, use atomic operations.

Definition at line 355 of file portable_matrix_free.h.

◆ element_type

template<int dim, typename Number = double>
::internal::MatrixFreeFunctions::ElementType Portable::MatrixFree< dim, Number >::PrecomputedData::element_type

Encodes the type of element detected at construction. FEEvaluation will select the most efficient algorithm based on the given element type.

Definition at line 362 of file portable_matrix_free.h.

◆ scratch_pad_size

template<int dim, typename Number = double>
unsigned int Portable::MatrixFree< dim, Number >::PrecomputedData::scratch_pad_size

Size of the scratch pad for temporary storage in shared memory.

Definition at line 367 of file portable_matrix_free.h.


The documentation for this struct was generated from the following file: