occbin_write_regimes: add option to select type

pac-components
Johannes Pfeifer 2021-12-06 15:52:16 +01:00
parent 607c5aab19
commit 164e2debdc
2 changed files with 5 additions and 1 deletions

View File

@ -883,7 +883,7 @@ void
OccbinWriteRegimesStatement::writeOutput(ostream &output, const string &basename, bool minimal_workspace) const
{
options_list.writeOutput(output, "options_.occbin");
output << "occbin.write_regimes_to_xls(oo_.occbin.regime_history, M_, options_);" << endl;
output << "occbin.write_regimes_to_xls(oo_.occbin, M_, options_);" << endl;
}
void

View File

@ -2532,6 +2532,8 @@ occbin_write_regimes_options_list : occbin_write_regimes_option COMMA occbin_wri
occbin_write_regimes_option : o_occbin_write_regimes_periods
| o_occbin_write_regimes_filename
| o_occbin_write_regimes_smoother
| o_occbin_write_regimes_simul
;
occbin_graph : OCCBIN_GRAPH ';'
@ -4084,6 +4086,8 @@ o_occbin_write_regimes_periods : PERIODS EQUAL vec_int
| PERIODS EQUAL vec_int_number
{ driver.option_vec_int("write_regimes.periods", $3); }
o_occbin_write_regimes_filename : FILENAME EQUAL filename { driver.option_str("write_regimes.filename", $3); };
o_occbin_write_regimes_smoother : SMOOTHER { driver.option_str("write_regimes.type", "smoother"); };
o_occbin_write_regimes_simul : SIMUL { driver.option_str("write_regimes.type", "simul"); };
// Some options to "occbin_graph"
o_occbin_graph_noconstant : NOCONSTANT { driver.option_num("graph.steady_state", "false"); };