PISM, A Parallel Ice Sheet Model  stable v2.1-1-g6902d5502 committed by Ed Bueler on 2023-12-20 08:38:27 -0800

◆ set_number_list_from_option()

void pism::set_number_list_from_option ( Config config,
const std::string &  option,
const std::string &  parameter 
)

Use a command-line option -option to set a parameter that is a list of numbers.

The length of the list given as an argument to the command-line option has to be the same as the length of the default value of the parameter unless the length of the default value is less than 2. This default value length is used to disable this check.

Definition at line 529 of file ConfigInterface.cc.

References CONFIG_USER, pism::Config::doc(), pism::Config::FORGET_THIS_USE, pism::RuntimeError::formatted(), pism::Config::get_numbers(), pism::options::Option< T >::is_set(), PISM_ERROR_LOCATION, and pism::Config::set_numbers().