shorten writing of istarget output
parent
14e7c92f14
commit
b0dac547e9
|
@ -3682,10 +3682,7 @@ DynamicModel::writeOutput(ostream &output, const string &basename, bool block_de
|
||||||
output << "];" << endl
|
output << "];" << endl
|
||||||
<< modstruct << "pac." << substruct << "ec.istarget = [";
|
<< modstruct << "pac." << substruct << "ec.istarget = [";
|
||||||
for (auto it : ec_params_and_vars.second)
|
for (auto it : ec_params_and_vars.second)
|
||||||
if (it.second)
|
output << (it.second ? "true " : "false ");
|
||||||
output << "true ";
|
|
||||||
else
|
|
||||||
output << "false ";
|
|
||||||
output << "];" << endl
|
output << "];" << endl
|
||||||
<< modstruct << "pac." << substruct << "ec.isendo = [";
|
<< modstruct << "pac." << substruct << "ec.isendo = [";
|
||||||
for (auto it : ec_params_and_vars.second)
|
for (auto it : ec_params_and_vars.second)
|
||||||
|
|
Loading…
Reference in New Issue