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
aae6f498
Commit
aae6f498
authored
Nov 22, 2017
by
Lynn Garren
Browse files
fix for print_state()
parent
092724c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Random/src/MixMaxRng.cc
View file @
aae6f498
...
...
@@ -217,7 +217,6 @@ void MixMaxRng::showStatus() const
std
::
cout
<<
"------- MixMaxRng engine status -------"
<<
std
::
endl
;
std
::
cout
<<
" Current state vector is:"
<<
std
::
endl
;
//S.fh=stdout;
print_state
();
std
::
cout
<<
"---------------------------------------"
<<
std
::
endl
;
}
...
...
@@ -726,15 +725,15 @@ myuint_t MixMaxRng::modadd(myuint_t foo, myuint_t bar)
void
MixMaxRng
::
print_state
()
const
{
int
j
;
fprintf
(
stdout
,
"mixmax state, file version 1.0
\n
"
)
;
fprintf
(
stdout
,
"N=%u; V[N]={"
,
rng_get_N
()
)
;
std
::
cout
<<
"mixmax state, file version 1.0
\n
"
;
std
::
cout
<<
"N="
<<
rng_get_N
()
<<
"; V[N]={"
;
for
(
j
=
0
;
(
j
<
(
rng_get_N
()
-
1
)
);
j
++
)
{
fprintf
(
stdout
,
"%llu, "
,
S
.
V
[
j
]
)
;
std
::
cout
<<
S
.
V
[
j
]
<<
", "
;
}
fprintf
(
stdout
,
"%llu"
,
S
.
V
[
rng_get_N
()
-
1
]
)
;
fprintf
(
stdout
,
"}; "
)
;
fprintf
(
stdout
,
"counter=
%u; "
,
S
.
counter
)
;
fprintf
(
stdout
,
"sumtot=%llu;
\n
"
,
S
.
sumtot
)
;
std
::
cout
<<
S
.
V
[
rng_get_N
()
-
1
];
std
::
cout
<<
"}; "
;
std
::
cout
<<
"counter=
"
<<
S
.
counter
;
std
::
cout
<<
"sumtot= "
<<
S
.
sumtot
<<
"
\n
"
;
}
MixMaxRng
MixMaxRng
::
Branch
()
...
...
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