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