fvPatchFields : slightly improved debug messages

This commit is contained in:
Mark Olesen
2008-05-21 10:01:07 +02:00
parent da4495fea8
commit 71119dd6eb

View File

@ -37,8 +37,8 @@ Foam::tmp<Foam::fvPatchField<Type> > Foam::fvPatchField<Type>::New
if (debug) if (debug)
{ {
Info<< "fvPatchField<Type>::New(const word&, const fvPatch&, " Info<< "fvPatchField<Type>::New(const word&, const fvPatch&, "
"const Field<Type>&) : " "const DimensionedField<Type, volMesh>&) : patchFieldType="
"constructing fvPatchField<Type>" << patchFieldType
<< endl; << endl;
} }
@ -50,7 +50,7 @@ Foam::tmp<Foam::fvPatchField<Type> > Foam::fvPatchField<Type>::New
FatalErrorIn FatalErrorIn
( (
"fvPatchField<Type>::New(const word&, const fvPatch&, " "fvPatchField<Type>::New(const word&, const fvPatch&, "
"const Field<Type>&)" "const DimensionedField<Type, volMesh>&)"
) << "Unknown patchTypefield type " << patchFieldType ) << "Unknown patchTypefield type " << patchFieldType
<< endl << endl << endl << endl
<< "Valid patchField types are :" << endl << "Valid patchField types are :" << endl
@ -80,16 +80,16 @@ Foam::tmp<Foam::fvPatchField<Type> > Foam::fvPatchField<Type>::New
const dictionary& dict const dictionary& dict
) )
{ {
word patchFieldType(dict.lookup("type"));
if (debug) if (debug)
{ {
Info<< "fvPatchField<Type>::New(const fvPatch&, const Field<Type>&, " Info<< "fvPatchField<Type>::New(const fvPatch&, "
"const dictionary&) : " "const DimensionedField<Type, volMesh>&, "
"constructing fvPatchField<Type>" "const dictionary&) : patchFieldType=" << patchFieldType
<< endl; << endl;
} }
word patchFieldType(dict.lookup("type"));
typename dictionaryConstructorTable::iterator cstrIter typename dictionaryConstructorTable::iterator cstrIter
= dictionaryConstructorTablePtr_->find(patchFieldType); = dictionaryConstructorTablePtr_->find(patchFieldType);
@ -104,7 +104,8 @@ Foam::tmp<Foam::fvPatchField<Type> > Foam::fvPatchField<Type>::New
{ {
FatalIOErrorIn FatalIOErrorIn
( (
"fvPatchField<Type>::New(const fvPatch&, const Field<Type>&, " "fvPatchField<Type>::New(const fvPatch&, "
"const DimensionedField<Type, volMesh>&, "
"const dictionary&)", "const dictionary&)",
dict dict
) << "Unknown patchField type " << patchFieldType ) << "Unknown patchField type " << patchFieldType
@ -132,7 +133,8 @@ Foam::tmp<Foam::fvPatchField<Type> > Foam::fvPatchField<Type>::New
{ {
FatalIOErrorIn FatalIOErrorIn
( (
"fvPatchField<Type>const fvPatch&, const Field<Type>&, " "fvPatchField<Type>::New(const fvPatch&, "
"const DimensionedField<Type, volMesh>&, "
"const dictionary&)", "const dictionary&)",
dict dict
) << "inconsistent patch and patchField types for \n" ) << "inconsistent patch and patchField types for \n"
@ -158,7 +160,7 @@ Foam::tmp<Foam::fvPatchField<Type> > Foam::fvPatchField<Type>::New
if (debug) if (debug)
{ {
Info<< "fvPatchField<Type>::New(const fvPatchField<Type>&, " Info<< "fvPatchField<Type>::New(const fvPatchField<Type>&, "
" const fvPatch&, const Field<Type>&, " "const fvPatch&, const DimensionedField<Type, volMesh>&, "
"const fvPatchFieldMapper&) : " "const fvPatchFieldMapper&) : "
"constructing fvPatchField<Type>" "constructing fvPatchField<Type>"
<< endl; << endl;
@ -172,7 +174,7 @@ Foam::tmp<Foam::fvPatchField<Type> > Foam::fvPatchField<Type>::New
FatalErrorIn FatalErrorIn
( (
"fvPatchField<Type>::New(const fvPatchField<Type>&, " "fvPatchField<Type>::New(const fvPatchField<Type>&, "
"const fvPatch&, const Field<Type>&, " "const fvPatch&, const DimensionedField<Type, volMesh>&, "
"const fvPatchFieldMapper&)" "const fvPatchFieldMapper&)"
) << "unknown patchTypefield type " << ptf.type() << endl << endl ) << "unknown patchTypefield type " << ptf.type() << endl << endl
<< "Valid patchField types are :" << endl << "Valid patchField types are :" << endl