Commit 0ea26bc4 authored by niklas.baumgarten's avatar niklas.baumgarten
Browse files

using disc for vector

parent a99b274f
......@@ -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();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment