The base class for Kokkos material properties.
More...
#include <KokkosMaterialPropertyDecl.h>
The base class for Kokkos material properties.
Definition at line 92 of file KokkosMaterialPropertyDecl.h.
◆ MaterialPropertyBase()
| Moose::Kokkos::MaterialPropertyBase::MaterialPropertyBase |
( |
| ) |
|
|
default |
◆ ~MaterialPropertyBase()
| virtual Moose::Kokkos::MaterialPropertyBase::~MaterialPropertyBase |
( |
| ) |
|
|
inlinevirtual |
◆ allocate()
◆ copy()
◆ dim()
Get the dimension.
- Returns
- The dimension
Definition at line 205 of file KokkosMaterialPropertyDecl.h.
Referenced by dimSize().
208 mooseError(
"Cannot get the dimension of an uninitialized or default material property.");
const PropRecord * _record
Pointer to the record of this property.
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application...
std::unordered_map< SubdomainID, std::vector< unsigned int > > dims
Size of each dimension of each subdomain.
◆ dimSize()
Get the size of a dimension.
- Parameters
-
| subdomain | The MOOSE subdomain ID |
| i | The dimension index |
- Returns
- The size of the dimension
Definition at line 214 of file KokkosMaterialPropertyDecl.h.
216 const unsigned int D =
dim();
221 "-th dimension for the ",
223 "D material property '",
227 return libmesh_map_find(
_record->
dims, subdomain)[i];
const PropRecord * _record
Pointer to the record of this property.
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application...
std::unordered_map< SubdomainID, std::vector< unsigned int > > dims
Size of each dimension of each subdomain.
unsigned int dim() const
Get the dimension.
const std::string & name() const
Get the property name.
◆ id()
| unsigned int Moose::Kokkos::MaterialPropertyBase::id |
( |
| ) |
const |
|
inline |
Get the property ID.
- Returns
- The property ID assigned by the MOOSE registry
Definition at line 108 of file KokkosMaterialPropertyDecl.h.
unsigned int _id
Property ID.
◆ init()
◆ name()
Get the property name.
- Returns
- The property name
Definition at line 187 of file KokkosMaterialPropertyDecl.h.
Referenced by dimSize().
190 mooseError(
"Cannot get the name of an uninitialized or default material property.");
const PropRecord * _record
Pointer to the record of this property.
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application...
std::string name
Property name.
◆ propertyType()
| virtual std::type_index Moose::Kokkos::MaterialPropertyBase::propertyType |
( |
| ) |
|
|
pure virtual |
◆ swap()
◆ type()
Get the data type.
- Returns
- The demangled data type name
Definition at line 196 of file KokkosMaterialPropertyDecl.h.
Referenced by Moose::Kokkos::MaterialProperty< Real >::propertyType().
199 mooseError(
"Cannot get the type of an uninitialized or default material property.");
const PropRecord * _record
Pointer to the record of this property.
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application...
std::string type
Demangled data type name.
◆ _constant_option
◆ _default
| bool Moose::Kokkos::MaterialPropertyBase::_default = false |
|
protected |
◆ _id
◆ _record
| const PropRecord* Moose::Kokkos::MaterialPropertyBase::_record = nullptr |
|
protected |
The documentation for this class was generated from the following files: