Remove duplicate information in M_.blocksMFS

issue#70
Sébastien Villemot 2012-11-16 17:39:03 +01:00
parent 0cae76f0eb
commit 47c83d839e
1 changed files with 0 additions and 15 deletions

View File

@ -1487,21 +1487,6 @@ StaticModel::writeOutput(ostream &output, bool block) const
return;
unsigned int nb_blocks = getNbBlocks();
output << "M_.blocksMFS = cell(" << nb_blocks << ", 1);" << endl;
for (int b = 0; b < (int) nb_blocks; b++)
{
output << "M_.blocksMFS{" << b+1 << "} = [ ";
unsigned int block_size = getBlockSize(b);
unsigned int block_mfs = getBlockMfs(b);
unsigned int block_recursive = block_size - block_mfs;
BlockSimulationType simulation_type = getBlockSimulationType(b);
if (simulation_type != EVALUATE_BACKWARD && simulation_type != EVALUATE_FORWARD)
for (int i = block_recursive; i < (int) block_size; i++)
output << getBlockVariableID(b, i)+1 << "; ";
output << "];" << endl;
}
for (int b = 0; b < (int) nb_blocks; b++)
{
BlockSimulationType simulation_type = getBlockSimulationType(b);