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
83247b86
Commit
83247b86
authored
Nov 09, 2020
by
niklas.baumgarten
Browse files
added default name and made matrix graph pointer
parent
1d697595
Changes
1
Hide whitespace changes
Inline
Side-by-side
mlmc/src/montecarlo/Sample.hpp
View file @
83247b86
...
...
@@ -27,6 +27,8 @@ struct SampleID {
};
struct
SampleSolution
{
std
::
string
name
=
"U"
;
SampleID
id
;
double
Q
;
...
...
@@ -35,14 +37,14 @@ struct SampleSolution {
Vector
U
;
SampleSolution
(
MatrixGraphs
&
solMGraphs
,
int
mGlevel
)
:
U
(
Vector
(
solMGraphs
[
mGlevel
]))
{
SampleSolution
(
MatrixGraphs
*
solMGraphs
,
int
mGlevel
)
:
U
(
Vector
(
(
*
solMGraphs
)
[
mGlevel
]))
{
Init
();
}
// Todo might crash if sampleID corresponds to coarse sample
SampleSolution
(
MatrixGraphs
&
solMGraphs
,
SampleID
id
)
:
id
(
id
),
U
(
Vector
(
solMGraphs
[
id
.
level
.
mGfine
]))
{
SampleSolution
(
MatrixGraphs
*
solMGraphs
,
SampleID
id
)
:
id
(
id
),
U
(
Vector
(
(
*
solMGraphs
)
[
id
.
level
.
mGfine
]))
{
Init
();
}
...
...
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