GEOS
Public Types | Static Public Member Functions | List of all members
geos::FieldSpecificationOp< OP > Struct Template Reference

FieldSpecificationOp. More...

#include <FieldSpecificationOps.hpp>

Public Types

using OpType = OP
 Alias for OP, the operator.
 

Static Public Member Functions

template<typename T >
static GEOS_HOST_DEVICE std::enable_if< !traits::is_tensorT< T >, void >::type SpecifyFieldValue (arrayView1d< T > const &field, localIndex const index, integer const component, real64 const value)
 Pointwise application of a value to a field. More...
 
template<typename T >
static GEOS_HOST_DEVICE std::enable_if< traits::is_tensorT< T >, void >::type SpecifyFieldValue (arrayView1d< T > const &field, localIndex const index, integer const component, real64 const value)
 Pointwise application of value to a field variable. More...
 
template<typename T >
static GEOS_HOST_DEVICE std::enable_if< !traits::is_tensorT< T >, void >::type readFieldValue (arrayView1d< T const > const &field, localIndex const index, integer const component, real64 &value)
 Read a field value. More...
 
template<typename T >
static GEOS_HOST_DEVICE std::enable_if< traits::is_tensorT< T >, void >::type readFieldValue (arrayView1d< T const > const &field, localIndex const index, integer const component, real64 &value)
 Read a field value. More...
 
template<typename T , int USD>
static GEOS_HOST_DEVICE std::enable_if< !traits::is_tensorT< T >, void >::type SpecifyFieldValue (arrayView2d< T, USD > const &field, localIndex const index, integer const component, real64 const value)
 Pointwise application of a value to a field variable. More...
 
template<typename T , int USD>
static GEOS_HOST_DEVICE std::enable_if< traits::is_tensorT< T >, void >::type SpecifyFieldValue (arrayView2d< T, USD > const &field, localIndex const index, integer const component, real64 const value)
 Pointwise application of a value to a field variable. More...
 
template<typename T , int USD>
static GEOS_HOST_DEVICE std::enable_if< !traits::is_tensorT< T >, void >::type readFieldValue (arrayView2d< T const, USD > const &field, localIndex const index, integer const component, real64 &value)
 Read value from a 2d field. More...
 
template<typename T , int USD>
static GEOS_HOST_DEVICE std::enable_if< traits::is_tensorT< T >, void >::type readFieldValue (arrayView2d< T const, USD > const &field, localIndex const index, integer const component, real64 &value)
 This function is not meaningful. It exists for generic purposes, but will result in an error if called. More...
 
template<typename T , int USD>
static GEOS_HOST_DEVICE std::enable_if< !traits::is_tensorT< T >, void >::type SpecifyFieldValue (arrayView3d< T, USD > const &field, localIndex const index, integer const component, real64 const value)
 Pointwise application of a value to a field variable. More...
 
template<typename T , int USD>
static GEOS_HOST_DEVICE std::enable_if< traits::is_tensorT< T >, void >::type SpecifyFieldValue (arrayView3d< T, USD > const &field, localIndex const index, integer const component, real64 const value)
 Pointwise application of a value to a field variable. More...
 
template<typename T , int USD>
static GEOS_HOST_DEVICE void readFieldValue (arrayView3d< T const, USD > const &field, localIndex const index, integer const component, real64 &value)
 This function is not meaningful. It exists for generic purposes, but will result in an error if called. More...
 
template<typename T , int USD>
static GEOS_HOST_DEVICE std::enable_if< !traits::is_tensorT< T >, void >::type SpecifyFieldValue (arrayView4d< T, USD > const &field, localIndex const index, integer const component, real64 const value)
 Pointwise application of a value to a field variable. More...
 
template<typename T , int USD>
static GEOS_HOST_DEVICE std::enable_if< traits::is_tensorT< T >, void >::type SpecifyFieldValue (arrayView4d< T, USD > const &field, localIndex const index, integer const component, real64 const value)
 Pointwise application of a value to a field variable. More...
 
