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
92e3a224
Commit
92e3a224
authored
Mar 04, 2020
by
niklas.baumgarten
Browse files
bug fix convergence test
parent
4d4e2688
Changes
1
Hide whitespace changes
Inline
Side-by-side
mlmc/src/MLMCMain.h
View file @
92e3a224
...
...
@@ -50,17 +50,19 @@ public:
config
.
get
(
"StochasticField"
,
fieldName
);
config
.
get
(
"Experiment"
,
experimentName
);
if
(
initSampleAmount
.
size
()
!=
initLevels
.
size
())
Exit
(
if
(
initSampleAmount
.
size
()
!=
initLevels
.
size
()
&&
experimentName
!=
"ConvergenceTest"
)
Exit
(
"
\n
initLevels and initSampleAmount have to be of the same size.
\n
"
)
if
(
maxLevel
<
initLevels
.
back
())
Exit
(
"
\n
Last element of initLevels has to be smaller or equal to maxLevel.
\n
"
)
int
uniformSampleAmount
;
config
.
get
(
"uniformSampleAmount"
,
uniformSampleAmount
);
if
(
experimentName
==
"ConvergenceTest"
)
fill
(
initSampleAmount
.
begin
(),
initSampleAmount
.
end
(),
uniformSampleAmount
);
if
(
experimentName
==
"ConvergenceTest"
)
{
initSampleAmount
=
{};
for
(
auto
&
level
:
initLevels
)
initSampleAmount
.
push_back
(
uniformSampleAmount
);
}
initialize
();
}
...
...
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