parametersystem.hh File Reference

This file provides the infrastructure to retrieve run-time parameters. More...

#include <opm/models/utils/propertysystem.hh>
#include <dune/common/classname.hh>
#include <dune/common/parametertree.hh>
#include <fstream>
#include <iostream>
#include <list>
#include <map>
#include <set>
#include <sstream>
#include <stdexcept>
#include <string>
#include <tuple>
#include <type_traits>
#include <unistd.h>
#include <sys/ioctl.h>
Include dependency graph for parametersystem.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Opm::Parameters::ParamInfo
 
class  Opm::Parameters::ParamRegFinalizerBase_
 
class  Opm::Parameters::ParamRegFinalizer_< TypeTag, Property >
 
struct  Opm::Properties::TTag::ParameterSystem
 
struct  Opm::Properties::ParameterMetaData< TypeTag, MyTypeTag >
 
struct  Opm::Properties::ParameterMetaData< TypeTag, TTag::ParameterSystem >
 Set the ParameterMetaData property. More...
 

Namespaces

namespace  Opm
 
namespace  Opm::Parameters
 
namespace  Opm::Properties
 
namespace  Opm::Properties::TTag
 The generic type tag for problems using the immiscible multi-phase model.
 

Functions

template<class TypeTag , template< class, class > class Property>
auto Opm::Parameters::get (bool errorIfNotRegistered=true)
 Retrieve a runtime parameter. More...
 
void Opm::Parameters::printParamUsage_ (std::ostream &os, const ParamInfo &paramInfo)
 
void Opm::Parameters::getFlattenedKeyList_ (std::list< std::string > &dest, const Dune::ParameterTree &tree, const std::string &prefix="")
 
std::string Opm::Parameters::breakLines_ (const std::string &msg, int indentWidth, int maxWidth)
 
int Opm::Parameters::getTtyWidth_ ()
 
template<class TypeTag >
void Opm::Parameters::printParamList_ (std::ostream &os, const std::list< std::string > &keyList, bool printDefaults=false)
 
template<class TypeTag >
void Opm::Parameters::printUsage (const std::string &helpPreamble, const std::string &errorMsg="", std::ostream &os=std::cerr, const bool showAll=false)
 Print a usage message for all run-time parameters. More...
 
void Opm::Parameters::removeLeadingSpace_ (std::string &s)
 
std::string Opm::Parameters::transformKey_ (const std::string &s, bool capitalizeFirstLetter=true, const std::string &errorPrefix="")
 
std::string Opm::Parameters::parseKey_ (std::string &s)
 
std::string Opm::Parameters::parseQuotedValue_ (std::string &s, const std::string &errorPrefix)
 
std::string Opm::Parameters::parseUnquotedValue_ (std::string &s, const std::string &)
 
template<class TypeTag , class PositionalArgumentCallback >
std::string Opm::Parameters::parseCommandLineOptions (int argc, const char **argv, const std::string &helpPreamble="", const PositionalArgumentCallback &posArgCallback=noPositionalParameters_)
 Parse the parameters provided on the command line. More...
 
template<class TypeTag >
void Opm::Parameters::parseParameterFile (const std::string &fileName, bool overwrite=true)
 Read the parameters from an INI-style file. More...
 
template<class TypeTag >
void Opm::Parameters::printValues (std::ostream &os=std::cout)
 Print values of the run-time parameters. More...
 
template<class TypeTag >
bool Opm::Parameters::printUnused (std::ostream &os=std::cout)
 Print the list of unused run-time parameters. More...
 
template<class TypeTag , class Container >
void Opm::Parameters::getLists (Container &usedParams, Container &unusedParams)
 Retrieves the lists of parameters specified at runtime and their values. More...
 
template<class TypeTag >
void Opm::Parameters::reset ()
 
template<class TypeTag , template< class, class > class Param>
bool Opm::Parameters::isSet (bool errorIfNotRegistered=true)
 Returns true if a parameter has been specified at runtime, false otherwise. More...
 
template<class TypeTag , template< class, class > class Param>
void Opm::Parameters::registerParam (const char *usageString)
 Register a run-time parameter. More...
 
template<class TypeTag , template< class, class > class Param>
void Opm::Parameters::hideParam ()
 Indicate that a given parameter should not be mentioned in the help message. More...
 
template<class TypeTag >
void Opm::Parameters::endParamRegistration ()
 Indicate that all parameters are registered for a given type tag. More...
 

Detailed Description

This file provides the infrastructure to retrieve run-time parameters.

Internally, runtime parameters are implemented using Dune::ParameterTree with the default value taken from the property system.