Commit c9ae1359 authored by Thomas Witkowski's avatar Thomas Witkowski

Fixed problem with new KSP solver interface.

parent a88fe3ad
...@@ -213,7 +213,7 @@ namespace AMDiS { ...@@ -213,7 +213,7 @@ namespace AMDiS {
levelData(NULL), levelData(NULL),
dofComm(NULL), dofComm(NULL),
globalMapping(true), globalMapping(true),
needMatIndexFromGlobal(false), needMatIndexFromGlobal(true),
nRankDofs(1), nRankDofs(1),
nLocalDofs(1), nLocalDofs(1),
nOverallDofs(1), nOverallDofs(1),
......
...@@ -605,7 +605,7 @@ namespace AMDiS { ...@@ -605,7 +605,7 @@ namespace AMDiS {
} }
void PetscSolverGlobalMatrix::initSolver(KSP ksp) void PetscSolverGlobalMatrix::initSolver(KSP &ksp)
{ {
FUNCNAME("PetscSolverGlobalMatrix::initSolver()"); FUNCNAME("PetscSolverGlobalMatrix::initSolver()");
......
...@@ -88,7 +88,7 @@ namespace AMDiS { ...@@ -88,7 +88,7 @@ namespace AMDiS {
*/ */
void createFieldSplit(PC pc, string splitName, vector<int> &components); void createFieldSplit(PC pc, string splitName, vector<int> &components);
virtual void initSolver(KSP ksp); virtual void initSolver(KSP &ksp);
virtual void exitSolver(KSP ksp); virtual void exitSolver(KSP ksp);
......
...@@ -18,7 +18,7 @@ namespace AMDiS { ...@@ -18,7 +18,7 @@ namespace AMDiS {
using namespace std; using namespace std;
void PetscSolverNavierStokes::initSolver(KSP ksp) void PetscSolverNavierStokes::initSolver(KSP &ksp)
{ {
FUNCNAME("PetscSolverNavierStokes::initSolver()"); FUNCNAME("PetscSolverNavierStokes::initSolver()");
......
...@@ -37,7 +37,7 @@ namespace AMDiS { ...@@ -37,7 +37,7 @@ namespace AMDiS {
{} {}
protected: protected:
void initSolver(KSP ksp); void initSolver(KSP &ksp);
void initPreconditioner(PC pc); void initPreconditioner(PC pc);
}; };
......
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