Commit 6ba31087 authored by Houtan Bastani's avatar Houtan Bastani

add check for parameter_set option to conditional_forecast

parent 92ada8e7
Pipeline #1089 passed with stage
in 1 minute and 29 seconds
......@@ -2864,6 +2864,16 @@ ConditionalForecastStatement::ConditionalForecastStatement(OptionsList options_l
{
}
void
ConditionalForecastStatement::checkPass(ModFileStructure &mod_file_struct, WarningConsolidation &warnings)
{
if (options_list.string_options.find("parameter_set") == options_list.string_options.end())
{
cerr << "ERROR: You must pass the `parameter_set` option to conditional_forecast" << endl;
exit(EXIT_FAILURE);
}
}
void
ConditionalForecastStatement::writeOutput(ostream &output, const string &basename, bool minimal_workspace) const
{
......
......@@ -757,6 +757,7 @@ private:
const OptionsList options_list;
public:
explicit ConditionalForecastStatement(OptionsList options_list_arg);
void checkPass(ModFileStructure &mod_file_struct, WarningConsolidation &warnings) override;
void writeOutput(ostream &output, const string &basename, bool minimal_workspace) const override;
void writeJsonOutput(ostream &output) const override;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment