Unverified Commit 2312ce13 authored by Stéphane Adjemian (Charybdis)'s avatar Stéphane Adjemian (Charybdis)
Browse files

Changed non_optimizing_behaviour.type field to non_optimizing_behaviour.isendo.

The elements are logicals true/false (true iff corresponding variable is an endogenous variable).
parent ec21208e
Pipeline #896 passed with stage
in 1 minute and 26 seconds
......@@ -3709,15 +3709,15 @@ DynamicModel::writeOutput(ostream &output, const string &basename, bool block_de
for (auto & it : non_optim_vars_params_and_constants)
output << symbol_table.getTypeSpecificID(get<0>(it)) + 1 << " ";
output << "];" << endl
<< modstruct << "pac." << substruct << "non_optimizing_behaviour.type = [";
<< modstruct << "pac." << substruct << "non_optimizing_behaviour.isendo = [";
for (auto & it : non_optim_vars_params_and_constants)
switch (symbol_table.getType(get<0>(it)))
{
case SymbolType::endogenous:
output << "1 ";
output << "true ";
break;
case SymbolType::exogenous:
output << "0 ";
output << "false ";
break;
default:
cerr << "expecting endogenous or exogenous" << endl;
......
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