inciter::ctr::Physics class

Physics options: outsource to base templated on enum type.

Base classes

template<typename Enum>
class tk::Toggle
Toggle is the base for an Option, doing generic searches.

Public types

using keywords = tk::unique_codes<kw::advection, kw::advdiff, kw::euler, kw::navierstokes, kw::veleq>::list
Valid expected choices to make them also available at compile-time.

Constructors, destructors, conversion operators

Physics() explicit
Options constructor.

Public functions

auto code(PhysicsType p) const -> const std::string&
Return policy code based on Enum.

Function documentation

inciter::ctr::Physics::Physics() explicit

Options constructor.

Simply initialize in-line and pass associations to base, which will handle client interactions

const std::string& inciter::ctr::Physics::code(PhysicsType p) const

Return policy code based on Enum.

in Enum value of the physics option requested
Returns Policy code of the option