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
6c7d7f5d
Commit
6c7d7f5d
authored
Sep 25, 2018
by
Houtan Bastani
Browse files
don’t create file if trend_component_model/var_model statement not present
parent
913bc2f8
Pipeline
#55
passed with stage
in 1 minute and 25 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/SubModel.cc
View file @
6c7d7f5d
...
...
@@ -262,6 +262,9 @@ TrendComponentModelTable::getOrigDiffVar(const string &name_arg) const
void
TrendComponentModelTable
::
writeOutput
(
const
string
&
basename
,
ostream
&
output
)
const
{
if
(
names
.
empty
())
return
;
string
filename
=
"+"
+
basename
+
"/trend_component_ar_ec.m"
;
ofstream
ar_ec_output
;
ar_ec_output
.
open
(
filename
,
ios
::
out
|
ios
::
binary
);
...
...
@@ -426,6 +429,9 @@ VarModelTable::getSymbolListAndOrder() const
void
VarModelTable
::
writeOutput
(
const
string
&
basename
,
ostream
&
output
)
const
{
if
(
names
.
empty
())
return
;
string
filename
=
"+"
+
basename
+
"/var_ar.m"
;
ofstream
ar_output
;
ar_output
.
open
(
filename
,
ios
::
out
|
ios
::
binary
);
...
...
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