Skip to content
Snippets Groups Projects
Unverified Commit 4160e48d authored by Houtan Bastani's avatar Houtan Bastani Committed by Stéphane Adjemian (Charybdis)
Browse files

output info relative to A0star column indices

(cherry picked from commit 70f73d9b)
parent 7d16fff7
No related branches found
No related tags found
No related merge requests found
Pipeline #860 passed
...@@ -273,10 +273,6 @@ TrendComponentModelTable::writeOutput(const string &basename, ostream &output) c ...@@ -273,10 +273,6 @@ TrendComponentModelTable::writeOutput(const string &basename, ostream &output) c
<< "M_.trend_component." << name << ".eqn = ["; << "M_.trend_component." << name << ".eqn = [";
for (auto it : eqnums.at(name)) for (auto it : eqnums.at(name))
output << it + 1 << " "; output << it + 1 << " ";
output << "];" << endl
<< "M_.trend_component." << name << ".target_eqn = [";
for (auto it : target_eqnums.at(name))
output << it + 1 << " ";
output << "];" << endl output << "];" << endl
<< "M_.trend_component." << name << ".targets = ["; << "M_.trend_component." << name << ".targets = [";
for (auto it : eqnums.at(name)) for (auto it : eqnums.at(name))
...@@ -325,6 +321,29 @@ TrendComponentModelTable::writeOutput(const string &basename, ostream &output) c ...@@ -325,6 +321,29 @@ TrendComponentModelTable::writeOutput(const string &basename, ostream &output) c
output << (it >= 0 ? symbol_table.getTypeSpecificID(it) + 1 : -1) << " "; output << (it >= 0 ? symbol_table.getTypeSpecificID(it) + 1 : -1) << " ";
output << "];" << endl; output << "];" << endl;
vector<string> target_eqtags_vec = target_eqtags.at(name);
output << "M_.trend_component." << name << ".target_eqtags = {";
for (auto it : target_eqtags_vec)
output << "'" << it << "';";
output << "};" << endl;
vector<string> eqtags_vec = eqtags.at(name);
output << "M_.trend_component." << name << ".target_eqn = [";
for (auto it : target_eqtags_vec)
{
int i = 0;
for (auto it1 : eqtags_vec)
{
i++;
if (it == it1)
{
output << i << " ";
break;
}
}
}
output << "];" << endl;
vector<int> target_lhs_vec = getTargetLhs(name); vector<int> target_lhs_vec = getTargetLhs(name);
vector<int> nontarget_lhs_vec = getNonTargetLhs(name); vector<int> nontarget_lhs_vec = getNonTargetLhs(name);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment