Commit 145602ce authored by Thomas Witkowski's avatar Thomas Witkowski
Browse files

* Bug fix

parent 2c2896fd
......@@ -54,12 +54,12 @@ namespace AMDiS {
// If the adopt problem has fewer components than this problem, but only one
// 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");
componentMeshes_.resize(numComponents_);
for (int i = adoptProblem->getNumComponents(); i < numComponents_; i++) {
componentMeshes_[i] = componentMeshes_[0];
componentMeshes.resize(nComponents);
for (int i = adoptProblem->getNumComponents(); i < nComponents; i++) {
componentMeshes[i] = componentMeshes[0];
}
}
......@@ -84,12 +84,12 @@ namespace AMDiS {
// If the adopt problem has fewer components than this problem, but only one
// fe space for all component, than scal up the componentSpaces array.
if (adoptProblem->getNumComponents() < numComponents_) {
TEST_EXIT(feSpaces_.size() == 1)("Daran muss ich noch arbeiten!\n");
if (adoptProblem->getNumComponents() < nComponents) {
TEST_EXIT(feSpaces.size() == 1)("Daran muss ich noch arbeiten!\n");
componentSpaces_.resize(numComponents_);
for (int i = adoptProblem->getNumComponents(); i < numComponents_; i++) {
componentSpaces_[i] = componentSpaces_[0];
componentSpaces.resize(nComponents);
for (int i = adoptProblem->getNumComponents(); i < nComponents; i++) {
componentSpaces[i] = componentSpaces[0];
}
}
......
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