Flow123d  master-f44eb46
Public Types | Static Public Member Functions | List of all members
GenericField< spacedim > Class Template Reference

#include <generic_field.hh>

Public Types

typedef FieldValue< spacedim >::Scalar DoubleScalar
 Index value type. More...
 
typedef Field< spacedim, DoubleScalarIndexField
 Index valued field. More...
 

Static Public Member Functions

static auto region_id (Mesh &mesh) -> IndexField
 
static auto subdomain (Mesh &mesh) -> IndexField
 

Detailed Description

template<int spacedim>
class GenericField< spacedim >

Definition at line 37 of file generic_field.hh.

Member Typedef Documentation

◆ DoubleScalar

template<int spacedim>
typedef FieldValue<spacedim>::Scalar GenericField< spacedim >::DoubleScalar

Index value type.

Definition at line 41 of file generic_field.hh.

◆ IndexField

template<int spacedim>
typedef Field<spacedim, DoubleScalar> GenericField< spacedim >::IndexField

Index valued field.

Definition at line 43 of file generic_field.hh.

Member Function Documentation

◆ region_id()

template<int spacedim>
auto GenericField< spacedim >::region_id ( Mesh mesh) -> IndexField
static

Returns an instance of a scalar integer field that provides ID's of regions.

Definition at line 38 of file generic_field.impl.hh.

Here is the caller graph for this function:

◆ subdomain()

template<int spacedim>
auto GenericField< spacedim >::subdomain ( Mesh mesh) -> IndexField
static

Returns an instance of a scalar integer field that provides ID's of subdomains used for domain decomposition.

TODO: FieldFE just use provided data pointer (unsafe solution), so currently we store the data into a mesh. Which is safe as long as we have one mesh for whol calculation. After we have FieldFE that use some sort of Vector class with own memory management, we should use these to pass the data in safe way.

Definition at line 57 of file generic_field.impl.hh.

Here is the caller graph for this function:

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