From 5a9681c6931a3d95e284ea9f8887d25e824ee20e Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Sat, 13 Apr 2024 09:43:27 +0100 Subject: [PATCH] mappedPatchBaseBase: Added actual patch type to diagnostic message --- .../mappedPatchBaseBase/mappedPatchBaseBaseTemplates.C | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/meshTools/mappedPatches/mappedPatchBaseBase/mappedPatchBaseBaseTemplates.C b/src/meshTools/mappedPatches/mappedPatchBaseBase/mappedPatchBaseBaseTemplates.C index 331df664f5..fba4e8fde5 100644 --- a/src/meshTools/mappedPatches/mappedPatchBaseBase/mappedPatchBaseBaseTemplates.C +++ b/src/meshTools/mappedPatches/mappedPatchBaseBase/mappedPatchBaseBaseTemplates.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org - \\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2024 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -44,7 +44,8 @@ void Foam::mappedPatchBaseBase::validateMapForField OStringStream str; str << "Field " << iF.name() << " of type " << field.type() << " cannot apply to patch " << pp.name() - << " because the patch is not of " << typeName << " type"; + << " of type " << pp.type() + << ", which should be a " << typeName << " type"; FatalIOErrorInFunction(context) << stringOps::breakIntoIndentedLines(str.str()).c_str() << exit(FatalIOError);