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

Move ModelTree constructor up in the file for clarity

parent dfe1a005
......@@ -86,6 +86,17 @@ ModelTree::copyHelper(const ModelTree &m)
nonstationary_symbols_map[it.first] = make_pair(it.second.first, f(it.second.second));
}
ModelTree::ModelTree(SymbolTable &symbol_table_arg,
NumericalConstants &num_constants_arg,
ExternalFunctionsTable &external_functions_table_arg,
bool is_dynamic_arg) :
DataTree {symbol_table_arg, num_constants_arg, external_functions_table_arg, is_dynamic_arg},
derivatives(4),
NNZDerivatives(4, 0),
temporary_terms_derivatives(4)
{
}
ModelTree::ModelTree(const ModelTree &m) :
DataTree {m},
equations_lineno {m.equations_lineno},
......@@ -1246,17 +1257,6 @@ ModelTree::BlockLinear(const blocks_derivatives_t &blocks_derivatives, const vec
return (blocks_linear);
}
ModelTree::ModelTree(SymbolTable &symbol_table_arg,
NumericalConstants &num_constants_arg,
ExternalFunctionsTable &external_functions_table_arg,
bool is_dynamic_arg) :
DataTree {symbol_table_arg, num_constants_arg, external_functions_table_arg, is_dynamic_arg},
derivatives(4),
NNZDerivatives(4, 0),
temporary_terms_derivatives(4)
{
}
int
ModelTree::equation_number() const
{
......
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