Commit 9d3a358c authored by niklas.baumgarten's avatar niklas.baumgarten
Browse files

moved SampleIds

parent 2c0faf04
......@@ -13,18 +13,8 @@ void MonteCarlo::Method() {
}
void MonteCarlo::method() {
SampleID coarseId;
SampleID fineId;
fineId.level = level;
fineId.coarse = false;
coarseId.level = level;
coarseId.coarse = true;
SampleSolution coarseSolution(solMGraphs, coarseId);
SampleSolution fineSolution(solMGraphs, fineId);
for (int m = ctr.M; m < ctr.M + ctr.dM; m++) {
computeSampleSolution(m, fineId, fineSolution);
if (onlyFine) coarseSolution.Init();
......
......@@ -36,6 +36,9 @@ public:
Variances vars;
Kurtosis kurtosis;
SampleID coarseId;
SampleID fineId;
MonteCarlo(Level level, int dM, bool onlyFine) :
level(level), ctr(SampleCounter(dM)), onlyFine(onlyFine) {
......@@ -61,6 +64,11 @@ public:
Create();
solMGraphs = pdeSolver->CreateSolutionMatrixGraphs(*meshes);
fineId.level = level;
fineId.coarse = false;
coarseId.level = level;
coarseId.coarse = true;
}
~MonteCarlo() {
......
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