Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
preprocessor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dynare
preprocessor
Commits
b32bf860
Commit
b32bf860
authored
11 years ago
by
MichelJuillard
Browse files
Options
Downloads
Patches
Plain Diff
fixing bugs in commit 182c27f
parent
09e71904
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
DynareMain.cc
+2
-2
2 additions, 2 deletions
DynareMain.cc
DynareMain2.cc
+2
-2
2 additions, 2 deletions
DynareMain2.cc
with
4 additions
and
4 deletions
DynareMain.cc
+
2
−
2
View file @
b32bf860
...
@@ -215,7 +215,7 @@ main(int argc, char **argv)
...
@@ -215,7 +215,7 @@ main(int argc, char **argv)
}
}
else
if
(
strlen
(
argv
[
arg
])
>=
8
&&
!
strncmp
(
argv
[
arg
],
"language"
,
8
))
else
if
(
strlen
(
argv
[
arg
])
>=
8
&&
!
strncmp
(
argv
[
arg
],
"language"
,
8
))
{
{
if
(
strlen
(
argv
[
arg
])
<=
9
||
argv
[
arg
][
6
]
!=
'='
)
if
(
strlen
(
argv
[
arg
])
<=
9
||
argv
[
arg
][
8
]
!=
'='
)
{
{
cerr
<<
"Incorrect syntax for language option"
<<
endl
;
cerr
<<
"Incorrect syntax for language option"
<<
endl
;
usage
();
usage
();
...
@@ -234,7 +234,7 @@ main(int argc, char **argv)
...
@@ -234,7 +234,7 @@ main(int argc, char **argv)
language
=
python
;
language
=
python
;
else
else
{
{
cerr
<<
"Incorrect syntax for
ouput
option"
<<
endl
;
cerr
<<
"Incorrect syntax for
language
option"
<<
endl
;
usage
();
usage
();
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
DynareMain2.cc
+
2
−
2
View file @
b32bf860
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
void
void
main2
(
stringstream
&
in
,
string
&
basename
,
bool
debug
,
bool
clear_all
,
bool
no_tmp_terms
,
bool
no_log
,
bool
no_warn
,
bool
warn_uninit
,
bool
console
,
bool
nograph
,
bool
nointeractive
,
main2
(
stringstream
&
in
,
string
&
basename
,
bool
debug
,
bool
clear_all
,
bool
no_tmp_terms
,
bool
no_log
,
bool
no_warn
,
bool
warn_uninit
,
bool
console
,
bool
nograph
,
bool
nointeractive
,
bool
parallel
,
const
string
&
parallel_config_file
,
const
string
&
cluster_name
,
bool
parallel_slave_open_mode
,
bool
parallel
,
const
string
&
parallel_config_file
,
const
string
&
cluster_name
,
bool
parallel_slave_open_mode
,
bool
parallel_test
,
bool
nostrict
,
FileOutputType
output_mode
,
LanguageOutputType
lang
bool
parallel_test
,
bool
nostrict
,
FileOutputType
output_mode
,
LanguageOutputType
lang
uage
#if defined(_WIN32) || defined(__CYGWIN32__)
#if defined(_WIN32) || defined(__CYGWIN32__)
,
bool
cygwin
,
bool
msvc
,
bool
cygwin
,
bool
msvc
#endif
#endif
...
@@ -58,7 +58,7 @@ main2(stringstream &in, string &basename, bool debug, bool clear_all, bool no_tm
...
@@ -58,7 +58,7 @@ main2(stringstream &in, string &basename, bool debug, bool clear_all, bool no_tm
// Write outputs
// Write outputs
if
(
output_mode
!=
none
)
if
(
output_mode
!=
none
)
mod_file
->
writeExternalFiles
(
basename
,
output_mode
,
cuda
);
mod_file
->
writeExternalFiles
(
basename
,
output_mode
,
language
);
else
else
mod_file
->
writeOutputFiles
(
basename
,
clear_all
,
no_log
,
no_warn
,
console
,
nograph
,
nointeractive
,
config_file
mod_file
->
writeOutputFiles
(
basename
,
clear_all
,
no_log
,
no_warn
,
console
,
nograph
,
nointeractive
,
config_file
#if defined(_WIN32) || defined(__CYGWIN32__)
#if defined(_WIN32) || defined(__CYGWIN32__)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment