- bug fix: block not set to 1 in StaticModel

git-svn-id: https://www.dynare.org/svn/dynare/trunk@2877 ac1d8469-bf42-47a9-8791-bf33cf982152
time-shift
ferhat 2009-08-31 18:56:29 +00:00
parent 3eb02c720d
commit 1786ba13da
2 changed files with 1 additions and 4 deletions

View File

@ -146,11 +146,8 @@ ModFile::computingPass(bool no_tmp_terms)
if (dynamic_model.equation_number() > 0) if (dynamic_model.equation_number() > 0)
{ {
// Compute static model and its derivatives // Compute static model and its derivatives
cout << "byte_code=" << byte_code << endl;
cout << "block=" << block << endl;
if(byte_code) if(byte_code)
{ {
cout << "go in DLL\n";
dynamic_model.toStaticDll(static_dll_model); dynamic_model.toStaticDll(static_dll_model);
static_dll_model.computingPass(global_eval_context, no_tmp_terms, block); static_dll_model.computingPass(global_eval_context, no_tmp_terms, block);
} }

View File

@ -558,7 +558,7 @@ StaticModel::writeOutput(ostream &output, bool block) const
{ {
if (!block) if (!block)
return; return;
output << "options_.block=" << block << ";" << endl;
output << "M_.blocksMFS = cell(" << blocksMFS.size() << ", 1);" << endl; output << "M_.blocksMFS = cell(" << blocksMFS.size() << ", 1);" << endl;
for(int b = 0; b < (int) blocks.size(); b++) for(int b = 0; b < (int) blocks.size(); b++)
{ {