Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Mpp
MLUQ
Commits
ab975086
Commit
ab975086
authored
May 05, 2021
by
niklas.baumgarten
Browse files
added commSplit to SampleGenerator
parent
898f53ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
mlmc/src/generators/SampleGenerator.hpp
View file @
ab975086
...
...
@@ -24,16 +24,18 @@ protected:
int
verbose
=
0
;
int
commSplit
;
virtual
void
drawSample
(
const
SampleID
&
id
)
=
0
;
virtual
void
plotSample
(
const
SampleID
&
id
)
{};
public:
Meshes
&
meshes
;
Meshes
&
meshes
;
// todo make const ref or remove completely
explicit
SampleGenerator
(
Meshes
&
meshes
)
:
meshes
(
meshes
)
{
explicit
SampleGenerator
(
Meshes
&
meshes
)
:
meshes
(
meshes
),
commSplit
(
meshes
.
CommSplit
())
{
// Todo add prefix
config
.
get
(
"GeneratorPlotting"
,
plotting
);
config
.
get
(
"GeneratorVerbose"
,
verbose
);
}
...
...
@@ -113,7 +115,6 @@ public:
DrawSample
(
id
);
return
EvalSample
(
t
,
c
);
}
};
class
ScalarDummy
:
public
SampleGenerator
<
Scalar
>
{
...
...
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