diff --git a/AMDiS/src/ProblemVec.cc b/AMDiS/src/ProblemVec.cc index 8e2593e4d60cf51e3a636201b05c50c5d9d80ee9..5da3207900e39ce698364866a86f7c6bc11909b2 100644 --- a/AMDiS/src/ProblemVec.cc +++ b/AMDiS/src/ProblemVec.cc @@ -323,14 +323,15 @@ namespace AMDiS { std::string numberedName = ""; for (int i = 0; i < nComponents; i++) { (*systemMatrix)[i][i] = new DOFMatrix(componentSpaces[i], - componentSpaces[i], "A_ii"); + componentSpaces[i], "A_ii"); (*systemMatrix)[i][i]->setCoupleMatrix(false); + sprintf(number, "[%d]", i); numberedName = "rhs" + std::string(number); rhs->setDOFVector(i, new DOFVector<double>(componentSpaces[i], numberedName)); numberedName = name + std::string(number); - solution->setDOFVector(i, new DOFVector<double>(componentSpaces[i], - numberedName)); + solution->setDOFVector(i, new DOFVector<double>(componentSpaces[i], + numberedName)); solution->getDOFVector(i)->setCoarsenOperation(COARSE_INTERPOL); solution->getDOFVector(i)->set(0.0); }