SERiF v0.0.1a
Stellar Evolution and Rotation in Four Dimensions
Loading...
Searching...
No Matches
system_layout.hpp File Reference

Describe the independently ordered physical state and residual coordinates of a discrete system. This is an accounting layer to keep index offsets straight in memory. More...

#include <array>
#include <cstddef>
#include <span>
#include <type_traits>
#include "serif/discretization/blocks/base.hpp"
#include "serif/utils/dependencies/key_list_operations.hpp"
Include dependency graph for system_layout.hpp:
This graph shows which files directly or indirectly include this file:

Classes

struct  serif::discretization::blocks::SystemLayout< ValuesT, ResidualsT >
 Describe the independently ordered physical state and residual coordinates of a discrete system. More...
 

Namespaces

namespace  serif
 
namespace  serif::discretization
 
namespace  serif::discretization::blocks
 
namespace  serif::discretization::blocks::detail
 

Concepts

concept  serif::discretization::blocks::SystemLayoutType
 Compile time check for a SystemLayout type, e.g. SystemLayout<Values, Residuals>.
 

Functions

std::size_t serif::discretization::blocks::checked_block_size (std::span< const std::size_t > sizes)
 Sum some memory span with checking for if any element is too large to fit in a size_t.
 
template<SystemLayoutType Layout, typename SizeResolver>
constexpr std::remove_cvref_t< Layout > serif::discretization::blocks::make_system_layout (const SizeResolver &size)
 Build both coordinate orderings from the same physical size resolver.
 

Variables

template<typename Candidate>
constexpr bool serif::discretization::blocks::detail::is_system_layout = false
 Default false specialization for is_system_layout, specialized to true for SystemLayout<Values, Residuals>.
 
template<typename Values, typename Residuals>
constexpr bool serif::discretization::blocks::detail::is_system_layout< SystemLayout< Values, Residuals > > = true
 True specialization for is_system_layout, specialized to true for SystemLayout<Values, Residuals>.
 

Detailed Description

Describe the independently ordered physical state and residual coordinates of a discrete system. This is an accounting layer to keep index offsets straight in memory.

Author
Emily M. Boudreaux