template<typename T , int USD>
static GEOS_HOST_DEVICE void readFieldValue (arrayView4d< T const, USD > const &field, localIndex const index, integer const component, real64 &value)
 This function is not meaningful. It exists for generic purposes, but will result in an error if called. More...
 

Detailed Description

template<typename OP>
struct geos::FieldSpecificationOp< OP >

FieldSpecificationOp.

Definition at line 74 of file FieldSpecificationOps.hpp.

Member Function Documentation

◆ readFieldValue() [1/6]

template<typename OP >
template<typename T >
static GEOS_HOST_DEVICE std::enable_if< !traits::is_tensorT< T >, void >::type geos::FieldSpecificationOp< OP >::readFieldValue ( arrayView1d< T const > const &  field,
localIndex const  index,
integer const  component,
real64 value 
)
inlinestatic

Read a field value.

Template Parameters
TThe type of the array1d field variable specified in field.
Parameters
[in]fieldThe array1d field variable to read value from.
[in]indexThe index in field to read value from.
[in]componentnot used.
[out]valueThe value read from field.
Returns
type of the input field value.

This function performs value (+)= field[index].

Definition at line 139 of file FieldSpecificationOps.hpp.

◆ readFieldValue() [2/6]

template<typename OP >
template<typename T >
static GEOS_HOST_DEVICE std::enable_if< traits::is_tensorT< T >, void >::type geos::FieldSpecificationOp< OP >::readFieldValue ( arrayView1d< T const > const &  field,
localIndex const  index,
integer const  component,
real64 value 
)
inlinestatic

Read a field value.

Template Parameters
TThe type of the array1d field variable specified in field.
Parameters
[in]fieldThe array1d field variable to read value from.
[in]indexThe index in field to read value from.
[in]componentnot used.
[out]valueThe value read from field.
Returns
type of the input field value.

This function performs value (+)= field[index][component].

Definition at line 162 of file FieldSpecificationOps.hpp.

◆ readFieldValue() [3/6]

template<typename OP >
template<typename T , int USD>
static GEOS_HOST_DEVICE std::enable_if< !traits::is_tensorT< T >, void >::type geos::FieldSpecificationOp< OP >::readFieldValue ( arrayView2d< T const, USD > const &  field,
localIndex const  index,
integer const  component,
real64 value 
)
inlinestatic

Read value from a 2d field.

Template Parameters
TThe type of the array2d field variable specified in field.
USDthe unit stride dimension of the array field.
Parameters
[in]fieldThe array2d field variable to read value from.
[in]indexThe index in field to read value from.
[in]componentThe index along second dimension of 2d array.
[out]valueThe value that is read from field.
Returns
type of the input field value.

This function performs value (+)= field[index][component].

Definition at line 258 of file FieldSpecificationOps.hpp.

◆ readFieldValue() [4/6]

template<typename OP >
template<typename T , int USD>
static GEOS_HOST_DEVICE std::enable_if< traits::is_tensorT< T >, void >::type geos::FieldSpecificationOp< OP >::readFieldValue ( arrayView2d< T const, USD > const &  field,
localIndex const  index,
integer const  component,
real64 value 
)
inlinestatic

This function is not meaningful. It exists for generic purposes, but will result in an error if called.

Template Parameters
TThe type of the array2d field variable specified in field.
USDthe unit stride dimension of the array field.
Parameters
[in]fieldThe array2d field variable to read value from.
[in]indexThe index in field to read value from.
[in]componentThe index along second dimension of 2d array.
[out]valueThe value that is read from field.
Returns
type of the input field value.

Definition at line 280 of file FieldSpecificationOps.hpp.

◆ readFieldValue() [5/6]

template<typename OP >
template<typename T , int USD>
static GEOS_HOST_DEVICE void geos::FieldSpecificationOp< OP >::readFieldValue ( arrayView3d< T const, USD > const &  field,
localIndex const  index,
integer const  component,
real64 value 
)
inlinestatic

This function is not meaningful. It exists for generic purposes, but will result in an error if called.

