Default PISM configuration database: uses NetCDF files; can be initialized from a file specified using a command-line option.
More...
|
| DefaultConfig (MPI_Comm com, const std::string &variable_name, const std::string &option, units::System::Ptr unit_system) |
| Config that respects command-line options and stores data in a NetCDF variable. More...
|
|
| ~DefaultConfig ()=default |
|
void | init_with_default (const Logger &log) |
| Initialize (use default path if no option was set). More...
|
|
void | init (const Logger &log) |
| Initialize (leave empty if no option was set). More...
|
|
| NetCDFConfig (MPI_Comm com, const std::string &name, units::System::Ptr unit_system) |
|
| ~NetCDFConfig () |
|
| Config (units::System::Ptr unit_system) |
|
virtual | ~Config () |
|
void | import_from (const Config &other) |
|
void | resolve_filenames () |
|
const std::set< std::string > & | parameters_set_by_user () const |
|
const std::set< std::string > & | parameters_used () const |
|
void | read (MPI_Comm com, const std::string &filename) |
|
void | write (MPI_Comm com, const std::string &filename, bool append=true) const |
|
std::string | filename () const |
| Returns the name of the file used to initialize the database. More...
|
|
void | read (const File &file) |
|
void | write (const File &file) const |
|
bool | is_set (const std::string &name) const |
|
Doubles | all_doubles () const |
|
double | get_number (const std::string &name, UseFlag flag=REMEMBER_THIS_USE) const |
|
double | get_number (const std::string &name, const std::string &units, UseFlag flag=REMEMBER_THIS_USE) const |
|
std::vector< double > | get_numbers (const std::string &name, UseFlag flag=REMEMBER_THIS_USE) const |
|
std::vector< double > | get_numbers (const std::string &name, const std::string &units, UseFlag flag=REMEMBER_THIS_USE) const |
|
void | set_number (const std::string &name, double value, ConfigSettingFlag flag=CONFIG_FORCE) |
|
void | set_numbers (const std::string &name, const std::vector< double > &values, ConfigSettingFlag flag=CONFIG_FORCE) |
|
Strings | all_strings () const |
|
std::string | get_string (const std::string &name, UseFlag flag=REMEMBER_THIS_USE) const |
|
void | set_string (const std::string &name, const std::string &value, ConfigSettingFlag flag=CONFIG_FORCE) |
|
Flags | all_flags () const |
|
std::set< std::string > | keys () const |
|
bool | get_flag (const std::string &name, UseFlag flag=REMEMBER_THIS_USE) const |
|
void | set_flag (const std::string &name, bool value, ConfigSettingFlag flag=CONFIG_FORCE) |
|
std::string | doc (const std::string ¶meter) const |
|
std::string | units (const std::string ¶meter) const |
|
std::string | type (const std::string ¶meter) const |
|
std::string | option (const std::string ¶meter) const |
|
std::string | choices (const std::string ¶meter) const |
|
Default PISM configuration database: uses NetCDF files; can be initialized from a file specified using a command-line option.
Definition at line 72 of file Config.hh.