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

Remove duplicate information in M_.blocksEQU

parent badeec61
...@@ -65,7 +65,7 @@ if options_.block && ~options_.bytecode ...@@ -65,7 +65,7 @@ if options_.block && ~options_.bytecode
oo_.steady_state,... oo_.steady_state,...
[oo_.exo_steady_state; ... [oo_.exo_steady_state; ...
oo_.exo_det_steady_state], M_.params); oo_.exo_det_steady_state], M_.params);
idx = M_.blocksEQU{i}; idx = M_.block_structure_stat.block(i).equation;
z(idx) = r; z(idx) = r;
end end
elseif options_.bytecode elseif options_.bytecode
...@@ -117,4 +117,4 @@ if info(1) ...@@ -117,4 +117,4 @@ if info(1)
end end
oo_.steady_state = steady_state_old; oo_.steady_state = steady_state_old;
\ No newline at end of file
...@@ -1502,15 +1502,6 @@ StaticModel::writeOutput(ostream &output, bool block) const ...@@ -1502,15 +1502,6 @@ StaticModel::writeOutput(ostream &output, bool block) const
output << "];" << endl; 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;
}
for (int b = 0; b < (int) nb_blocks; b++) for (int b = 0; b < (int) nb_blocks; b++)
{ {
BlockSimulationType simulation_type = getBlockSimulationType(b); BlockSimulationType simulation_type = getBlockSimulationType(b);
......
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