Skip to content
Snippets Groups Projects
Commit 6cc59286 authored by Simone Bnà's avatar Simone Bnà
Browse files

ENH: deleted useless ksp_view flag; use petscrc file instead

parent c0cf499b
Branches
Tags
No related merge requests found
......@@ -155,11 +155,6 @@ Foam::solverPerformance Foam::petscSolver::solve
petscDict_.lookupOrDefault("verbose", false)
);
const bool ksp_view
(
petscDict_.lookupOrDefault("ksp_view", false)
);
// Use built-in residual norm computation
const bool usePetscResidualNorm
(
......@@ -204,12 +199,6 @@ Foam::solverPerformance Foam::petscSolver::solve
PetscUtils::calcResidual(Amat, petsc_psi, petsc_source);
}
// View the ksp
if (ksp_view)
{
KSPView(ksp, PETSC_VIEWER_STDOUT_SELF);
}
// Solve A x = b
KSPSolve(ksp, petsc_source, petsc_psi);
......
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