From 68e86f97fee94420ea6c358a955041ad2a6eb157 Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Wed, 20 Jan 2016 10:18:13 +0000 Subject: [PATCH] Info -> InfoInFunction and updated comments --- .../HashTables/HashTable/HashTable.C | 69 +++++++++---------- .../StaticHashTable/StaticHashTable.C | 69 ++++++++----------- src/OpenFOAM/db/IOstreams/Fstreams/IFstream.C | 17 ++--- src/OpenFOAM/db/IOstreams/Fstreams/OFstream.C | 5 +- src/OpenFOAM/db/Time/findTimes.C | 5 +- src/OpenFOAM/db/dictionary/dictionaryIO.C | 4 +- .../dlLibraryTable/dlLibraryTable.C | 12 ++-- src/OpenFOAM/db/regIOobject/regIOobjectRead.C | 18 ++--- .../db/regIOobject/regIOobjectWrite.C | 5 +- src/OpenFOAM/meshes/polyMesh/polyMesh.C | 9 ++- src/OpenFOAM/meshes/polyMesh/polyMeshClear.C | 23 ++----- src/OpenFOAM/meshes/polyMesh/polyMeshIO.C | 54 +-------------- .../meshes/polyMesh/polyMeshInitMesh.C | 9 ++- src/OpenFOAM/meshes/polyMesh/polyMeshUpdate.C | 6 +- .../meshes/polyMesh/zones/ZoneMesh/ZoneMesh.C | 2 +- .../meshes/polyMesh/zones/faceZone/faceZone.C | 39 ++--------- .../meshes/polyMesh/zones/zone/zone.C | 12 ++-- .../primitiveMeshCheck/primitiveMeshCheck.C | 67 +++++------------- .../meshReader/createPolyBoundary.C | 10 +-- .../meshReader/starcd/STARCDMeshReader.C | 4 +- .../solidBodyMotionFunctions/SDA/SDA.C | 5 +- .../axisRotationMotion/axisRotationMotion.C | 6 +- .../linearMotion/linearMotion.C | 6 +- .../multiMotion/multiMotion.C | 6 +- .../oscillatingLinearMotion.C | 7 +- .../oscillatingRotatingMotion.C | 7 +- .../rotatingMotion/rotatingMotion.C | 6 +- .../tabulated6DoFMotion/tabulated6DoFMotion.C | 3 +- .../meshCut/wallLayerCells/wallLayerCells.C | 11 +-- .../polyMeshAdder/faceCoupleInfo.C | 58 +++++----------- .../polyMeshAdder/faceCoupleInfo.H | 6 +- src/sampling/probes/patchProbes.C | 5 +- .../sampledSet/sampledSet/sampledSet.C | 28 ++------ src/surfMesh/MeshedSurface/MeshedSurface.C | 5 +- src/surfMesh/MeshedSurface/MeshedSurfaceNew.C | 6 +- .../UnsortedMeshedSurfaceNew.C | 4 +- src/surfMesh/surfMesh/surfMeshClear.C | 14 ++-- src/surfMesh/surfMesh/surfMeshIO.C | 8 +-- .../liquidProperties/liquidProperties.C | 8 +-- .../solidProperties/solidPropertiesNew.C | 10 ++- .../thermophysicalFunction.C | 12 ++-- .../linearValveFvMesh/linearValveFvMesh.C | 4 +- .../linearValveLayersFvMesh.C | 11 ++- .../mixerFvMesh/mixerFvMesh.C | 8 +-- .../movingConeTopoFvMesh.C | 46 +------------ 45 files changed, 234 insertions(+), 495 deletions(-) diff --git a/src/OpenFOAM/containers/HashTables/HashTable/HashTable.C b/src/OpenFOAM/containers/HashTables/HashTable/HashTable.C index 7e36d1eb6e..a76846247d 100644 --- a/src/OpenFOAM/containers/HashTables/HashTable/HashTable.C +++ b/src/OpenFOAM/containers/HashTables/HashTable/HashTable.C @@ -121,13 +121,12 @@ bool Foam::HashTable::found(const Key& key) const } } -# ifdef FULLDEBUG + #ifdef FULLDEBUG if (debug) { - Info<< "HashTable::found(const Key& key) : " - << "Entry " << key << " not found in hash table\n"; + InfoInFunction << "Entry " << key << " not found in hash table\n"; } -# endif + #endif return false; } @@ -153,13 +152,12 @@ Foam::HashTable::find } } -# ifdef FULLDEBUG + #ifdef FULLDEBUG if (debug) { - Info<< "HashTable::find(const Key& key) : " - << "Entry " << key << " not found in hash table\n"; + InfoInFunction << "Entry " << key << " not found in hash table\n"; } -# endif + #endif return iterator(); } @@ -185,13 +183,12 @@ Foam::HashTable::find } } -# ifdef FULLDEBUG + #ifdef FULLDEBUG if (debug) { - Info<< "HashTable::find(const Key& key) const : " - << "Entry " << key << " not found in hash table\n"; + InfoInFunction << "Entry " << key << " not found in hash table\n"; } -# endif + #endif return const_iterator(); } @@ -250,7 +247,7 @@ bool Foam::HashTable::set prev = ep; } - // not found, insert it at the head + // Not found, insert it at the head if (!existing) { table_[hashIdx] = new hashedEntry(key, table_[hashIdx], newEntry); @@ -258,39 +255,36 @@ bool Foam::HashTable::set if (double(nElmts_)/tableSize_ > 0.8 && tableSize_ < maxTableSize) { -# ifdef FULLDEBUG + #ifdef FULLDEBUG if (debug) { - Info<< "HashTable::set" - "(const Key& key, T newEntry) : " - "Doubling table size\n"; + InfoInFunction << "Doubling table size\n"; } -# endif + #endif resize(2*tableSize_); } } else if (protect) { - // found - but protected from overwriting + // Found - but protected from overwriting // this corresponds to the STL 'insert' convention -# ifdef FULLDEBUG + #ifdef FULLDEBUG if (debug) { - Info<< "HashTable::set" - "(const Key& key, T newEntry, true) : " - "Cannot insert " << key << " already in hash table\n"; + InfoInFunction + << "Cannot insert " << key << " already in hash table\n"; } -# endif + #endif return false; } else { - // found - overwrite existing entry + // Found - overwrite existing entry // this corresponds to the Perl convention hashedEntry* ep = new hashedEntry(key, existing->next_, newEntry); - // replace existing element - within list or insert at the head + // Replace existing element - within list or insert at the head if (prev) { prev->next_ = ep; @@ -310,7 +304,7 @@ bool Foam::HashTable::set template bool Foam::HashTable::iteratorBase::erase() { - // note: entryPtr_ is NULL for end(), so this catches that too + // Note: entryPtr_ is NULL for end(), so this catches that too if (entryPtr_) { // Search element before entryPtr_ @@ -332,7 +326,7 @@ bool Foam::HashTable::iteratorBase::erase() if (prev) { - // has an element before entryPtr - reposition to there + // Has an element before entryPtr - reposition to there prev->next_ = entryPtr_->next_; delete entryPtr_; entryPtr_ = prev; @@ -343,7 +337,7 @@ bool Foam::HashTable::iteratorBase::erase() hashTable_->table_[hashIndex_] = entryPtr_->next_; delete entryPtr_; - // assign any non-NULL pointer value so it doesn't look + // Assign any non-NULL pointer value so it doesn't look // like end()/cend() entryPtr_ = reinterpret_cast(this); @@ -378,7 +372,7 @@ bool Foam::HashTable::iteratorBase::erase() template bool Foam::HashTable::erase(const iterator& iter) { - // adjust iterator after erase + // Adjust iterator after erase return const_cast(iter).erase(); } @@ -439,13 +433,12 @@ void Foam::HashTable::resize(const label sz) if (newSize == tableSize_) { -# ifdef FULLDEBUG + #ifdef FULLDEBUG if (debug) { - Info<< "HashTable::resize(const label) : " - << "new table size == old table size\n"; + InfoInFunction << "New table size == old table size\n"; } -# endif + #endif return; } @@ -508,7 +501,7 @@ void Foam::HashTable::shrink() if (newSize < tableSize_) { - // avoid having the table disappear on us + // Avoid having the table disappear on us resize(newSize ? newSize : 2); } } @@ -517,7 +510,7 @@ void Foam::HashTable::shrink() template void Foam::HashTable::transfer(HashTable& ht) { - // as per the Destructor + // As per the Destructor if (table_) { clear(); @@ -551,7 +544,7 @@ void Foam::HashTable::operator= << abort(FatalError); } - // could be zero-sized from a previous transfer() + // Could be zero-sized from a previous transfer() if (!tableSize_) { resize(rhs.tableSize_); @@ -574,7 +567,7 @@ bool Foam::HashTable::operator== const HashTable& rhs ) const { - // sizes (number of keys) must match + // Sizes (number of keys) must match if (size() != rhs.size()) { return false; diff --git a/src/OpenFOAM/containers/HashTables/StaticHashTable/StaticHashTable.C b/src/OpenFOAM/containers/HashTables/StaticHashTable/StaticHashTable.C index f4fe74840f..05ad88f33e 100644 --- a/src/OpenFOAM/containers/HashTables/StaticHashTable/StaticHashTable.C +++ b/src/OpenFOAM/containers/HashTables/StaticHashTable/StaticHashTable.C @@ -39,12 +39,12 @@ Foam::label Foam::StaticHashTableCore::canonicalSize(const label size) return 0; } - // enforce power of two + // Enforce power of two unsigned int goodSize = size; if (goodSize & (goodSize - 1)) { - // brute-force is fast enough + // Brute-force is fast enough goodSize = 1; while (goodSize < unsigned(size)) { @@ -58,7 +58,6 @@ Foam::label Foam::StaticHashTableCore::canonicalSize(const label size) // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // -// Construct given initial table size template Foam::StaticHashTable::StaticHashTable(const label size) : @@ -78,7 +77,6 @@ Foam::StaticHashTable::StaticHashTable(const label size) } -// Construct as copy template Foam::StaticHashTable::StaticHashTable ( @@ -137,13 +135,12 @@ bool Foam::StaticHashTable::found(const Key& key) const } } -# ifdef FULLDEBUG + #ifdef FULLDEBUG if (debug) { - Info<< "StaticHashTable::found(const Key&) : " - << "Entry " << key << " not found in hash table\n"; + InfoInFunction << "Entry " << key << " not found in hash table\n"; } -# endif + #endif return false; } @@ -170,13 +167,12 @@ Foam::StaticHashTable::find } } -# ifdef FULLDEBUG + #ifdef FULLDEBUG if (debug) { - Info<< "StaticHashTable::find(const Key&) : " - << "Entry " << key << " not found in hash table\n"; + InfoInFunction << "Entry " << key << " not found in hash table\n"; } -# endif + #endif return end(); } @@ -203,19 +199,17 @@ Foam::StaticHashTable::find } } -# ifdef FULLDEBUG + #ifdef FULLDEBUG if (debug) { - Info<< "StaticHashTable::find(const Key&) const : " - << "Entry " << key << " not found in hash table\n"; + InfoInFunction << "Entry " << key << " not found in hash table\n"; } -# endif + #endif return cend(); } -// Return the table of contents template Foam::List Foam::StaticHashTable::toc() const { @@ -254,7 +248,7 @@ bool Foam::StaticHashTable::set if (existing == localKeys.size()) { - // not found, append + // Not found, append List& localObjects = objects_[hashIdx]; localKeys.setSize(existing+1); @@ -267,21 +261,20 @@ bool Foam::StaticHashTable::set } else if (protect) { - // found - but protected from overwriting + // Found - but protected from overwriting // this corresponds to the STL 'insert' convention -# ifdef FULLDEBUG + #ifdef FULLDEBUG if (debug) { - Info<< "StaticHashTable::set" - "(const Key& key, T newEntry, true) : " - "Cannot insert " << key << " already in hash table\n"; + InfoInFunction + << "Cannot insert " << key << " already in hash table\n"; } -# endif + #endif return false; } else { - // found - overwrite existing entry + // Found - overwrite existing entry // this corresponds to the Perl convention objects_[hashIdx][existing] = newEntry; } @@ -307,7 +300,7 @@ bool Foam::StaticHashTable::erase(const iterator& cit) localKeys.setSize(localKeys.size()-1); localObjects.setSize(localObjects.size()-1); - // adjust iterator after erase + // Adjust iterator after erase iterator& it = const_cast(cit); it.elemIndex_--; @@ -321,25 +314,24 @@ bool Foam::StaticHashTable::erase(const iterator& cit) nElmts_--; -# ifdef FULLDEBUG + #ifdef FULLDEBUG if (debug) { - Info<< "StaticHashTable::erase(iterator&) : " - << "hashedEntry removed.\n"; + InfoInFunction << "hashedEntry removed.\n"; } -# endif + #endif return true; } else { -# ifdef FULLDEBUG + #ifdef FULLDEBUG if (debug) { - Info<< "StaticHashTable::erase(iterator&) : " - << "cannot remove hashedEntry from hash table\n"; + InfoInFunction + << "Cannot remove hashedEntry from hash table\n"; } -# endif + #endif return false; } @@ -391,13 +383,12 @@ void Foam::StaticHashTable::resize(const label sz) if (newSize == keys_.size()) { -# ifdef FULLDEBUG + #ifdef FULLDEBUG if (debug) { - Info<< "StaticHashTable::resize(const label) : " - << "new table size == old table size\n"; + InfoInFunction << "New table size == old table size\n"; } -# endif + #endif return; } @@ -517,7 +508,7 @@ bool Foam::StaticHashTable::operator== const StaticHashTable& rhs ) const { - // sizes (number of keys) must match + // Sizes (number of keys) must match for (const_iterator iter = rhs.cbegin(); iter != rhs.cend(); ++iter) { diff --git a/src/OpenFOAM/db/IOstreams/Fstreams/IFstream.C b/src/OpenFOAM/db/IOstreams/Fstreams/IFstream.C index cb78b01289..57a90a196d 100644 --- a/src/OpenFOAM/db/IOstreams/Fstreams/IFstream.C +++ b/src/OpenFOAM/db/IOstreams/Fstreams/IFstream.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -31,7 +31,7 @@ License namespace Foam { -defineTypeNameAndDebug(IFstream, 0); + defineTypeNameAndDebug(IFstream, 0); } @@ -46,8 +46,7 @@ Foam::IFstreamAllocator::IFstreamAllocator(const fileName& pathname) { if (IFstream::debug) { - Info<< "IFstreamAllocator::IFstreamAllocator(const fileName&) : " - "cannot open null file " << endl; + InfoInFunction << "Cannot open null file " << endl; } } @@ -58,8 +57,7 @@ Foam::IFstreamAllocator::IFstreamAllocator(const fileName& pathname) { if (IFstream::debug) { - Info<< "IFstreamAllocator::IFstreamAllocator(const fileName&) : " - "decompressing " << pathname + ".gz" << endl; + InfoInFunction << "Decompressing " << pathname + ".gz" << endl; } delete ifPtr_; @@ -108,11 +106,8 @@ Foam::IFstream::IFstream { if (debug) { - Info<< "IFstream::IFstream(const fileName&," - "streamFormat=ASCII," - "versionNumber=currentVersion) : " - "could not open file for input" - << endl << info() << endl; + InfoInFunction + << "Could not open file for input" << endl << info() << endl; } setBad(); diff --git a/src/OpenFOAM/db/IOstreams/Fstreams/OFstream.C b/src/OpenFOAM/db/IOstreams/Fstreams/OFstream.C index 5e9734d915..f008767f6b 100644 --- a/src/OpenFOAM/db/IOstreams/Fstreams/OFstream.C +++ b/src/OpenFOAM/db/IOstreams/Fstreams/OFstream.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -49,8 +49,7 @@ Foam::OFstreamAllocator::OFstreamAllocator { if (OFstream::debug) { - Info<< "OFstreamAllocator::OFstreamAllocator(const fileName&) : " - "cannot open null file " << endl; + InfoInFunction << "Cannot open null file " << endl; } } diff --git a/src/OpenFOAM/db/Time/findTimes.C b/src/OpenFOAM/db/Time/findTimes.C index 3384916737..ccd7312a2b 100644 --- a/src/OpenFOAM/db/Time/findTimes.C +++ b/src/OpenFOAM/db/Time/findTimes.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -42,8 +42,7 @@ Foam::instantList Foam::Time::findTimes { if (debug) { - Info<< "Time::findTimes(const fileName&): finding times in directory " - << directory << endl; + InfoInFunction << "Finding times in directory " << directory << endl; } // Read directory entries into a list diff --git a/src/OpenFOAM/db/dictionary/dictionaryIO.C b/src/OpenFOAM/db/dictionary/dictionaryIO.C index f6beeb1e91..f27d326d8c 100644 --- a/src/OpenFOAM/db/dictionary/dictionaryIO.C +++ b/src/OpenFOAM/db/dictionary/dictionaryIO.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -112,7 +112,7 @@ bool Foam::dictionary::read(Istream& is, const bool keepHeader) if (is.bad()) { - Info<< "dictionary::read(Istream&, bool) : " + InfoInFunction << "Istream not OK after reading dictionary " << name() << endl; diff --git a/src/OpenFOAM/db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C b/src/OpenFOAM/db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C index a052289eb6..83a4658108 100644 --- a/src/OpenFOAM/db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C +++ b/src/OpenFOAM/db/dynamicLibrary/dlLibraryTable/dlLibraryTable.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -61,8 +61,8 @@ Foam::dlLibraryTable::~dlLibraryTable() { if (debug) { - Info<< "dlLibraryTable::~dlLibraryTable() : closing " - << libNames_[i] + InfoInFunction + << "Closing " << libNames_[i] << " with handle " << uintptr_t(libPtrs_[i]) << endl; } dlClose(libPtrs_[i]); @@ -85,7 +85,8 @@ bool Foam::dlLibraryTable::open if (debug) { - Info<< "dlLibraryTable::open : opened " << functionLibName + InfoInFunction + << "Opened " << functionLibName << " resulting in handle " << uintptr_t(functionLibPtr) << endl; } @@ -134,7 +135,8 @@ bool Foam::dlLibraryTable::close { if (debug) { - Info<< "dlLibraryTable::close : closing " << functionLibName + InfoInFunction + << "Closing " << functionLibName << " with handle " << uintptr_t(libPtrs_[index]) << endl; } diff --git a/src/OpenFOAM/db/regIOobject/regIOobjectRead.C b/src/OpenFOAM/db/regIOobject/regIOobjectRead.C index 10ec626974..83f27c0cce 100644 --- a/src/OpenFOAM/db/regIOobject/regIOobjectRead.C +++ b/src/OpenFOAM/db/regIOobject/regIOobjectRead.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -28,15 +28,14 @@ License #include "Time.H" #include "Pstream.H" - // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // Foam::Istream& Foam::regIOobject::readStream() { if (IFstream::debug) { - Info<< "regIOobject::readStream() : " - << "reading object " << name() + InfoInFunction + << "Reading object " << name() << " from file " << objectPath() << endl; } @@ -112,8 +111,8 @@ Foam::Istream& Foam::regIOobject::readStream(const word& expectName) { if (IFstream::debug) { - Info<< "regIOobject::readStream(const word&) : " - << "reading object " << name() + InfoInFunction + << "Reading object " << name() << " from file " << objectPath() << endl; } @@ -149,8 +148,8 @@ void Foam::regIOobject::close() { if (IFstream::debug) { - Info<< "regIOobject::close() : " - << "finished reading " << filePath() + InfoInFunction + << "Finished reading " << filePath() << endl; } @@ -288,7 +287,8 @@ bool Foam::regIOobject::readIfModified() if (modified()) { const fileName& fName = time().getFile(watchIndex_); - Info<< "regIOobject::readIfModified() : " << nl + InfoInFunction + << nl << " Re-reading object " << name() << " from file " << fName << endl; return read(); diff --git a/src/OpenFOAM/db/regIOobject/regIOobjectWrite.C b/src/OpenFOAM/db/regIOobject/regIOobjectWrite.C index 3b436890fb..c2b891cd01 100644 --- a/src/OpenFOAM/db/regIOobject/regIOobjectWrite.C +++ b/src/OpenFOAM/db/regIOobject/regIOobjectWrite.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -74,8 +74,7 @@ bool Foam::regIOobject::writeObject if (OFstream::debug) { - Info<< "regIOobject::write() : " - << "writing file " << objectPath(); + InfoInFunction << "Writing file " << objectPath(); } diff --git a/src/OpenFOAM/meshes/polyMesh/polyMesh.C b/src/OpenFOAM/meshes/polyMesh/polyMesh.C index 5df8ef5fd7..0a793a5155 100644 --- a/src/OpenFOAM/meshes/polyMesh/polyMesh.C +++ b/src/OpenFOAM/meshes/polyMesh/polyMesh.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -1051,8 +1051,8 @@ Foam::tmp Foam::polyMesh::movePoints { if (debug) { - Info<< "tmp polyMesh::movePoints(const pointField&) : " - << " Moving points for time " << time().value() + InfoInFunction + << "Moving points for time " << time().value() << " index " << time().timeIndex() << endl; } @@ -1077,8 +1077,7 @@ Foam::tmp Foam::polyMesh::movePoints { moveError = true; - Info<< "tmp polyMesh::movePoints" - << "(const pointField&) : " + InfoInFunction << "Moving the mesh with given points will " << "invalidate the mesh." << nl << "Mesh motion should not be executed." << endl; diff --git a/src/OpenFOAM/meshes/polyMesh/polyMeshClear.C b/src/OpenFOAM/meshes/polyMesh/polyMeshClear.C index 25eb1fd29d..4cea2cb388 100644 --- a/src/OpenFOAM/meshes/polyMesh/polyMeshClear.C +++ b/src/OpenFOAM/meshes/polyMesh/polyMeshClear.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -37,9 +37,7 @@ void Foam::polyMesh::removeBoundary() { if (debug) { - Info<< "void polyMesh::removeBoundary(): " - << "Removing boundary patches." - << endl; + InfoInFunction << "Removing boundary patches." << endl; } // Remove the point zones @@ -56,9 +54,7 @@ void Foam::polyMesh::clearGeom() { if (debug) { - Info<< "void polyMesh::clearGeom() : " - << "clearing geometric data" - << endl; + InfoInFunction << "Clearing geometric data" << endl; } // Clear all geometric mesh objects @@ -84,9 +80,7 @@ void Foam::polyMesh::clearAdditionalGeom() { if (debug) { - Info<< "void polyMesh::clearAdditionalGeom() : " - << "clearing additional geometric data" - << endl; + InfoInFunction << "Clearing additional geometric data" << endl; } // Remove the stored tet base points @@ -100,9 +94,8 @@ void Foam::polyMesh::clearAddressing(const bool isMeshUpdate) { if (debug) { - Info<< "void polyMesh::clearAddressing() : " - << "clearing topology isMeshUpdate:" << isMeshUpdate - << endl; + InfoInFunction + << "Clearing topology isMeshUpdate:" << isMeshUpdate << endl; } if (isMeshUpdate) @@ -181,9 +174,7 @@ void Foam::polyMesh::clearCellTree() { if (debug) { - Info<< "void polyMesh::clearCellTree() : " - << "clearing cell tree" - << endl; + InfoInFunction << "Clearing cell tree" << endl; } cellTreePtr_.clear(); diff --git a/src/OpenFOAM/meshes/polyMesh/polyMeshIO.C b/src/OpenFOAM/meshes/polyMesh/polyMeshIO.C index f185c79a6f..9ddd2d8394 100644 --- a/src/OpenFOAM/meshes/polyMesh/polyMeshIO.C +++ b/src/OpenFOAM/meshes/polyMesh/polyMeshIO.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2016 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -33,8 +33,7 @@ void Foam::polyMesh::setInstance(const fileName& inst) { if (debug) { - Info<< "void polyMesh::setInstance(const fileName& inst) : " - << "Resetting file instance to " << inst << endl; + InfoInFunction << "Resetting file instance to " << inst << endl; } points_.writeOpt() = IOobject::AUTO_WRITE; @@ -67,8 +66,7 @@ Foam::polyMesh::readUpdateState Foam::polyMesh::readUpdate() { if (debug) { - Info<< "polyMesh::readUpdateState polyMesh::readUpdate() : " - << "Updating mesh based on saved data." << endl; + InfoInFunction << "Updating mesh based on saved data." << endl; } // Find the point and cell instance @@ -80,8 +78,6 @@ Foam::polyMesh::readUpdateState Foam::polyMesh::readUpdate() { Info<< "Faces instance: old = " << facesInstance() << " new = " << facesInst << nl - //<< "Boundary instance: old = " << boundary_.instance() - //<< " new = " << boundaryInst << nl << "Points instance: old = " << pointsInstance() << " new = " << pointsInst << endl; } @@ -449,50 +445,6 @@ Foam::polyMesh::readUpdateState Foam::polyMesh::readUpdate() geometricD_ = Vector