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
0ea26bc4
Commit
0ea26bc4
authored
Mar 08, 2021
by
niklas.baumgarten
Browse files
using disc for vector
parent
a99b274f
Changes
1
Hide whitespace changes
Inline
Side-by-side
mlmc/src/montecarlo/MonteCarlo.cpp
View file @
0ea26bc4
...
...
@@ -18,9 +18,9 @@ void MonteCarlo::Method() {
}
void
MonteCarlo
::
method
()
{
SampleSolution
coarseSolution
(
pdeSolver
->
MGraphs
(),
coarseId
);
SampleSolution
fineSolution
(
pdeSolver
->
MGraphs
(),
fineId
);
int
m
=
ctr
.
M
+
ctr
.
dMComm
*
PPM
->
Proc
(
0
);
SampleSolution
coarseSolution
(
pdeSolver
->
GetDisc
(),
coarseId
);
SampleSolution
fineSolution
(
pdeSolver
->
GetDisc
(),
fineId
);
int
m
=
ctr
.
M
+
ctr
.
dMComm
*
PPM
->
Proc
(
0
);
// start index count
for
(;
m
<
ctr
.
M
+
ctr
.
dMComm
*
PPM
->
Proc
(
0
)
+
ctr
.
dMComm
;
m
++
)
{
computeSampleSolution
(
m
,
fineId
,
fineSolution
);
if
(
onlyFine
)
coarseSolution
.
Init
();
...
...
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