Commit 99fdbce7 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

some corrections in the solvers

parent 7811867b
...@@ -24,8 +24,6 @@ ...@@ -24,8 +24,6 @@
#include "parallel/PetscHelper.h" #include "parallel/PetscHelper.h"
#include "TransformDOF.h" #include "TransformDOF.h"
#include "tools.h"
namespace AMDiS { namespace Parallel { namespace AMDiS { namespace Parallel {
using namespace std; using namespace std;
...@@ -115,8 +113,6 @@ namespace AMDiS { namespace Parallel { ...@@ -115,8 +113,6 @@ namespace AMDiS { namespace Parallel {
void PetscSolverNavierStokes::initSolver(KSP &ksp) void PetscSolverNavierStokes::initSolver(KSP &ksp)
{ {
FUNCNAME("PetscSolverNavierStokes::initSolver()"); FUNCNAME("PetscSolverNavierStokes::initSolver()");
printMem("begin(initSolver)");
// Create FGMRES based outer solver // Create FGMRES based outer solver
MSG("CREATE POS 1: %p\n", &ksp); MSG("CREATE POS 1: %p\n", &ksp);
...@@ -131,9 +127,7 @@ namespace AMDiS { namespace Parallel { ...@@ -131,9 +127,7 @@ namespace AMDiS { namespace Parallel {
// Create null space information. // Create null space information.
if (pressureNullSpace) if (pressureNullSpace)
setConstantNullSpace(ksp, pressureComponent, true); setConstantNullSpace(ksp, pressureComponent, true);
}
printMem("end(initSolver)");
}
void PetscSolverNavierStokes::initPreconditioner(PC pc) void PetscSolverNavierStokes::initPreconditioner(PC pc)
...@@ -144,10 +138,7 @@ namespace AMDiS { namespace Parallel { ...@@ -144,10 +138,7 @@ namespace AMDiS { namespace Parallel {
TEST_EXIT(nu)("nu pointer not set!\n"); TEST_EXIT(nu)("nu pointer not set!\n");
TEST_EXIT(invTau)("invtau pointer not set!\n"); TEST_EXIT(invTau)("invtau pointer not set!\n");
TEST_EXIT(solution)("solution pointer not set!\n"); TEST_EXIT(solution)("solution pointer not set!\n");
printMem("begin(initPreconditioner)");
int dim = componentSpaces[pressureComponent]->getMesh()->getDim(); int dim = componentSpaces[pressureComponent]->getMesh()->getDim();
...@@ -365,9 +356,6 @@ namespace AMDiS { namespace Parallel { ...@@ -365,9 +356,6 @@ namespace AMDiS { namespace Parallel {
setConstantNullSpace(matShellContext.kspLaplace); setConstantNullSpace(matShellContext.kspLaplace);
printMem("end(initPreconditioner)");
MSG("Setup of Navier-Stokes preconditioner needed %.5f seconds\n", MSG("Setup of Navier-Stokes preconditioner needed %.5f seconds\n",
t.elapsed()); t.elapsed());
} }
......
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