Commit 9cb1e4c0 authored by sebastien's avatar sebastien
Browse files

trunk preprocessor: fixed bug when both "simul" and "periods" options are given to stoch_simul

git-svn-id: ac1d8469-bf42-47a9-8791-bf33cf982152
parent 813e46ed
......@@ -617,8 +617,9 @@ ParsingDriver::option_num(const string &name_option, string *opt)
ParsingDriver::option_num(const string &name_option, const string &opt)
if (options_list.num_options.find(name_option)
!= options_list.num_options.end())
// Since "periods" option automatically sets "simul" option, we don't want to fail if user explicitly sets both "simul" and "periods"
if (name_option != "simul"
&& (options_list.num_options.find(name_option) != options_list.num_options.end()))
error("option " + name_option + " declared twice");
if ((name_option == "periods") && (mod_file->model_tree.mode == eSparseDLLMode || mod_file->model_tree.mode == eSparseMode))
Supports Markdown
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