Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Mpp
MLUQ
Commits
b23826fc
Commit
b23826fc
authored
Jan 28, 2021
by
niklas.baumgarten
Browse files
renaming parallel class member
parent
fbb65fa2
Changes
1
Hide whitespace changes
Inline
Side-by-side
mlmc/src/montecarlo/datastructure/SampleCounter.hpp
View file @
b23826fc
...
...
@@ -9,17 +9,17 @@ struct SampleCounter {
int
dM
=
0
;
int
dMComm
=
0
;
int
commSplit
=
0
;
int
distSamp
le
s
=
fals
e
;
int
paral
le
l
=
tru
e
;
SampleCounter
()
{};
SampleCounter
(
int
dM
)
{
SampleCounter
(
int
dM
,
bool
parallel
=
true
)
:
parallel
(
parallel
)
{
UpdateSampleCounter
(
dM
);
}
void
UpdateSampleCounter
(
int
dM
)
{
this
->
dM
=
dM
;
if
(
distSamp
le
s
)
{
if
(
paral
le
l
)
{
for
(
int
i
=
0
;
i
<
ceil
(
log2
(
PPM
->
Size
(
0
)))
+
1
;
i
++
)
{
if
(
dM
>=
PPM
->
Size
(
i
))
{
dMComm
=
ceil
((
double
)
dM
/
PPM
->
Size
(
i
));
...
...
@@ -33,16 +33,6 @@ struct SampleCounter {
}
}
// int MonteCarlo::computeCommSplit() {
// PPM->FullSplit();
// std::cout << "test" << endl;
// for (int i = PPM->MaxCommSplit(); i >= 0; i--)
// if (pow(2, i * meshes->dim()) * ctr.dM >= PPM->Size(0))
// std::cout << "i " << i << endl;
//// PPM->SplitCommunicators(i);
// return 0;
// }
SampleCounter
(
int
M
,
int
dM
)
:
M
(
M
),
dM
(
dM
)
{}
...
...
Write
Preview
Markdown
is supported
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