PISM, A Parallel Ice Sheet Model  stable v2.0.6 committed by Constantine Khrulev on 2023-01-23 15:14:38 -0900
Classes | Namespaces | Enumerations | Functions
ConfigInterface.hh File Reference
#include <memory>
#include <set>
#include <map>
#include <string>
#include <vector>
#include <mpi.h>
#include "Units.hh"

Go to the source code of this file.

Classes

class  pism::Config
 A class for storing and accessing PISM configuration flags and parameters. More...
 
class  pism::ConfigWithPrefix
 

Namespaces

 pism
 

Enumerations

enum  pism::ConfigSettingFlag { pism::CONFIG_DEFAULT = 0 , pism::CONFIG_FORCE = 1 , pism::CONFIG_USER = 2 }
 Flag used by set_...() methods. More...
 

Functions

Config::Ptr pism::config_from_options (MPI_Comm com, const Logger &log, units::System::Ptr unit_system)
 Create a configuration database using command-line options. More...
 
void pism::set_config_from_options (units::System::Ptr unit_system, Config &config)
 Set configuration parameters using command-line options. More...
 
void pism::set_parameter_from_options (units::System::Ptr unit_system, Config &config, const std::string &name)
 Set one parameter using command-line options. More...
 
void pism::set_flag_from_option (Config &config, const std::string &option, const std::string &parameter_name)
 Get a flag from a command-line option. More...
 
void pism::set_number_from_option (units::System::Ptr unit_system, Config &config, const std::string &name, const std::string &parameter)
 Sets a configuration parameter from a command-line option. More...
 
void pism::set_string_from_option (Config &config, const std::string &option, const std::string &parameter)
 Set one free-form string parameter using command-line options. More...
 
void pism::set_keyword_from_option (Config &config, const std::string &name, const std::string &parameter, const std::string &choices)
 Set a keyword parameter from a command-line option. More...
 
void pism::print_config (const Logger &log, int verbosity_threshhold, const Config &config)
 Report configuration parameters to stdout. More...
 
void pism::print_unused_parameters (const Logger &log, int verbosity_threshhold, const Config &config)
 Report unused configuration parameters to stdout. More...