LduMatrix: Further integration with lduMatrix

Replaced lduMatrix::solverPerformance with SolverPerformance<scalar>
This commit is contained in:
Henry
2012-04-30 18:15:26 +01:00
parent ad6b6626e2
commit b08b29bd3c
35 changed files with 216 additions and 468 deletions

View File

@ -30,7 +30,7 @@ License
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
Foam::lduMatrix::solverPerformance Foam::GAMGSolver::solve
Foam::solverPerformance Foam::GAMGSolver::solve
(
scalarField& psi,
const scalarField& source,
@ -38,7 +38,7 @@ Foam::lduMatrix::solverPerformance Foam::GAMGSolver::solve
) const
{
// Setup class containing solver performance data
lduMatrix::solverPerformance solverPerf(typeName, fieldName_);
solverPerformance solverPerf(typeName, fieldName_);
// Calculate A.psi used to calculate the initial residual
scalarField Apsi(psi.size());
@ -103,7 +103,7 @@ Foam::lduMatrix::solverPerformance Foam::GAMGSolver::solve
if (debug >= 2)
{
solverPerf.print();
solverPerf.print(Info);
}
} while
(
@ -429,7 +429,7 @@ void Foam::GAMGSolver::solveCoarsestLevel
{
const label coarsestLevel = matrixLevels_.size() - 1;
coarsestCorrField = 0;
lduMatrix::solverPerformance coarseSolverPerf;
solverPerformance coarseSolverPerf;
if (matrixLevels_[coarsestLevel].asymmetric())
{
@ -468,7 +468,7 @@ void Foam::GAMGSolver::solveCoarsestLevel
if (debug >= 2)
{
coarseSolverPerf.print();
coarseSolverPerf.print(Info);
}
}
}