The base class for Kokkos material properties. More...
#include <KokkosMaterialPropertyDecl.h>
Public Member Functions | |
| MaterialPropertyBase ()=default | |
| Default constructor. More... | |
| virtual | ~MaterialPropertyBase () |
| Desturctor. More... | |
| unsigned int | id () const |
| Get the property ID. More... | |
| std::string | name () const |
| Get the property name. More... | |
| std::string | type () const |
| Get the data type. More... | |
| unsigned int | dim () const |
| Get the dimension. More... | |
| unsigned int | dim (unsigned int i) const |
| Get the size of a dimension. More... | |
| virtual std::type_index | propertyType ()=0 |
| Get the property type index for load/store functions. More... | |
| virtual void | init (const PropRecord &record, const StorageKey &) |
| Initialize this property. More... | |
| virtual void | allocate (const MooseMesh &mesh, const Assembly &assembly, const std::set< SubdomainID > &subdomains, const bool bnd, StorageKey)=0 |
| Allocate the data storage. More... | |
| virtual void | copy (const MaterialPropertyBase &prop, StorageKey)=0 |
| Deep copy another property. More... | |
| virtual void | swap (MaterialPropertyBase &prop, StorageKey)=0 |
| Swap with another property. More... | |
| KOKKOS_FUNCTION | operator bool () const |
| Get whether this property is valid. More... | |
Protected Attributes | |
| const PropRecord * | _record = nullptr |
| Pointer to the record of this property. More... | |
| unsigned int | _id = libMesh::invalid_uint |
| Property ID. More... | |
| bool | _default = false |
| Flag whether this property has a default value. More... | |
The base class for Kokkos material properties.
Definition at line 76 of file KokkosMaterialPropertyDecl.h.
|
default |
Default constructor.
|
inlinevirtual |
|
pure virtual |
Allocate the data storage.
| mesh | The MOOSE mesh |
| assembly | The Kokkos assembly |
| subdomains | The MOOSE subdomain IDs |
| bnd | Whether this property is a face property |
Implemented in Moose::Kokkos::MaterialProperty< T, dimension >, and Moose::Kokkos::MaterialProperty< Real >.
|
pure virtual |
Deep copy another property.
| prop | The property to copy |
Implemented in Moose::Kokkos::MaterialProperty< T, dimension >, and Moose::Kokkos::MaterialProperty< Real >.
|
inline |
Get the dimension.
Definition at line 107 of file KokkosMaterialPropertyDecl.h.
Referenced by dim().
Get the size of a dimension.
| i | The dimension index |
Definition at line 113 of file KokkosMaterialPropertyDecl.h.
|
inline |
Get the property ID.
Definition at line 92 of file KokkosMaterialPropertyDecl.h.
|
inlinevirtual |
Initialize this property.
| record | The record of this property |
Reimplemented in Moose::Kokkos::MaterialProperty< T, dimension >, and Moose::Kokkos::MaterialProperty< Real >.
Definition at line 28 of file KokkosMaterialProperty.h.
Referenced by Moose::Kokkos::MaterialProperty< Real >::init().
|
inline |
Get the property name.
Definition at line 97 of file KokkosMaterialPropertyDecl.h.
Referenced by dim().
|
inline |
Get whether this property is valid.
Definition at line 167 of file KokkosMaterialPropertyDecl.h.
|
pure virtual |
Get the property type index for load/store functions.
Implemented in Moose::Kokkos::MaterialProperty< T, dimension >, and Moose::Kokkos::MaterialProperty< Real >.
|
pure virtual |
Swap with another property.
| prop | The property to swap |
Implemented in Moose::Kokkos::MaterialProperty< T, dimension >, and Moose::Kokkos::MaterialProperty< Real >.
|
inline |
Get the data type.
Definition at line 102 of file KokkosMaterialPropertyDecl.h.
Referenced by Moose::Kokkos::MaterialProperty< Real >::propertyType().
|
protected |
Flag whether this property has a default value.
Definition at line 182 of file KokkosMaterialPropertyDecl.h.
Referenced by operator bool().
|
protected |
Property ID.
Definition at line 178 of file KokkosMaterialPropertyDecl.h.
Referenced by id(), init(), and operator bool().
|
protected |
1.8.14