Skip to content
Snippets Groups Projects
Commit 145602ce authored by Thomas Witkowski's avatar Thomas Witkowski
Browse files

* Bug fix

parent 2c2896fd
No related branches found
No related tags found
No related merge requests found
...@@ -54,12 +54,12 @@ namespace AMDiS { ...@@ -54,12 +54,12 @@ namespace AMDiS {
// If the adopt problem has fewer components than this problem, but only one // If the adopt problem has fewer components than this problem, but only one
// mesh for all component, than scal up the componentMeshes array. // mesh for all component, than scal up the componentMeshes array.
if (adoptProblem->getNumComponents() < numComponents_) { if (adoptProblem->getNumComponents() < nComponents) {
TEST_EXIT(meshes_.size() == 1)("Daran muss ich noch arbeiten!\n"); TEST_EXIT(meshes_.size() == 1)("Daran muss ich noch arbeiten!\n");
componentMeshes_.resize(numComponents_); componentMeshes.resize(nComponents);
for (int i = adoptProblem->getNumComponents(); i < numComponents_; i++) { for (int i = adoptProblem->getNumComponents(); i < nComponents; i++) {
componentMeshes_[i] = componentMeshes_[0]; componentMeshes[i] = componentMeshes[0];
} }
} }
...@@ -84,12 +84,12 @@ namespace AMDiS { ...@@ -84,12 +84,12 @@ namespace AMDiS {
// If the adopt problem has fewer components than this problem, but only one // If the adopt problem has fewer components than this problem, but only one
// fe space for all component, than scal up the componentSpaces array. // fe space for all component, than scal up the componentSpaces array.
if (adoptProblem->getNumComponents() < numComponents_) { if (adoptProblem->getNumComponents() < nComponents) {
TEST_EXIT(feSpaces_.size() == 1)("Daran muss ich noch arbeiten!\n"); TEST_EXIT(feSpaces.size() == 1)("Daran muss ich noch arbeiten!\n");
componentSpaces_.resize(numComponents_); componentSpaces.resize(nComponents);
for (int i = adoptProblem->getNumComponents(); i < numComponents_; i++) { for (int i = adoptProblem->getNumComponents(); i < nComponents; i++) {
componentSpaces_[i] = componentSpaces_[0]; componentSpaces[i] = componentSpaces[0];
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment