mappedPatchBaseBase: Added actual patch type to diagnostic message
This commit is contained in:
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration | Website: https://openfoam.org
|
\\ / O peration | Website: https://openfoam.org
|
||||||
\\ / A nd | Copyright (C) 2011-2023 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2024 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -44,7 +44,8 @@ void Foam::mappedPatchBaseBase::validateMapForField
|
|||||||
OStringStream str;
|
OStringStream str;
|
||||||
str << "Field " << iF.name() << " of type "
|
str << "Field " << iF.name() << " of type "
|
||||||
<< field.type() << " cannot apply to patch " << pp.name()
|
<< 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)
|
FatalIOErrorInFunction(context)
|
||||||
<< stringOps::breakIntoIndentedLines(str.str()).c_str()
|
<< stringOps::breakIntoIndentedLines(str.str()).c_str()
|
||||||
<< exit(FatalIOError);
|
<< exit(FatalIOError);
|
||||||
|
|||||||
Reference in New Issue
Block a user