inciter::ctr::Problem class

Problem 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 = brigand::list<kw::user_defined, kw::shear_diff, kw::vortical_flow, kw::nl_energy_growth, kw::rayleigh_taylor, kw::taylor_green, kw::slot_cyl, kw::gauss_hump, kw::cyl_advect, kw::sod_shocktube, kw::rotated_sod_shocktube, kw::sedov_blastwave, kw::interface_advection>
Valid expected choices to make them also available at compile-time.

Constructors, destructors, conversion operators

Problem() explicit
Options constructor.

Public functions

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

Function documentation

inciter::ctr::Problem::Problem() explicit

Options constructor.

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

const std::string& inciter::ctr::Problem::code(ProblemType p) const

Return policy code based on Enum.

Parameters
in Enum value of the problem option requested
Returns Policy code of the option