Commit 0b986771 authored by ferhat's avatar ferhat
Browse files

- 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
parent 4b48ff37
......@@ -146,11 +146,8 @@ ModFile::computingPass(bool no_tmp_terms)
if (dynamic_model.equation_number() > 0)
{
// Compute static model and its derivatives
cout << "byte_code=" << byte_code << endl;
cout << "block=" << block << endl;
if(byte_code)
{
cout << "go in DLL\n";
dynamic_model.toStaticDll(static_dll_model);
static_dll_model.computingPass(global_eval_context, no_tmp_terms, block);
}
......
......@@ -558,7 +558,7 @@ StaticModel::writeOutput(ostream &output, bool block) const
{
if (!block)
return;
output << "options_.block=" << block << ";" << endl;
output << "M_.blocksMFS = cell(" << blocksMFS.size() << ", 1);" << endl;
for(int b = 0; b < (int) blocks.size(); b++)
{
......
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