From cc99b65d778a0c7532451b9d27e2c460634fd1bb Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Tue, 10 Nov 2015 21:13:04 +0000 Subject: [PATCH] src/OpenFOAM: Update ...IOErrorIn -> ...IOErrorInFunction Avoids the clutter and maintenance effort associated with providing the function signature string. --- .../HashTables/HashPtrTable/HashPtrTableIO.C | 11 ++--- .../HashTables/HashTable/HashTableIO.C | 11 ++--- .../LinkedLists/accessTypes/ILList/ILListIO.C | 7 ++-- .../LinkedLists/accessTypes/LList/LListIO.C | 5 +-- .../accessTypes/LPtrList/LPtrListIO.C | 8 ++-- .../containers/Lists/FixedList/FixedListIO.C | 2 +- src/OpenFOAM/containers/Lists/List/ListIO.C | 6 +-- .../containers/Lists/PackedList/PackedList.C | 18 ++------- .../containers/Lists/PtrList/PtrListIO.C | 9 ++--- src/OpenFOAM/containers/Lists/UList/UListIO.C | 10 ++--- src/OpenFOAM/db/IOobject/IOobjectReadHeader.C | 12 +++--- .../IOobjects/CompactIOField/CompactIOField.C | 5 +-- .../IOobjects/CompactIOList/CompactIOList.C | 5 +-- src/OpenFOAM/db/IOobjects/IOField/IOField.C | 14 +++---- src/OpenFOAM/db/IOobjects/IOList/IOList.C | 14 +++---- .../db/IOobjects/IOdictionary/IOdictionary.C | 10 ++--- .../db/IOstreams/IOstreams/IOstream.C | 16 +++----- src/OpenFOAM/db/IOstreams/IOstreams/Istream.C | 16 ++++---- src/OpenFOAM/db/IOstreams/Sstreams/ISstream.C | 34 ++++++++-------- src/OpenFOAM/db/IOstreams/Sstreams/OSstream.C | 2 +- src/OpenFOAM/db/IOstreams/Sstreams/ReadHex.C | 2 +- src/OpenFOAM/db/IOstreams/Tstreams/ITstream.C | 3 +- src/OpenFOAM/db/IOstreams/token/token.C | 11 ++--- src/OpenFOAM/db/IOstreams/token/tokenIO.C | 6 +-- src/OpenFOAM/db/Time/Time.C | 14 +++---- src/OpenFOAM/db/Time/TimeIO.C | 10 ++--- src/OpenFOAM/db/Time/timeSelector.C | 2 +- src/OpenFOAM/db/dictionary/dictionary.C | 40 +++++++------------ .../dictionaryEntry/dictionaryEntry.C | 4 +- src/OpenFOAM/db/dictionary/dictionaryIO.C | 6 +-- .../db/dictionary/dictionaryTemplates.C | 6 +-- src/OpenFOAM/db/dictionary/entry/entryIO.C | 14 ++----- .../functionEntries/codeStream/codeStream.C | 20 ++++------ .../includeEntry/includeEntry.C | 10 ++--- .../includeEtcEntry/includeEtcEntry.C | 8 +--- .../inputModeEntry/inputModeEntry.C | 4 +- .../primitiveEntry/primitiveEntryIO.C | 5 +-- .../db/dynamicLibrary/codedBase/codedBase.C | 26 +++++------- .../dlLibraryTable/dlLibraryTable.C | 14 +++---- .../dlLibraryTable/dlLibraryTableTemplates.C | 18 +++------ src/OpenFOAM/db/error/IOerror.C | 5 +-- .../db/objectRegistry/objectRegistry.C | 6 +-- .../db/regIOobject/regIOobjectWrite.C | 6 +-- src/OpenFOAM/dimensionSet/dimensionSetIO.C | 35 +++++----------- src/OpenFOAM/dimensionSet/dimensionSets.C | 8 ++-- .../FieldField/FieldFieldFunctions.C | 6 +-- .../fields/Fields/Field/FieldFunctions.C | 6 +-- .../GeometricField/GeometricField.C | 13 ++---- src/OpenFOAM/global/debug/debug.C | 3 +- .../splineInterpolationWeights.C | 9 ++--- .../LduMatrix/LduMatrixPreconditioner.C | 14 ++----- .../LduMatrix/LduMatrix/LduMatrixSmoother.C | 20 ++++------ .../LduMatrix/LduMatrix/LduMatrixSolver.C | 20 ++++------ src/OpenFOAM/matrices/Matrix/MatrixIO.C | 2 +- .../lduMatrix/lduMatrix/lduMatrixOperations.C | 4 +- .../lduMatrix/lduMatrixPreconditioner.C | 14 ++----- .../lduMatrix/lduMatrix/lduMatrixSmoother.C | 20 ++++------ .../lduMatrix/lduMatrix/lduMatrixSolver.C | 20 ++++------ .../matrices/scalarMatrices/SVD/SVD.C | 9 ++--- src/OpenFOAM/matrices/solution/solution.C | 12 +++--- .../meshes/meshShapes/cellModel/cellModel.C | 6 +-- .../meshes/meshShapes/cellShape/cellShapeIO.C | 6 +-- .../mapDistribute/IOmapDistribute.C | 8 ++-- .../basic/coupled/coupledPolyPatch.C | 14 ++----- .../polyMesh/zones/cellZone/cellZoneNew.C | 6 +-- .../polyMesh/zones/faceZone/faceZoneNew.C | 6 +-- .../polyMesh/zones/pointZone/pointZoneNew.C | 6 +-- .../PatchTools/PatchToolsSortPoints.C | 6 +-- .../treeBoundBox/treeBoundBoxTemplates.C | 9 ++--- src/OpenFOAM/primitives/Scalar/Scalar.C | 2 +- .../primitives/Tensor/tensor/tensor.C | 4 +- .../primitives/bools/Switch/SwitchIO.C | 6 +-- .../functions/DataEntry/TableFile/TableFile.C | 3 +- .../primitives/hashes/SHA1/SHA1Digest.C | 4 +- src/OpenFOAM/primitives/ints/int32/int32IO.C | 2 +- src/OpenFOAM/primitives/ints/int64/int64IO.C | 2 +- .../primitives/ints/uint32/uint32IO.C | 4 +- .../primitives/ints/uint64/uint64IO.C | 4 +- .../random/cachedRandom/cachedRandom.C | 6 +-- .../primitives/strings/fileName/fileNameIO.C | 4 +- .../primitives/strings/keyType/keyType.C | 6 +-- .../primitives/strings/string/stringIO.C | 4 +- src/OpenFOAM/primitives/strings/word/wordIO.C | 6 +-- .../primitives/strings/wordRe/wordRe.C | 6 +-- 84 files changed, 309 insertions(+), 491 deletions(-) diff --git a/src/OpenFOAM/containers/HashTables/HashPtrTable/HashPtrTableIO.C b/src/OpenFOAM/containers/HashTables/HashPtrTable/HashPtrTableIO.C index b6440ac28..283968a9b 100644 --- a/src/OpenFOAM/containers/HashTables/HashPtrTable/HashPtrTableIO.C +++ b/src/OpenFOAM/containers/HashTables/HashPtrTable/HashPtrTableIO.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -76,9 +76,8 @@ void Foam::HashPtrTable::read(Istream& is, const INew& inewt) } else { - FatalIOErrorIn + FatalIOErrorInFunction ( - "HashPtrTable::read(Istream&, const INew&)", is ) << "incorrect first token, '(', found " << firstToken.info() << exit(FatalIOError); @@ -92,9 +91,8 @@ void Foam::HashPtrTable::read(Istream& is, const INew& inewt) { if (firstToken.pToken() != token::BEGIN_LIST) { - FatalIOErrorIn + FatalIOErrorInFunction ( - "HashPtrTable::read(Istream&, const INew&)", is ) << "incorrect first token, '(', found " << firstToken.info() << exit(FatalIOError); @@ -125,9 +123,8 @@ void Foam::HashPtrTable::read(Istream& is, const INew& inewt) } else { - FatalIOErrorIn + FatalIOErrorInFunction ( - "HashPtrTable::read(Istream&, const INew&)", is ) << "incorrect first token, expected or '(', found " << firstToken.info() diff --git a/src/OpenFOAM/containers/HashTables/HashTable/HashTableIO.C b/src/OpenFOAM/containers/HashTables/HashTable/HashTableIO.C index 676c6977c..f56429ce5 100644 --- a/src/OpenFOAM/containers/HashTables/HashTable/HashTableIO.C +++ b/src/OpenFOAM/containers/HashTables/HashTable/HashTableIO.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -145,9 +145,8 @@ Foam::Istream& Foam::operator>> } else { - FatalIOErrorIn + FatalIOErrorInFunction ( - "operator>>(Istream&, HashTable&)", is ) << "incorrect first token, '(', found " << firstToken.info() << exit(FatalIOError); @@ -161,9 +160,8 @@ Foam::Istream& Foam::operator>> { if (firstToken.pToken() != token::BEGIN_LIST) { - FatalIOErrorIn + FatalIOErrorInFunction ( - "operator>>(Istream&, HashTable&)", is ) << "incorrect first token, '(', found " << firstToken.info() << exit(FatalIOError); @@ -199,9 +197,8 @@ Foam::Istream& Foam::operator>> } else { - FatalIOErrorIn + FatalIOErrorInFunction ( - "operator>>(Istream&, HashTable&)", is ) << "incorrect first token, expected or '(', found " << firstToken.info() diff --git a/src/OpenFOAM/containers/LinkedLists/accessTypes/ILList/ILListIO.C b/src/OpenFOAM/containers/LinkedLists/accessTypes/ILList/ILListIO.C index 6a1971bd2..befc71d1e 100644 --- a/src/OpenFOAM/containers/LinkedLists/accessTypes/ILList/ILListIO.C +++ b/src/OpenFOAM/containers/LinkedLists/accessTypes/ILList/ILListIO.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -89,9 +89,8 @@ void Foam::ILList::read(Istream& is, const INew& iNew) { if (firstToken.pToken() != token::BEGIN_LIST) { - FatalIOErrorIn + FatalIOErrorInFunction ( - "operator>>(Istream&, ILList&)", is ) << "incorrect first token, '(', found " << firstToken.info() << exit(FatalIOError); @@ -117,7 +116,7 @@ void Foam::ILList::read(Istream& is, const INew& iNew) } else { - FatalIOErrorIn("operator>>(Istream&, ILList&)", is) + FatalIOErrorInFunction(is) << "incorrect first token, expected or '(', found " << firstToken.info() << exit(FatalIOError); diff --git a/src/OpenFOAM/containers/LinkedLists/accessTypes/LList/LListIO.C b/src/OpenFOAM/containers/LinkedLists/accessTypes/LList/LListIO.C index 9907cbbf7..c14ff358e 100644 --- a/src/OpenFOAM/containers/LinkedLists/accessTypes/LList/LListIO.C +++ b/src/OpenFOAM/containers/LinkedLists/accessTypes/LList/LListIO.C @@ -90,9 +90,8 @@ Foam::Istream& Foam::operator>>(Istream& is, LList& L) { if (firstToken.pToken() != token::BEGIN_LIST) { - FatalIOErrorIn + FatalIOErrorInFunction ( - " operator>>(Istream&, LList&)", is ) << "incorrect first token, '(', found " << firstToken.info() << exit(FatalIOError); @@ -120,7 +119,7 @@ Foam::Istream& Foam::operator>>(Istream& is, LList& L) } else { - FatalIOErrorIn(" operator>>(Istream&, LList&)", is) + FatalIOErrorInFunction(is) << "incorrect first token, expected or '(', found " << firstToken.info() << exit(FatalIOError); diff --git a/src/OpenFOAM/containers/LinkedLists/accessTypes/LPtrList/LPtrListIO.C b/src/OpenFOAM/containers/LinkedLists/accessTypes/LPtrList/LPtrListIO.C index 089fd58c2..6a691c078 100644 --- a/src/OpenFOAM/containers/LinkedLists/accessTypes/LPtrList/LPtrListIO.C +++ b/src/OpenFOAM/containers/LinkedLists/accessTypes/LPtrList/LPtrListIO.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -94,9 +94,8 @@ void Foam::LPtrList::read(Istream& is, const INew& iNew) { if (firstToken.pToken() != token::BEGIN_LIST) { - FatalIOErrorIn + FatalIOErrorInFunction ( - "LPtrList::read(Istream&, const INew&)", is ) << "incorrect first token, '(', found " << firstToken.info() << exit(FatalIOError); @@ -125,9 +124,8 @@ void Foam::LPtrList::read(Istream& is, const INew& iNew) } else { - FatalIOErrorIn + FatalIOErrorInFunction ( - "LPtrList::read(Istream&, const INew&)", is ) << "incorrect first token, expected or '(', found " << firstToken.info() diff --git a/src/OpenFOAM/containers/Lists/FixedList/FixedListIO.C b/src/OpenFOAM/containers/Lists/FixedList/FixedListIO.C index 76970057a..62e801dd9 100644 --- a/src/OpenFOAM/containers/Lists/FixedList/FixedListIO.C +++ b/src/OpenFOAM/containers/Lists/FixedList/FixedListIO.C @@ -68,7 +68,7 @@ Foam::Istream& Foam::operator>>(Foam::Istream& is, FixedList& L) } else if (!firstToken.isPunctuation()) { - FatalIOErrorIn("operator>>(Istream&, FixedList&)", is) + FatalIOErrorInFunction(is) << "incorrect first token, expected