From 78d8f619ee75be3f47df7f16fbfd38d519d0a1d3 Mon Sep 17 00:00:00 2001 From: Henry Date: Tue, 13 May 2014 10:34:11 +0100 Subject: [PATCH] Remove confusing IInfo macro the benefit of which is insufficient Simply use the indent manipulator --- src/OpenFOAM/db/error/messageStream.H | 7 ------ src/fvOptions/fvOptions/fvOption.C | 22 +++++++++++-------- .../AMIInterpolation/AMIInterpolation.C | 9 +++++--- 3 files changed, 19 insertions(+), 19 deletions(-) diff --git a/src/OpenFOAM/db/error/messageStream.H b/src/OpenFOAM/db/error/messageStream.H index 68032d40..01575f22 100644 --- a/src/OpenFOAM/db/error/messageStream.H +++ b/src/OpenFOAM/db/error/messageStream.H @@ -282,13 +282,6 @@ extern messageStream Info; ::Foam::Pout<< "["<< __FILE__ << ":" << __LINE__ << "] " \ << #var " = " << var << ::Foam::endl -/** - * \def IInfo - * Indented Info -*/ -#define IInfo \ - ::Foam::Info<< indent - // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // diff --git a/src/fvOptions/fvOptions/fvOption.C b/src/fvOptions/fvOptions/fvOption.C index 011b8e6e..3387bdec 100644 --- a/src/fvOptions/fvOptions/fvOption.C +++ b/src/fvOptions/fvOptions/fvOption.C @@ -113,7 +113,7 @@ void Foam::fv::option::setCellSet() { case smPoints: { - IInfo<< "- selecting cells using points" << endl; + Info<< indent << "- selecting cells using points" << endl; labelHashSet selectedCells; @@ -141,7 +141,8 @@ void Foam::fv::option::setCellSet() } case smCellSet: { - IInfo<< "- selecting cells using cellSet " << cellSetName_ << endl; + Info<< indent + << "- selecting cells using cellSet " << cellSetName_ << endl; cellSet selectedCells(mesh_, cellSetName_); cells_ = selectedCells.toc(); @@ -150,7 +151,8 @@ void Foam::fv::option::setCellSet() } case smCellZone: { - IInfo<< "- selecting cells using cellZone " << cellSetName_ << endl; + Info<< indent + << "- selecting cells using cellZone " << cellSetName_ << endl; label zoneID = mesh_.cellZones().findZoneID(cellSetName_); if (zoneID == -1) @@ -168,7 +170,7 @@ void Foam::fv::option::setCellSet() { if (active_ && master_) { - IInfo<< "- selecting inter region mapping" << endl; + Info<< indent << "- selecting inter region mapping" << endl; const fvMesh& nbrMesh = mesh_.time().lookupObject(nbrRegionName_); @@ -213,7 +215,7 @@ void Foam::fv::option::setCellSet() } case smAll: { - IInfo<< "- selecting all cells" << endl; + Info<< indent << "- selecting all cells" << endl; cells_ = identity(mesh_.nCells()); break; @@ -238,7 +240,8 @@ void Foam::fv::option::setCellSet() } reduce(V_, sumOp()); - IInfo<< "- selected " << returnReduce(cells_.size(), sumOp