16int main(
int argc,
char* argv[])
29 }
catch (
const std::exception& e) {
35 if (!cmdLine.configHelp().empty()) {
36 Nextsim::Model::HelpMap map;
37 Nextsim::Model::getHelpRecursive(map,
true);
38 Nextsim::ConfigurationHelpPrinter::setOutput(
39 Nextsim::ConfigurationHelpPrinter::Output::ANSI);
40 Nextsim::ConfigurationHelpPrinter::print(std::cout, map, cmdLine.configHelp());
static void addFiles(const C &container)
Adds several config files to the configuration sources.
static void setAdditionalConfiguration(AdditionalConfiguration *pAC)
Sets the source of any additional configuration data, such as a netCDF restart file.
static void getAdditionalConfiguration(const std::string &source)
Gets the additional configuration according to the supplied implementation.
static void setCommandLine(int argc, char *argv[])
Sets the command line data to be parsed.
A class that encapsulates the whole of the model.
void configure() override
The configuration function.