Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
iwr
amdis
Commits
99fdbce7
Commit
99fdbce7
authored
Nov 27, 2013
by
Praetorius, Simon
Browse files
some corrections in the solvers
parent
7811867b
Changes
1
Hide whitespace changes
Inline
Side-by-side
AMDiS/src/parallel/PetscSolverNavierStokes.cc
View file @
99fdbce7
...
...
@@ -24,8 +24,6 @@
#include
"parallel/PetscHelper.h"
#include
"TransformDOF.h"
#include
"tools.h"
namespace
AMDiS
{
namespace
Parallel
{
using
namespace
std
;
...
...
@@ -115,8 +113,6 @@ namespace AMDiS { namespace Parallel {
void
PetscSolverNavierStokes
::
initSolver
(
KSP
&
ksp
)
{
FUNCNAME
(
"PetscSolverNavierStokes::initSolver()"
);
printMem
(
"begin(initSolver)"
);
// Create FGMRES based outer solver
MSG
(
"CREATE POS 1: %p
\n
"
,
&
ksp
);
...
...
@@ -131,9 +127,7 @@ namespace AMDiS { namespace Parallel {
// Create null space information.
if
(
pressureNullSpace
)
setConstantNullSpace
(
ksp
,
pressureComponent
,
true
);
printMem
(
"end(initSolver)"
);
}
}
void
PetscSolverNavierStokes
::
initPreconditioner
(
PC
pc
)
...
...
@@ -144,10 +138,7 @@ namespace AMDiS { namespace Parallel {
TEST_EXIT
(
nu
)(
"nu pointer not set!
\n
"
);
TEST_EXIT
(
invTau
)(
"invtau pointer not set!
\n
"
);
TEST_EXIT
(
solution
)(
"solution pointer not set!
\n
"
);
printMem
(
"begin(initPreconditioner)"
);
TEST_EXIT
(
solution
)(
"solution pointer not set!
\n
"
);
int
dim
=
componentSpaces
[
pressureComponent
]
->
getMesh
()
->
getDim
();
...
...
@@ -365,9 +356,6 @@ namespace AMDiS { namespace Parallel {
setConstantNullSpace
(
matShellContext
.
kspLaplace
);
printMem
(
"end(initPreconditioner)"
);
MSG
(
"Setup of Navier-Stokes preconditioner needed %.5f seconds
\n
"
,
t
.
elapsed
());
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment