diff --git a/applications/utilities/mesh/manipulation/subsetMesh/subsetMesh.C b/applications/utilities/mesh/manipulation/subsetMesh/subsetMesh.C index 2543582854..358cbb3ddf 100644 --- a/applications/utilities/mesh/manipulation/subsetMesh/subsetMesh.C +++ b/applications/utilities/mesh/manipulation/subsetMesh/subsetMesh.C @@ -103,7 +103,7 @@ labelList nearestPatch(const polyMesh& mesh, const labelList& patchIDs) { if (!haveWarned) { - WarningIn("meshRefinement::nearestPatch(..)") + WarningInFunction << "Did not visit some faces, e.g. face " << faceI << " at " << mesh.faceCentres()[faceI] << endl << "Using patch " << patchIDs[0] << " as nearest" diff --git a/applications/utilities/preProcessing/changeDictionary/changeDictionary.C b/applications/utilities/preProcessing/changeDictionary/changeDictionary.C index 849ef9e779..8f8bdcbaba 100644 --- a/applications/utilities/preProcessing/changeDictionary/changeDictionary.C +++ b/applications/utilities/preProcessing/changeDictionary/changeDictionary.C @@ -653,7 +653,7 @@ int main(int argc, char *argv[]) } else { - WarningIn(args.executable()) + WarningInFunction << "Requested field to change " << fieldName << " does not exist in " << fieldHeader.path() << endl; }