deal.II version GIT relicensing-2287-g6548a49e0a 2024-12-20 18:30:00+00:00
\(\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
Public Member Functions | Private Types | Private Attributes | List of all members
internal::PrecomputedEvaluationDataAccessor< dim, n_components, value_type_ > Class Template Reference

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

Public Member Functions

 PrecomputedEvaluationDataAccessor (const PrecomputedEvaluationData< dim, n_components, value_type_ > &data, const PrecomputedEvaluationDataView &view)
 
const value_type get_value (const unsigned int q) const
 
const gradient_type get_gradient (const unsigned int q) const
 
void reinit (const unsigned int index)
 
void reinit (const unsigned int index_0, const unsigned int index_1)
 

Private Types

using value_type = typename PrecomputedEvaluationData< dim, n_components, value_type_ >::value_type
 
using gradient_type = typename PrecomputedEvaluationData< dim, n_components, value_type_ >::gradient_type
 

Private Attributes

const PrecomputedEvaluationDataViewview
 
const PrecomputedEvaluationData< dim, n_components, value_type_ > & data
 
unsigned int data_offset
 

Detailed Description

template<int dim, int n_components, typename value_type_>
class internal::PrecomputedEvaluationDataAccessor< dim, n_components, value_type_ >

A class helps to access PecomputedEvaluationData in a thread-safe manner. Each thread has to create this wrapper class on its own to avoid race-conditions during reinit().

Definition at line 113 of file fe_remote_evaluation.h.

Member Typedef Documentation

◆ value_type

template<int dim, int n_components, typename value_type_ >
using internal::PrecomputedEvaluationDataAccessor< dim, n_components, value_type_ >::value_type = typename PrecomputedEvaluationData<dim, n_components, value_type_>:: value_type
private

Definition at line 115 of file fe_remote_evaluation.h.

◆ gradient_type

template<int dim, int n_components, typename value_type_ >
using internal::PrecomputedEvaluationDataAccessor< dim, n_components, value_type_ >::gradient_type = typename PrecomputedEvaluationData<dim, n_components, value_type_>:: gradient_type
private

Definition at line 118 of file fe_remote_evaluation.h.

Constructor & Destructor Documentation

◆ PrecomputedEvaluationDataAccessor()

template<int dim, int n_components, typename value_type_ >
internal::PrecomputedEvaluationDataAccessor< dim, n_components, value_type_ >::PrecomputedEvaluationDataAccessor ( const PrecomputedEvaluationData< dim, n_components, value_type_ > &  data,
const PrecomputedEvaluationDataView view 
)

Constructor.

Definition at line 679 of file fe_remote_evaluation.h.

Member Function Documentation

◆ get_value()

template<int dim, int n_components, typename value_type_ >
const PrecomputedEvaluationData< dim, n_components, value_type_ >::value_type internal::PrecomputedEvaluationDataAccessor< dim, n_components, value_type_ >::get_value ( const unsigned int  q) const

Get the value at quadrature point q. The entity on which the values are defined is set via reinit().

Parameters
[in]qQuadrature point at which the value is queried.

Definition at line 692 of file fe_remote_evaluation.h.

◆ get_gradient()

template<int dim, int n_components, typename value_type_ >
const PrecomputedEvaluationData< dim, n_components, value_type_ >::gradient_type internal::PrecomputedEvaluationDataAccessor< dim, n_components, value_type_ >::get_gradient ( const unsigned int  q) const

Get the gradients at quadrature point q. The entity on which the gradients are defined is set via reinit().

Parameters
[in]qQuadrature point at which the gradient is queried.

Definition at line 704 of file fe_remote_evaluation.h.

◆ reinit() [1/2]

template<int dim, int n_components, typename value_type_ >
void internal::PrecomputedEvaluationDataAccessor< dim, n_components, value_type_ >::reinit ( const unsigned int  index)

This function has to be called before get_value() and/or get_gradient().

Parameters
[in]indexEntity index at which quadrature points are accessed. This can be, e.g., a cell index, a cell batch index, or a face batch index.

Definition at line 715 of file fe_remote_evaluation.h.

◆ reinit() [2/2]

template<int dim, int n_components, typename value_type_ >
void internal::PrecomputedEvaluationDataAccessor< dim, n_components, value_type_ >::reinit ( const unsigned int  index_0,
const unsigned int  index_1 
)

Set cell and face number at which quadrature points are accessed.

Parameters
[in]index_0cell index.
[in]index_1cell-local face number.

Definition at line 723 of file fe_remote_evaluation.h.

Member Data Documentation

◆ view

template<int dim, int n_components, typename value_type_ >
const PrecomputedEvaluationDataView& internal::PrecomputedEvaluationDataAccessor< dim, n_components, value_type_ >::view
private

PrecomputedEvaluationDataView provides information where values are located.

Definition at line 173 of file fe_remote_evaluation.h.

◆ data

template<int dim, int n_components, typename value_type_ >
const PrecomputedEvaluationData<dim, n_components, value_type_>& internal::PrecomputedEvaluationDataAccessor< dim, n_components, value_type_ >::data
private

PrecomputedEvaluationData stores the actual values.

Definition at line 178 of file fe_remote_evaluation.h.

◆ data_offset

template<int dim, int n_components, typename value_type_ >
unsigned int internal::PrecomputedEvaluationDataAccessor< dim, n_components, value_type_ >::data_offset
private

Offset to data after last call of reinit().

Definition at line 183 of file fe_remote_evaluation.h.


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