From 0b2d2a121b20e1d93b3cb2f0567f20cae795230a Mon Sep 17 00:00:00 2001 From: Thomas Witkowski <thomas.witkowski@gmx.de> Date: Tue, 21 Jul 2009 13:44:01 +0000 Subject: [PATCH] Work on pdd. --- AMDiS/src/ProblemVec.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/AMDiS/src/ProblemVec.cc b/AMDiS/src/ProblemVec.cc index 8e2593e4..5da32079 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); } -- GitLab