Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CLHEP
CLHEP
Commits
da9ad594
Commit
da9ad594
authored
Jun 06, 2014
by
Lynn Garren
Browse files
fix warning in MTwistEngine::showStatus
parent
38e56041
Changes
3
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
da9ad594
2014-06-06 Lynn Garren <garren@fnal.gov>
* Random/src/MTwistEngine.cc: make sure we don't go past the end of the
array in MTwistEngine::showStatus
2014-05-04 Lynn Garren <garren@fnal.gov>
* Random/src/Random.cc: remove unnecessary inline
...
...
Random/ChangeLog
View file @
da9ad594
2014-06-06 Lynn Garren <garren@fnal.gov>
* src/MTwistEngine.cc: make sure we don't go past the end of the
array in MTwistEngine::showStatus
2014-05-04 Lynn Garren <garren@fnal.gov>
* src/Random.cc: remove unnecessary inline
==============================
12.05.14 Release CLHEP-2.1.4.2
==============================
...
...
Random/src/MTwistEngine.cc
View file @
da9ad594
...
...
@@ -212,10 +212,14 @@ void MTwistEngine::showStatus() const
std
::
cout
<<
" Initial seed = "
<<
theSeed
<<
std
::
endl
;
std
::
cout
<<
" Current index = "
<<
count624
<<
std
::
endl
;
std
::
cout
<<
" Array status mt[] = "
<<
std
::
endl
;
for
(
int
i
=
0
;
i
<
624
;
i
+=
5
)
{
// 2014/06/06 L Garren
// the final line has 4 elements, not 5
for
(
int
i
=
0
;
i
<
620
;
i
+=
5
)
{
std
::
cout
<<
mt
[
i
]
<<
" "
<<
mt
[
i
+
1
]
<<
" "
<<
mt
[
i
+
2
]
<<
" "
<<
mt
[
i
+
3
]
<<
" "
<<
mt
[
i
+
4
]
<<
std
::
endl
;
<<
mt
[
i
+
3
]
<<
" "
<<
mt
[
i
+
4
]
<<
"
\n
"
;
}
std
::
cout
<<
mt
[
620
]
<<
" "
<<
mt
[
621
]
<<
" "
<<
mt
[
622
]
<<
" "
<<
mt
[
623
]
<<
std
::
endl
;
std
::
cout
<<
"----------------------------------------"
<<
std
::
endl
;
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment