mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
fvMatrixSolve: print solver messages only if the SolverPerformance debug switch is set
etc/controlDict: Set SolverPerformance debug switch default to 1
This commit is contained in:
@ -266,6 +266,7 @@ DebugSwitches
|
|||||||
SingleKineticRateDevolatilisation 0;
|
SingleKineticRateDevolatilisation 0;
|
||||||
SingleMixtureFraction 0;
|
SingleMixtureFraction 0;
|
||||||
Smagorinsky 0;
|
Smagorinsky 0;
|
||||||
|
SolverPerformance 1;
|
||||||
SpalartAllmaras 0;
|
SpalartAllmaras 0;
|
||||||
SpalartAllmarasDDES 0;
|
SpalartAllmarasDDES 0;
|
||||||
SpalartAllmarasIDDES 0;
|
SpalartAllmarasIDDES 0;
|
||||||
|
|||||||
@ -65,8 +65,7 @@ bool Foam::SolverPerformance<Type>::checkConvergence
|
|||||||
{
|
{
|
||||||
if (debug >= 2)
|
if (debug >= 2)
|
||||||
{
|
{
|
||||||
//Info<< solverName_
|
Info<< solverName_
|
||||||
Pout<< solverName_
|
|
||||||
<< ": Iteration " << noIterations_
|
<< ": Iteration " << noIterations_
|
||||||
<< " residual = " << finalResidual_
|
<< " residual = " << finalResidual_
|
||||||
<< endl;
|
<< endl;
|
||||||
|
|||||||
@ -200,8 +200,10 @@ Foam::solverPerformance Foam::fvMatrix<Type>::solveSegregated
|
|||||||
solverControls
|
solverControls
|
||||||
)->solve(psiCmpt, sourceCmpt, cmpt);
|
)->solve(psiCmpt, sourceCmpt, cmpt);
|
||||||
|
|
||||||
//solverPerf.print(Info);
|
if (solverPerformance::debug)
|
||||||
solverPerf.print(Info(this->mesh().comm()));
|
{
|
||||||
|
solverPerf.print(Info(this->mesh().comm()));
|
||||||
|
}
|
||||||
|
|
||||||
solverPerfVec = max(solverPerfVec, solverPerf);
|
solverPerfVec = max(solverPerfVec, solverPerf);
|
||||||
solverPerfVec.solverName() = solverPerf.solverName();
|
solverPerfVec.solverName() = solverPerf.solverName();
|
||||||
@ -265,8 +267,10 @@ Foam::solverPerformance Foam::fvMatrix<Type>::solveCoupled
|
|||||||
coupledMatrixSolver->solve(psi)
|
coupledMatrixSolver->solve(psi)
|
||||||
);
|
);
|
||||||
|
|
||||||
//solverPerf.print(Info);
|
if (SolverPerformance<Type>::debug)
|
||||||
solverPerf.print(Info(this->mesh().comm()));
|
{
|
||||||
|
solverPerf.print(Info(this->mesh().comm()));
|
||||||
|
}
|
||||||
|
|
||||||
psi.correctBoundaryConditions();
|
psi.correctBoundaryConditions();
|
||||||
|
|
||||||
|
|||||||
@ -118,7 +118,10 @@ Foam::solverPerformance Foam::fvMatrix<Foam::scalar>::fvSolver::solve
|
|||||||
totalSource
|
totalSource
|
||||||
);
|
);
|
||||||
|
|
||||||
solverPerf.print(Info(fvMat_.mesh().comm()));
|
if (solverPerformance::debug)
|
||||||
|
{
|
||||||
|
solverPerf.print(Info(fvMat_.mesh().comm()));
|
||||||
|
}
|
||||||
|
|
||||||
fvMat_.diag() = saveDiag;
|
fvMat_.diag() = saveDiag;
|
||||||
|
|
||||||
@ -165,7 +168,10 @@ Foam::solverPerformance Foam::fvMatrix<Foam::scalar>::solveSegregated
|
|||||||
solverControls
|
solverControls
|
||||||
)->solve(psi.internalField(), totalSource);
|
)->solve(psi.internalField(), totalSource);
|
||||||
|
|
||||||
solverPerf.print(Info(mesh().comm()));
|
if (solverPerformance::debug)
|
||||||
|
{
|
||||||
|
solverPerf.print(Info(mesh().comm()));
|
||||||
|
}
|
||||||
|
|
||||||
diag() = saveDiag;
|
diag() = saveDiag;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user