Info: Use nl rather than "\n..." to ensure region-prefixed printing
This commit is contained in:
@ -108,7 +108,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
Info<< "\nStarting time loop\n" << endl;
|
Info<< nl << "Starting time loop\n" << endl;
|
||||||
|
|
||||||
while (pimple.run(runTime))
|
while (pimple.run(runTime))
|
||||||
{
|
{
|
||||||
|
|||||||
@ -119,7 +119,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
Info<< "\nStarting time loop\n" << endl;
|
Info<< nl << "Starting time loop\n" << endl;
|
||||||
|
|
||||||
while (pimple.run(runTime))
|
while (pimple.run(runTime))
|
||||||
{
|
{
|
||||||
|
|||||||
@ -43,7 +43,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
Info<< "\nEnd\n" << endl;
|
Info<< nl << "End" << nl << endl;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -67,7 +67,7 @@ Description
|
|||||||
For example,
|
For example,
|
||||||
\code
|
\code
|
||||||
list.resize(4);
|
list.resize(4);
|
||||||
Info<< list[10] << "\n"; // print zero, but doesn't adjust list
|
Info<< list[10] << nl; // print zero, but doesn't adjust list
|
||||||
list[8] = 1;
|
list[8] = 1;
|
||||||
\endcode
|
\endcode
|
||||||
|
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -1237,14 +1237,14 @@ void Foam::argList::printNotes() const
|
|||||||
|
|
||||||
void Foam::argList::printUsage() const
|
void Foam::argList::printUsage() const
|
||||||
{
|
{
|
||||||
Info<< "\nUsage: " << executable_ << " [OPTIONS]";
|
Info<< nl << "Usage: " << executable_ << " [OPTIONS]";
|
||||||
|
|
||||||
forAllConstIter(SLList<string>, validArgs, iter)
|
forAllConstIter(SLList<string>, validArgs, iter)
|
||||||
{
|
{
|
||||||
Info<< " <" << iter().c_str() << '>';
|
Info<< " <" << iter().c_str() << '>';
|
||||||
}
|
}
|
||||||
|
|
||||||
Info<< "\noptions:\n";
|
Info<< nl << "options:" << nl;
|
||||||
|
|
||||||
wordList opts = validOptions.sortedToc();
|
wordList opts = validOptions.sortedToc();
|
||||||
forAll(opts, optI)
|
forAll(opts, optI)
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
Info<< "\nReading g" << endl;
|
Info<< nl << "Reading g" << endl;
|
||||||
uniformDimensionedVectorField g
|
uniformDimensionedVectorField g
|
||||||
(
|
(
|
||||||
IOobject
|
IOobject
|
||||||
|
|||||||
@ -637,7 +637,7 @@ void Foam::MomentumCloud<CloudType>::preEvolve()
|
|||||||
// with topology change due to lazy evaluation of valid mesh dimensions
|
// with topology change due to lazy evaluation of valid mesh dimensions
|
||||||
label nGeometricD = this->mesh().nGeometricD();
|
label nGeometricD = this->mesh().nGeometricD();
|
||||||
|
|
||||||
Info<< endl << "Solving " << nGeometricD << "-D cloud " << this->name()
|
Info<< nl << "Solving " << nGeometricD << "-D cloud " << this->name()
|
||||||
<< endl;
|
<< endl;
|
||||||
|
|
||||||
this->dispersion().cacheFields(true);
|
this->dispersion().cacheFields(true);
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -551,7 +551,7 @@ void Foam::radiationModels::viewFactor::calculate()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Info<< "\nSolving view factor equations..." << endl;
|
Info<< nl << "Solving view factor equations..." << endl;
|
||||||
|
|
||||||
// Negative coming into the fluid
|
// Negative coming into the fluid
|
||||||
LUsolve(C, q);
|
LUsolve(C, q);
|
||||||
|
|||||||
@ -894,7 +894,8 @@ void Foam::momentumSurfaceFilm::addSources
|
|||||||
)
|
)
|
||||||
{
|
{
|
||||||
DebugInFunction
|
DebugInFunction
|
||||||
<< "\nSurface film: " << type() << ": adding to film source:" << nl
|
<< nl
|
||||||
|
<< "Surface film: " << type() << ": adding to film source:" << nl
|
||||||
<< " mass = " << massSource << nl
|
<< " mass = " << massSource << nl
|
||||||
<< " momentum = " << momentumSource << nl
|
<< " momentum = " << momentumSource << nl
|
||||||
<< " pressure = " << pressureSource << endl;
|
<< " pressure = " << pressureSource << endl;
|
||||||
@ -1018,7 +1019,7 @@ Foam::momentumSurfaceFilm::primaryMomentumTrans() const
|
|||||||
|
|
||||||
void Foam::momentumSurfaceFilm::info()
|
void Foam::momentumSurfaceFilm::info()
|
||||||
{
|
{
|
||||||
Info<< "\nSurface film: " << type() << endl;
|
Info<< nl << "Surface film: " << type() << endl;
|
||||||
|
|
||||||
const scalarField& deltaInternal = delta_;
|
const scalarField& deltaInternal = delta_;
|
||||||
const vectorField& Uinternal = U_;
|
const vectorField& Uinternal = U_;
|
||||||
|
|||||||
@ -348,7 +348,7 @@ Foam::surfaceFilm::passivePatchIDs() const
|
|||||||
|
|
||||||
void Foam::surfaceFilm::evolve()
|
void Foam::surfaceFilm::evolve()
|
||||||
{
|
{
|
||||||
Info<< "\nEvolving " << modelType_ << " for film "
|
Info<< nl << "Evolving " << modelType_ << " for film "
|
||||||
<< mesh_.name() << endl;
|
<< mesh_.name() << endl;
|
||||||
|
|
||||||
preEvolveFilm();
|
preEvolveFilm();
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -45,11 +45,11 @@ Foam::ignition::ignition
|
|||||||
{
|
{
|
||||||
if (ignite_)
|
if (ignite_)
|
||||||
{
|
{
|
||||||
Info<< "\nIgnition on" << endl;
|
Info<< nl << "Ignition on" << endl;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Info<< "\nIgnition switched off" << endl;
|
Info<< nl << "Ignition switched off" << endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user