Template Parameters
TThe type of the array3d field variable specified in field.
USDthe unit stride dimension of the array field.
Parameters
[in]fieldThe array3d field variable to read value from.
[in]indexThe index in field to read value from.
[in]componentThe index along second dimension of 2d array.
[out]valueThe value that is read from field.

Definition at line 389 of file FieldSpecificationOps.hpp.

◆ readFieldValue() [6/6]

template<typename OP >
template<typename T , int USD>
static GEOS_HOST_DEVICE void geos::FieldSpecificationOp< OP >::readFieldValue ( arrayView4d< T const, USD > const &  field,
localIndex const  index,
integer const  component,
real64 value 
)
inlinestatic

This function is not meaningful. It exists for generic purposes, but will result in an error if called.

Template Parameters
TThe type of the array4d field variable specified in field.
USDthe unit stride dimension of the array field.
Parameters
[in]fieldThe array4d field variable to read value from.
[in]indexThe index in field to read value from.
[in]componentThe index along second dimension of 2d array.
[out]valueThe value that is read from field.

Definition at line 510 of file FieldSpecificationOps.hpp.

◆ SpecifyFieldValue() [1/8]

template<typename OP >
template<typename T >
static GEOS_HOST_DEVICE std::enable_if< !traits::is_tensorT< T >, void >::type geos::FieldSpecificationOp< OP >::SpecifyFieldValue ( arrayView1d< T > const &  field,
localIndex const  index,
integer const  component,
real64 const  value 
)
inlinestatic

Pointwise application of a value to a field.

Template Parameters
TThe type of the array1d field variable specified in field.
Parameters
[in]fieldThe array1d field variable to apply value to.
[in]indexThe index in field to apply value to.
[in]componentnot used.
[in]valueThe value to apply to field.
Returns
type of the field value.

This function performs field[index] (+)= value.

Definition at line 93 of file FieldSpecificationOps.hpp.

◆ SpecifyFieldValue() [2/8]

template<typename OP >
template<typename T >
static GEOS_HOST_DEVICE std::enable_if< traits::is_tensorT< T >, void >::type geos::FieldSpecificationOp< OP >::SpecifyFieldValue ( arrayView1d< T > const &  field,
localIndex const  index,
integer const  component,
real64 const  value 
)
inlinestatic

Pointwise application of value to a field variable.

Template Parameters
TThe type of the array1d field variable specified in field.
Parameters
[in]fieldThe array1d field variable to apply value to.
[in]indexThe index in field to apply value to.
[in]componentThe component of field to apply value to. If T is a scalar type, this will not be used.
[in]valueThe value to apply to field.
Returns
type of the field value.

This function performs field[index][component] (+)= value.

Definition at line 117 of file FieldSpecificationOps.hpp.

◆ SpecifyFieldValue() [3/8]

template<typename OP >
template<typename T , int USD>
static GEOS_HOST_DEVICE std::enable_if< !traits::is_tensorT< T >, void >::type geos::FieldSpecificationOp< OP >::SpecifyFieldValue ( arrayView2d< T, USD > const &  field,
localIndex const  index,
integer const  component,
real64 const  value 
)
inlinestatic

Pointwise application of a value to a field variable.

Template Parameters
TThe type of the array2d field variable specified in field.
USDthe unit stride dimension of the array field.
Parameters
[in]fieldThe array2d field variable to apply value to.
[in]indexThe index in field to apply value to.
[in]componentThe index along second dimension of 2d array.
[in]valueThe value to apply to field.
Returns
type of the field value.

This function performs field[index][component] (+)= value.

Definition at line 185 of file FieldSpecificationOps.hpp.

◆ SpecifyFieldValue() [4/8]

template<typename OP >
template<typename T , int USD>
static GEOS_HOST_DEVICE std::enable_if< traits::is_tensorT< T >, void >::type geos::FieldSpecificationOp< OP >::SpecifyFieldValue ( arrayView2d< T, USD > const &  field,
localIndex const  index,
integer const  component,
real64 const  value 
)
inlinestatic

Pointwise application of a value to a field variable.

