|
SERiF v0.0.1a
Stellar Evolution and Rotation in Four Dimensions
|
Borrow an owning state's fields for one synchronous equation evaluation. More...
#include <state.hpp>
Public Types | |
| using | Keys = utils::dependencies::CombinedKeyList<utils::dependencies::KeyList<Fields...>, typename Prescribed::Keys> |
Public Member Functions | |
| StateCoefficients (const Discretization &discretization, const StellarState< Layout > &state, const Prescribed &prescribed) | |
| Create backend views without copying the state's physical coefficients. | |
| auto | context () const & |
| Reuse ordinary dependency contexts while the temporary MFEM wrappers remain alive. | |
| auto | context () const &&=delete |
| A coefficient context cannot borrow a temporary set of backend wrappers. | |
Static Private Member Functions | |
| static ::mfem::Vector | field_view (std::span< const double > values) |
| Check MFEM's index range before constructing a read-only use of its mutable-pointer view. | |
Private Attributes | |
| const Discretization & | m_discretization |
| const Prescribed & | m_prescribed |
| std::array<::mfem::Vector, sizeof...(Fields)> | m_fields |
Borrow an owning state's fields for one synchronous equation evaluation.
| using serif::model::backend::mfem::detail::StateCoefficients< Discretization, Layout, Prescribed, utils::dependencies::KeyList< Fields... > >::Keys = utils::dependencies::CombinedKeyList<utils::dependencies::KeyList<Fields...>, typename Prescribed::Keys> |
|
inline |
Create backend views without copying the state's physical coefficients.
|
inlinenodiscard |
Reuse ordinary dependency contexts while the temporary MFEM wrappers remain alive.
|
delete |
A coefficient context cannot borrow a temporary set of backend wrappers.
|
inlinestaticnodiscardprivate |
Check MFEM's index range before constructing a read-only use of its mutable-pointer view.
|
private |
|
private |
|
private |