fix typos

issue#70
Houtan Bastani 2019-01-18 12:36:19 +01:00
parent a3e7547857
commit 027b59b449
No known key found for this signature in database
GPG Key ID: 000094FB955BE169
2 changed files with 4 additions and 4 deletions

View File

@ -1469,7 +1469,7 @@ EstimatedParamsStatement::writeJsonOutput(ostream &output) const
break; break;
} }
output << ", \"init_val\": \""; output << ", \"initval\": \"";
it->init_val->writeJsonOutput(output, {}, {}); it->init_val->writeJsonOutput(output, {}, {});
output << "\", \"lower_bound\": \""; output << "\", \"lower_bound\": \"";
it->low_bound->writeJsonOutput(output, {}, {}); it->low_bound->writeJsonOutput(output, {}, {});

View File

@ -1,5 +1,5 @@
/* /*
* Copyright (C) 2003-2017 Dynare Team * Copyright (C) 2003-2019 Dynare Team
* *
* This file is part of Dynare. * This file is part of Dynare.
* *
@ -298,7 +298,7 @@ EndValStatement::writeOutput(ostream &output, const string &basename, bool minim
void void
EndValStatement::writeJsonOutput(ostream &output) const EndValStatement::writeJsonOutput(ostream &output) const
{ {
output << "{\"statementName\": \"end_val\", \"vals\": ["; output << "{\"statementName\": \"endval\", \"vals\": [";
writeJsonInitValues(output); writeJsonInitValues(output);
output << "]}"; output << "]}";
} }
@ -394,7 +394,7 @@ HistValStatement::writeOutput(ostream &output, const string &basename, bool mini
void void
HistValStatement::writeJsonOutput(ostream &output) const HistValStatement::writeJsonOutput(ostream &output) const
{ {
output << "{\"statementName\": \"hist_val\", \"vals\": ["; output << "{\"statementName\": \"histval\", \"vals\": [";
for (auto it = hist_values.begin(); for (auto it = hist_values.begin();
it != hist_values.end(); it++) it != hist_values.end(); it++)
{ {