Template Parameters
TThe type of the array2d field variable specified in field.
USDthe unit stride dimension of the array field.
Parameters
[in]fieldThe array2d field variable to apply value to.
[in]indexThe index in field to apply value to.
[in]componentThe component of field to apply value to. If T is a scalar type, this will not be used.
[in]valueThe value to apply to field.
Returns
type of the field value.

This function performs field[index][component] (+)= value for all values of field[index].

Definition at line 219 of file FieldSpecificationOps.hpp.

◆ SpecifyFieldValue() [5/8]

template<typename OP >
template<typename T , int USD>
static GEOS_HOST_DEVICE std::enable_if< !traits::is_tensorT< T >, void >::type geos::FieldSpecificationOp< OP >::SpecifyFieldValue ( arrayView3d< T, USD > const &  field,
localIndex const  index,
integer const  component,
real64 const  value 
)
inlinestatic

Pointwise application of a value to a field variable.

Template Parameters
TThe type of the array3d field variable specified in field.
USDthe unit stride dimension of the array field.
Parameters
[in]fieldThe array3d field variable to apply value to.
[in]indexThe index in field to apply value to.
[in]componentThe index along third dimension of 3d array.
[in]valueThe value to apply to field.
Returns
type of the field value.

This function performs field[index] (+)= value for all values of field[index].

Definition at line 307 of file FieldSpecificationOps.hpp.

◆ SpecifyFieldValue() [6/8]

template<typename OP >
template<typename T , int USD>
static GEOS_HOST_DEVICE std::enable_if< traits::is_tensorT< T >, void >::type geos::FieldSpecificationOp< OP >::SpecifyFieldValue ( arrayView3d< T, USD > const &  field,
localIndex const  index,
integer const  component,
real64 const  value 
)
inlinestatic

Pointwise application of a value to a field variable.

Template Parameters
TThe type of the array3d field variable specified in field.
USDthe unit stride dimension of the array field.
Parameters
[in]fieldThe array3d field variable to apply value to.
[in]indexThe index in field to apply value to.
[in]componentThe component of field to apply value to. If T is a scalar type, this will not be used.
[in]valueThe value to apply to field.
Returns
type of the field value.

This function performs field[index][component] (+)= value for all values of field[index].

Definition at line 347 of file FieldSpecificationOps.hpp.

◆ SpecifyFieldValue() [7/8]

template<typename OP >
template<typename T , int USD>
static GEOS_HOST_DEVICE std::enable_if< !traits::is_tensorT< T >, void >::type geos::FieldSpecificationOp< OP >::SpecifyFieldValue ( arrayView4d< T, USD > const &  field,
localIndex const  index,
integer const  component,
real64 const  value 
)
inlinestatic

Pointwise application of a value to a field variable.

Template Parameters
TThe type of the array4d field variable specified in field.
USDthe unit stride dimension of the array field.
Parameters
[in]fieldThe array4d field variable to apply value to.
[in]indexThe index in field to apply value to.
[in]componentThe index along third dimension of 3d array.
[in]valueThe value to apply to field.
Returns
type of the field value.

This function performs field[index] (+)= value for all values of field[index].

Definition at line 416 of file FieldSpecificationOps.hpp.

◆ SpecifyFieldValue() [8/8]

template<typename OP >
template<typename T , int USD>
static GEOS_HOST_DEVICE std::enable_if< traits::is_tensorT< T >, void >::type geos::FieldSpecificationOp< OP >::SpecifyFieldValue ( arrayView4d< T, USD > const &  field,
localIndex const  index,
integer const  component,
real64 const  value 
)
inlinestatic

Pointwise application of a value to a field variable.

Template Parameters
TThe type of the array4d field variable specified in field.
USDthe unit stride dimension of the array field.
Parameters
[in]fieldThe array4d field variable to apply value to.
[in]indexThe index in field to apply value to.
[in]componentThe component of field to apply value to. If T is a scalar type, this will not be used.
[in]valueThe value to apply to field.
Returns
type of the field value.

This function performs field[index][component] (+)= value for all values of field[index].

Definition at line 462 of file FieldSpecificationOps.hpp.


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