Commit d7a85bf4 authored by Thomas Witkowski's avatar Thomas Witkowski
Browse files

* Bug fix in ParallelProblem for the vec-case

parent 83dd4be1
...@@ -461,7 +461,7 @@ namespace AMDiS { ...@@ -461,7 +461,7 @@ namespace AMDiS {
if (debugMode) { if (debugMode) {
dbgMesh = mesh; dbgMesh = mesh;
if (mpiRank == 0) { if (mpiRank == 0) {
structures[mpiRank].fitMeshToStructure(dbgMesh, structures[mpiRank].fitMeshToStructure(dbgMesh,
refinementManager, refinementManager,
true, true); true, true);
} }
...@@ -1487,11 +1487,18 @@ namespace AMDiS { ...@@ -1487,11 +1487,18 @@ namespace AMDiS {
if (debugMode) { if (debugMode) {
dbgRankSolution.resize(mpiSize); dbgRankSolution.resize(mpiSize);
for (int i = 0; i < mpiSize; i++) { for (int i = 0; i < mpiSize; i++) {
dbgRankSolution[i] = NEW SystemVector(*(rankSolution[i])); dbgRankSolution[i] = NEW SystemVector("debug rank solution", feSpaces, nComponents);
for (int j = 0; j < nComponents; j++) {
dbgRankSolution[i]->setDOFVector(j, NEW DOFVector<double>(feSpaces[j],
"debug rank solution"));
}
} }
if (mpiRank == 0) { if (mpiRank == 0) {
dbgSolution = NEW SystemVector(*(problem->getSolution())); dbgSolution = NEW SystemVector("debug solution", feSpaces, nComponents);
for (int i = 0; i < nComponents; i++) {
dbgSolution->setDOFVector(i, NEW DOFVector<double>(feSpaces[i], "debug solution"));
}
} }
} }
...@@ -1518,7 +1525,7 @@ namespace AMDiS { ...@@ -1518,7 +1525,7 @@ namespace AMDiS {
} }
DELETE dbgRankSolution[i]; DELETE dbgRankSolution[i];
} }
if (mpiRank == 0) { if (mpiRank == 0) {
for (int i = 0; i < nComponents; i++) { for (int i = 0; i < nComponents; i++) {
DELETE dbgSolution->getDOFVector(i); DELETE dbgSolution->getDOFVector(i);
......
Supports Markdown
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