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
Dóra Kocsis
dynare
Commits
f1abbe72
Commit
f1abbe72
authored
Jun 14, 2010
by
Sébastien Villemot
Browse files
Preprocessor: cosmetic changes related to 'size_t'
parent
c4ef68b2
Changes
4
Hide whitespace changes
Inline
Side-by-side
preprocessor/DynamicModel.cc
View file @
f1abbe72
...
...
@@ -1904,7 +1904,7 @@ DynamicModel::writeOutput(ostream &output, const string &basename, bool block_de
// Write equation tags
output
<<
"M_.equations_tags = {"
<<
endl
;
for
(
unsigned
in
t
i
=
0
;
i
<
equation_tags
.
size
();
i
++
)
for
(
size_
t
i
=
0
;
i
<
equation_tags
.
size
();
i
++
)
output
<<
" "
<<
equation_tags
[
i
].
first
+
1
<<
" , '"
<<
equation_tags
[
i
].
second
.
first
<<
"' , '"
<<
equation_tags
[
i
].
second
.
second
<<
"' ;"
<<
endl
;
...
...
preprocessor/ParsingDriver.cc
View file @
f1abbe72
...
...
@@ -493,7 +493,7 @@ ParsingDriver::add_det_shock(string *var, bool conditional_forecast)
vector
<
ShocksStatement
::
DetShockElement
>
v
;
for
(
unsigned
in
t
i
=
0
;
i
<
det_shocks_periods
.
size
();
i
++
)
for
(
size_
t
i
=
0
;
i
<
det_shocks_periods
.
size
();
i
++
)
{
ShocksStatement
::
DetShockElement
dse
;
dse
.
period1
=
det_shocks_periods
[
i
].
first
;
...
...
preprocessor/Shocks.cc
View file @
f1abbe72
...
...
@@ -46,7 +46,7 @@ AbstractShocksStatement::writeDetShocks(ostream &output) const
bool
exo_det
=
(
symbol_table
.
getType
(
it
->
first
)
==
eExogenousDet
);
int
set_shocks_index
=
((
int
)
mshocks
)
+
2
*
((
int
)
exo_det
);
for
(
unsigned
in
t
i
=
0
;
i
<
it
->
second
.
size
();
i
++
)
for
(
size_
t
i
=
0
;
i
<
it
->
second
.
size
();
i
++
)
{
const
int
&
period1
=
it
->
second
[
i
].
period1
;
const
int
&
period2
=
it
->
second
[
i
].
period2
;
...
...
preprocessor/SigmaeInitialization.cc
View file @
f1abbe72
...
...
@@ -28,7 +28,7 @@ SigmaeStatement::SigmaeStatement(const matrix_type &matrix_arg) throw (MatrixFor
SigmaeStatement
::
matrix_form_type
SigmaeStatement
::
determineMatrixForm
(
const
matrix_type
&
matrix
)
throw
(
MatrixFormException
)
{
unsigned
in
t
nbe
;
size_
t
nbe
;
int
inc
;
matrix_form_type
type
;
// Checking if first or last row has one element.
...
...
@@ -61,8 +61,7 @@ SigmaeStatement::determineMatrixForm(const matrix_type &matrix) throw (MatrixFor
void
SigmaeStatement
::
writeOutput
(
ostream
&
output
,
const
string
&
basename
)
const
{
unsigned
int
ic
,
ic1
;
unsigned
int
ir
,
ir1
;
size_t
ic
,
ic1
,
ir
,
ir1
;
output
<<
"M_.Sigma_e = [..."
<<
endl
;
for
(
ir
=
0
;
ir
<
matrix
.
size
();
ir
++
)
...
...
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