Commit 7889ac21 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Merge remote-tracking branch 'ferhat/master'

parents ad580b8c dfbd6c8f
......@@ -72,11 +72,7 @@ if options_.block && ~options_.bytecode
oo_.steady_state,...
[oo_.exo_steady_state; ...
oo_.exo_det_steady_state], M_.params);
if isempty(M_.blocksMFS{i})
idx = var_indx;
else
idx = M_.blocksMFS{i};
end
idx = M_.blocksEQU{i};
z(idx) = r;
end
elseif options_.bytecode
......
......@@ -1502,6 +1502,15 @@ StaticModel::writeOutput(ostream &output, bool block) const
output << "];" << endl;
}
output << "M_.blocksEQU = cell(" << nb_blocks << ", 1);" << endl;
for (int b = 0; b < (int) nb_blocks; b++)
{
unsigned int block_size = getBlockSize(b);
output << "M_.blocksEQU{" << b+1 << "} = [ ";
for (int i = 0; i < (int) block_size; i++)
output << getBlockEquationID(b, i)+1 << "; ";
output << "];" << endl;
}
}
SymbolType
......
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