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 = tk::unique_codes<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::cyl_vortex, kw::shedding_flow, kw::sod_shocktube, kw::rotated_sod_shocktube, kw::sedov_blastwave, kw::interface_advection, kw::gauss_hump_compflow, kw::waterair_shocktube, kw::triple_point, kw::gas_impact, kw::gas_impact_4mat, kw::shock_hebubble, kw::underwater_ex>::list
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.

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