ENH: Updated usage for Info()

This commit is contained in:
andy
2014-01-02 18:20:09 +00:00
parent 7f272430c8
commit 78f700c2aa
4 changed files with 17 additions and 17 deletions

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -131,7 +131,7 @@ Foam::solverPerformance Foam::GAMGSolver::solve
if (debug >= 2) if (debug >= 2)
{ {
solverPerf.print(Info(matrix().mesh().comm())); solverPerf.print(Info.masterStream(matrix().mesh().comm()));
} }
} while } while
( (
@ -631,7 +631,7 @@ void Foam::GAMGSolver::solveCoarsestLevel
// //
// if (debug >= 2) // if (debug >= 2)
// { // {
// coarseSolverPerf.print(Info(coarseComm)); // coarseSolverPerf.print(Info.masterStream(coarseComm));
// } // }
// //
// Pout<< "procAgglom: coarsestSource :" << coarsestSource << endl; // Pout<< "procAgglom: coarsestSource :" << coarsestSource << endl;
@ -679,7 +679,7 @@ void Foam::GAMGSolver::solveCoarsestLevel
if (debug >= 2) if (debug >= 2)
{ {
coarseSolverPerf.print(Info(coarseComm)); coarseSolverPerf.print(Info.masterStream(coarseComm));
} }
} }

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -132,7 +132,7 @@ Foam::solverPerformance Foam::smoothSolver::solve
if (lduMatrix::debug >= 2) if (lduMatrix::debug >= 2)
{ {
Info(matrix().mesh().comm()) Info.masterStream(matrix().mesh().comm())
<< " Normalisation factor = " << normFactor << endl; << " Normalisation factor = " << normFactor << endl;
} }

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -60,7 +60,7 @@ Foam::solverPerformance Foam::fvMatrix<Type>::solve
{ {
if (debug) if (debug)
{ {
Info(this->mesh().comm()) Info.masterStream(this->mesh().comm())
<< "fvMatrix<Type>::solve(const dictionary& solverControls) : " << "fvMatrix<Type>::solve(const dictionary& solverControls) : "
"solving fvMatrix<Type>" "solving fvMatrix<Type>"
<< endl; << endl;
@ -108,7 +108,7 @@ Foam::solverPerformance Foam::fvMatrix<Type>::solveSegregated
{ {
if (debug) if (debug)
{ {
Info(this->mesh().comm()) Info.masterStream(this->mesh().comm())
<< "fvMatrix<Type>::solveSegregated" << "fvMatrix<Type>::solveSegregated"
"(const dictionary& solverControls) : " "(const dictionary& solverControls) : "
"solving fvMatrix<Type>" "solving fvMatrix<Type>"
@ -202,7 +202,7 @@ Foam::solverPerformance Foam::fvMatrix<Type>::solveSegregated
if (solverPerformance::debug) if (solverPerformance::debug)
{ {
solverPerf.print(Info(this->mesh().comm())); solverPerf.print(Info.masterStream(this->mesh().comm()));
} }
solverPerfVec = max(solverPerfVec, solverPerf); solverPerfVec = max(solverPerfVec, solverPerf);
@ -228,7 +228,7 @@ Foam::solverPerformance Foam::fvMatrix<Type>::solveCoupled
{ {
if (debug) if (debug)
{ {
Info(this->mesh().comm()) Info.masterStream(this->mesh().comm())
<< "fvMatrix<Type>::solveCoupled" << "fvMatrix<Type>::solveCoupled"
"(const dictionary& solverControls) : " "(const dictionary& solverControls) : "
"solving fvMatrix<Type>" "solving fvMatrix<Type>"
@ -269,7 +269,7 @@ Foam::solverPerformance Foam::fvMatrix<Type>::solveCoupled
if (SolverPerformance<Type>::debug) if (SolverPerformance<Type>::debug)
{ {
solverPerf.print(Info(this->mesh().comm())); solverPerf.print(Info.masterStream(this->mesh().comm()));
} }
psi.correctBoundaryConditions(); psi.correctBoundaryConditions();

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2011-2014 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -61,7 +61,7 @@ Foam::fvMatrix<Foam::scalar>::solver
{ {
if (debug) if (debug)
{ {
Info(this->mesh().comm()) Info.masterStream(this->mesh().comm())
<< "fvMatrix<scalar>::solver(const dictionary& solverControls) : " << "fvMatrix<scalar>::solver(const dictionary& solverControls) : "
"solver for fvMatrix<scalar>" "solver for fvMatrix<scalar>"
<< endl; << endl;
@ -120,7 +120,7 @@ Foam::solverPerformance Foam::fvMatrix<Foam::scalar>::fvSolver::solve
if (solverPerformance::debug) if (solverPerformance::debug)
{ {
solverPerf.print(Info(fvMat_.mesh().comm())); solverPerf.print(Info.masterStream(fvMat_.mesh().comm()));
} }
fvMat_.diag() = saveDiag; fvMat_.diag() = saveDiag;
@ -141,7 +141,7 @@ Foam::solverPerformance Foam::fvMatrix<Foam::scalar>::solveSegregated
{ {
if (debug) if (debug)
{ {
Info(this->mesh().comm()) Info.masterStream(this->mesh().comm())
<< "fvMatrix<scalar>::solveSegregated" << "fvMatrix<scalar>::solveSegregated"
"(const dictionary& solverControls) : " "(const dictionary& solverControls) : "
"solving fvMatrix<scalar>" "solving fvMatrix<scalar>"
@ -170,7 +170,7 @@ Foam::solverPerformance Foam::fvMatrix<Foam::scalar>::solveSegregated
if (solverPerformance::debug) if (solverPerformance::debug)
{ {
solverPerf.print(Info(mesh().comm())); solverPerf.print(Info.masterStream(mesh().comm()));
} }
diag() = saveDiag; diag() = saveDiag;