Opm::ConvergenceOutputConfiguration Class Reference

#include <ConvergenceOutputConfiguration.hpp>

Public Types

enum class  Option : unsigned char { None = 0 , Steps = 1 << 1 , Iterations = 1 << 2 }
 

Public Member Functions

 ConvergenceOutputConfiguration (std::string_view options, std::string_view optionName="")
 
bool any () const
 Whether or not user wants any additional convergence output at all. More...
 
bool want (const Option opt) const
 

Detailed Description

Parse comma separated option strings into a runtime configuration object for whether to output additional convergence information and, if so, what information to output.

Supported option string values are

  • "none" – Dont want any additional convergence output.
  • "steps" – Want additional convergence output pertaining to the converged solution at the end of each timestep.
  • "iterations" – Want additional convergence output pertaining to each non-linar ieration in each timestep.

Option value "none" overrides all other options. In other words, if the user requests "none", then there will be no additional convergence output, even if there are other options in the option string.

Member Enumeration Documentation

◆ Option

enum class Opm::ConvergenceOutputConfiguration::Option : unsigned char
strong

Option values.

None overrides all other options. In other words, if the user requests None, then there will be no additional convergence output, even if there are other options in the option string.

Enumerator
None 
Steps 
Iterations 

Constructor & Destructor Documentation

◆ ConvergenceOutputConfiguration()

Opm::ConvergenceOutputConfiguration::ConvergenceOutputConfiguration ( std::string_view  options,
std::string_view  optionName = "" 
)
explicit

Constructor

Parses comma separated option string into runtime configuration option.

Parameters
[in]optionsComma separated option string.
[in]optionNameName of command line option whose value is options. Used as diagnostic information only, and only if specified.

Member Function Documentation

◆ any()

bool Opm::ConvergenceOutputConfiguration::any ( ) const
inline

Whether or not user wants any additional convergence output at all.

◆ want()

bool Opm::ConvergenceOutputConfiguration::want ( const Option  opt) const
inline

Whether or not user wants specific convergence output.

Parameters
[in]optSpecific convergence output type.

The documentation for this class was generated from the following file: