Skip to content
Snippets Groups Projects
Commit 0b7a873c authored by Henry's avatar Henry
Browse files

fvMatrixSolve: print solver messages only if the SolverPerformance debug switch is set

etc/controlDict: Set SolverPerformance debug switch default to 1
parent ac11cd24
Branches
Tags
No related merge requests found
......@@ -266,6 +266,7 @@ DebugSwitches
SingleKineticRateDevolatilisation 0;
SingleMixtureFraction 0;
Smagorinsky 0;
SolverPerformance 1;
SpalartAllmaras 0;
SpalartAllmarasDDES 0;
SpalartAllmarasIDDES 0;
......
......@@ -65,8 +65,7 @@ bool Foam::SolverPerformance<Type>::checkConvergence
{
if (debug >= 2)
{
//Info<< solverName_
Pout<< solverName_
Info<< solverName_
<< ": Iteration " << noIterations_
<< " residual = " << finalResidual_
<< endl;
......
......@@ -200,8 +200,10 @@ Foam::solverPerformance Foam::fvMatrix<Type>::solveSegregated
solverControls
)->solve(psiCmpt, sourceCmpt, cmpt);
//solverPerf.print(Info);
solverPerf.print(Info(this->mesh().comm()));
if (solverPerformance::debug)
{
solverPerf.print(Info(this->mesh().comm()));
}
solverPerfVec = max(solverPerfVec, solverPerf);
solverPerfVec.solverName() = solverPerf.solverName();
......@@ -265,8 +267,10 @@ Foam::solverPerformance Foam::fvMatrix<Type>::solveCoupled
coupledMatrixSolver->solve(psi)
);
//solverPerf.print(Info);
solverPerf.print(Info(this->mesh().comm()));
if (SolverPerformance<Type>::debug)
{
solverPerf.print(Info(this->mesh().comm()));
}
psi.correctBoundaryConditions();
......
......@@ -118,7 +118,10 @@ Foam::solverPerformance Foam::fvMatrix<Foam::scalar>::fvSolver::solve
totalSource
);
solverPerf.print(Info(fvMat_.mesh().comm()));
if (solverPerformance::debug)
{
solverPerf.print(Info(fvMat_.mesh().comm()));
}
fvMat_.diag() = saveDiag;
......@@ -165,7 +168,10 @@ Foam::solverPerformance Foam::fvMatrix<Foam::scalar>::solveSegregated
solverControls
)->solve(psi.internalField(), totalSource);
solverPerf.print(Info(mesh().comm()));
if (solverPerformance::debug)
{
solverPerf.print(Info(mesh().comm()));
}
diag() = saveDiag;
......
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