diff --git a/applications/solvers/electromagnetics/magneticFoam/createFields.H b/applications/solvers/electromagnetics/magneticFoam/createFields.H index 22d4008921..189ef5d105 100644 --- a/applications/solvers/electromagnetics/magneticFoam/createFields.H +++ b/applications/solvers/electromagnetics/magneticFoam/createFields.H @@ -58,7 +58,7 @@ if (magnetZonei == -1) { - FatalIOErrorIn(args.executable().c_str(), transportProperties) + FatalIOErrorInFunction(transportProperties) << "Cannot find faceZone for magnet " << magnets[i].name() << exit(FatalIOError); } diff --git a/applications/utilities/mesh/conversion/tetgenToFoam/tetgenToFoam.C b/applications/utilities/mesh/conversion/tetgenToFoam/tetgenToFoam.C index 2a4de9c57b..c3baad3458 100644 --- a/applications/utilities/mesh/conversion/tetgenToFoam/tetgenToFoam.C +++ b/applications/utilities/mesh/conversion/tetgenToFoam/tetgenToFoam.C @@ -3,7 +3,7 @@ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation - \\/ M anipulation | + \\/ M anipulation | Copyright (C) 2015 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -225,7 +225,7 @@ int main(int argc, char *argv[]) } if (pointI != nNodes) { - FatalIOErrorIn(args.executable().c_str(), nodeStream) + FatalIOErrorInFunction(nodeStream) << "Only " << pointI << " nodes present instead of " << nNodes << " from header." << exit(FatalIOError); } @@ -258,7 +258,7 @@ int main(int argc, char *argv[]) if (nPtsPerTet != 4) { - FatalIOErrorIn(args.executable().c_str(), eleStream) + FatalIOErrorInFunction(eleStream) << "Cannot handle tets with " << nPtsPerTet << " points per tetrahedron in .ele file" << endl << "Can only handle tetrahedra with four points" @@ -377,7 +377,7 @@ int main(int argc, char *argv[]) if (nFaceAttr != 1) { - FatalIOErrorIn(args.executable().c_str(), faceStream) + FatalIOErrorInFunction(faceStream) << "Expect boundary markers to be" << " present in .face file." << endl << "This is the second number in the header which is now:" diff --git a/applications/utilities/mesh/generation/extrude/extrudeToRegionMesh/extrudeToRegionMesh.C b/applications/utilities/mesh/generation/extrude/extrudeToRegionMesh/extrudeToRegionMesh.C index ff0837e690..1174444fe0 100644 --- a/applications/utilities/mesh/generation/extrude/extrudeToRegionMesh/extrudeToRegionMesh.C +++ b/applications/utilities/mesh/generation/extrude/extrudeToRegionMesh/extrudeToRegionMesh.C @@ -3,7 +3,7 @@ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation - \\/ M anipulation | + \\/ M anipulation | Copyright (C) 2015 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -1523,7 +1523,7 @@ int main(int argc, char *argv[]) // Check if (dict.found("faceSets")) { - FatalIOErrorIn(args.executable().c_str(), dict) + FatalIOErrorInFunction(dict) << "Please supply faces to extrude either through 'faceZones'" << " or 'faceSets' entry. Found both." << exit(FatalIOError); @@ -1567,7 +1567,7 @@ int main(int argc, char *argv[]) if (shellRegionName == regionName) { - FatalIOErrorIn(args.executable().c_str(), dict) + FatalIOErrorInFunction(dict) << "Cannot extrude into same region as mesh." << endl << "Mesh region : " << regionName << endl << "Shell region : " << shellRegionName @@ -1693,7 +1693,7 @@ int main(int argc, char *argv[]) meshZoneID[i] = faceZones.findZoneID(zoneNames[i]); if (meshZoneID[i] == -1) { - FatalIOErrorIn(args.executable().c_str(), dict) + FatalIOErrorInFunction(dict) << "Cannot find zone " << zoneNames[i] << endl << "Valid zones are " << faceZones.names() << exit(FatalIOError); @@ -1740,7 +1740,7 @@ int main(int argc, char *argv[]) zoneShadowIDs[i] = faceZones.findZoneID(zoneShadowNames[i]); if (zoneShadowIDs[i] == -1) { - FatalIOErrorIn(args.executable().c_str(), dict) + FatalIOErrorInFunction(dict) << "Cannot find zone " << zoneShadowNames[i] << endl << "Valid zones are " << faceZones.names() << exit(FatalIOError); @@ -1803,7 +1803,7 @@ int main(int argc, char *argv[]) label faceI = iter.key(); if (mesh.isInternalFace(faceI)) { - FatalIOErrorIn(args.executable().c_str(), dict) + FatalIOErrorInFunction(dict) << "faceSet " << fz.name() << "contains internal faces." << " This is not permitted." @@ -1843,7 +1843,7 @@ int main(int argc, char *argv[]) if (nExtrudeFaces != nShadowFaces) { - FatalIOErrorIn(args.executable().c_str(), dict) + FatalIOErrorInFunction(dict) << "Extruded faces " << nExtrudeFaces << endl << "is different from shadow faces. " << nShadowFaces << "This is not permitted " << endl @@ -1863,7 +1863,7 @@ int main(int argc, char *argv[]) label faceI = iter.key(); if (mesh.isInternalFace(faceI)) { - FatalIOErrorIn(args.executable().c_str(), dict) + FatalIOErrorInFunction(dict) << "faceSet " << fz.name() << "contains internal faces." << " This is not permitted." diff --git a/applications/utilities/mesh/manipulation/checkMesh/checkTools.C b/applications/utilities/mesh/manipulation/checkMesh/checkTools.C index 49ef732525..249fe6b90d 100644 --- a/applications/utilities/mesh/manipulation/checkMesh/checkTools.C +++ b/applications/utilities/mesh/manipulation/checkMesh/checkTools.C @@ -3,7 +3,7 @@ \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | \\ / A nd | Copyright (C) 2015 OpenFOAM Foundation - \\/ M anipulation | + \\/ M anipulation | Copyright (C) 2015 OpenCFD Ltd. ------------------------------------------------------------------------------- License This file is part of OpenFOAM. @@ -60,7 +60,7 @@ void Foam::printMeshStats(const polyMesh& mesh, const bool allTopology) if (returnReduce(mesh.nInternalPoints(), minOp