Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dynare
preprocessor
Commits
e689032c
Verified
Commit
e689032c
authored
Apr 12, 2019
by
Houtan Bastani
Browse files
fix bug in
3947903f
parent
7392cd3a
Pipeline
#1127
passed with stage
in 1 minute and 27 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/Shocks.cc
View file @
e689032c
...
...
@@ -639,7 +639,7 @@ ShockGroupsStatement::writeOutput(ostream &output, const string &basename, bool
void
ShockGroupsStatement
::
writeJsonOutput
(
ostream
&
output
)
const
{
output
<<
R"({"statementName": "shock_groups", "name": ")"
<<
name
<<
R"(", "groups":
{
)"
;
output
<<
R"({"statementName": "shock_groups", "name": ")"
<<
name
<<
R"(", "groups":
[
)"
;
bool
unique_label
=
true
;
bool
printed_group
=
false
;
for
(
auto
it
=
shock_groups
.
begin
();
it
!=
shock_groups
.
end
();
it
++
,
unique_label
=
true
)
...
...
@@ -657,7 +657,7 @@ ShockGroupsStatement::writeJsonOutput(ostream &output) const
output
<<
", "
;
else
printed_group
=
true
;
output
<<
R"("group_name": ")"
<<
it
->
name
<<
R"(",)"
output
<<
R"(
{
"group_name": ")"
<<
it
->
name
<<
R"(",)"
<<
R"("shocks": [)"
;
for
(
auto
it1
=
it
->
list
.
begin
();
it1
!=
it
->
list
.
end
();
it1
++
)
{
...
...
@@ -665,8 +665,8 @@ ShockGroupsStatement::writeJsonOutput(ostream &output) const
output
<<
", "
;
output
<<
R"(")"
<<
*
it1
<<
R"(")"
;
}
output
<<
"]"
;
output
<<
"]
}
"
;
}
}
output
<<
"
}
}"
;
output
<<
"
]
}"
;
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment