|
PISM, A Parallel Ice Sheet Model 2.3.0-79cae578d committed by Constantine Khrulev on 2026-03-22
|
A class for reading, writing and accessing PISM configuration flags and parameters. More...
#include <NetCDFConfig.hh>
Inheritance diagram for pism::NetCDFConfig:Public Member Functions | |
| NetCDFConfig (const std::string &name, units::System::Ptr unit_system) | |
| ~NetCDFConfig () | |
Public Member Functions inherited from pism::Config | |
| Config (std::shared_ptr< units::System > 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) |
| std::string | filename () const |
| Returns the name of the file used to initialize the database. | |
| void | read (const File &file) |
| bool | is_set (const std::string &name) const |
| bool | is_valid_number (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 |
| std::pair< bool, double > | valid_min (const std::string ¶meter) const |
| std::pair< bool, double > | valid_max (const std::string ¶meter) const |
| std::shared_ptr< units::System > | unit_system () const |
| std::string | json () const |
Protected Member Functions | |
| void | read_impl (const File &file) |
| Read flag flags and double parameters from a NetCDF file. | |
| bool | is_set_impl (const std::string &name) const |
| Doubles | all_doubles_impl () const |
| double | get_number_impl (const std::string &name) const |
| std::vector< double > | get_numbers_impl (const std::string &name) const |
| void | set_number_impl (const std::string &name, double value) |
| void | set_numbers_impl (const std::string &name, const std::vector< double > &values) |
| Strings | all_strings_impl () const |
| std::string | get_string_impl (const std::string &name) const |
| void | set_string_impl (const std::string &name, const std::string &value) |
| Flags | all_flags_impl () const |
| bool | get_flag_impl (const std::string &name) const |
| void | set_flag_impl (const std::string &name, bool value) |
| Set a value of a flag flag. | |
Private Attributes | |
| VariableMetadata | m_data |
| std::string | m_config_filename |
| the name of the file this config database was initialized from | |
Additional Inherited Members | |
Public Types inherited from pism::Config | |
| enum | UseFlag { REMEMBER_THIS_USE = 0 , FORGET_THIS_USE = 1 } |
Flag used by get_...() methods. More... | |
| typedef std::map< std::string, std::vector< double > > | Doubles |
| typedef std::map< std::string, std::string > | Strings |
| typedef std::map< std::string, bool > | Flags |
Static Public Attributes inherited from pism::Config | |
| static int | max_length = 32768 |
| Maximum length of the JSON string (for writing to output files) | |
A class for reading, writing and accessing PISM configuration flags and parameters.
Definition at line 34 of file NetCDFConfig.hh.