diff --git a/src/finiteVolume/fields/fvPatchFields/fvPatchField/newFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/fvPatchField/newFvPatchField.C index d99a19d03b..a24d93cba7 100644 --- a/src/finiteVolume/fields/fvPatchFields/fvPatchField/newFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/fvPatchField/newFvPatchField.C @@ -37,8 +37,8 @@ Foam::tmp > Foam::fvPatchField::New if (debug) { Info<< "fvPatchField::New(const word&, const fvPatch&, " - "const Field&) : " - "constructing fvPatchField" + "const DimensionedField&) : patchFieldType=" + << patchFieldType << endl; } @@ -50,7 +50,7 @@ Foam::tmp > Foam::fvPatchField::New FatalErrorIn ( "fvPatchField::New(const word&, const fvPatch&, " - "const Field&)" + "const DimensionedField&)" ) << "Unknown patchTypefield type " << patchFieldType << endl << endl << "Valid patchField types are :" << endl @@ -80,16 +80,16 @@ Foam::tmp > Foam::fvPatchField::New const dictionary& dict ) { + word patchFieldType(dict.lookup("type")); + if (debug) { - Info<< "fvPatchField::New(const fvPatch&, const Field&, " - "const dictionary&) : " - "constructing fvPatchField" + Info<< "fvPatchField::New(const fvPatch&, " + "const DimensionedField&, " + "const dictionary&) : patchFieldType=" << patchFieldType << endl; } - word patchFieldType(dict.lookup("type")); - typename dictionaryConstructorTable::iterator cstrIter = dictionaryConstructorTablePtr_->find(patchFieldType); @@ -104,7 +104,8 @@ Foam::tmp > Foam::fvPatchField::New { FatalIOErrorIn ( - "fvPatchField::New(const fvPatch&, const Field&, " + "fvPatchField::New(const fvPatch&, " + "const DimensionedField&, " "const dictionary&)", dict ) << "Unknown patchField type " << patchFieldType @@ -132,7 +133,8 @@ Foam::tmp > Foam::fvPatchField::New { FatalIOErrorIn ( - "fvPatchFieldconst fvPatch&, const Field&, " + "fvPatchField::New(const fvPatch&, " + "const DimensionedField&, " "const dictionary&)", dict ) << "inconsistent patch and patchField types for \n" @@ -157,8 +159,8 @@ Foam::tmp > Foam::fvPatchField::New { if (debug) { - Info<< "fvPatchField::New(const fvPatchField&," - " const fvPatch&, const Field&, " + Info<< "fvPatchField::New(const fvPatchField&, " + "const fvPatch&, const DimensionedField&, " "const fvPatchFieldMapper&) : " "constructing fvPatchField" << endl; @@ -172,7 +174,7 @@ Foam::tmp > Foam::fvPatchField::New FatalErrorIn ( "fvPatchField::New(const fvPatchField&, " - "const fvPatch&, const Field&, " + "const fvPatch&, const DimensionedField&, " "const fvPatchFieldMapper&)" ) << "unknown patchTypefield type " << ptf.type() << endl << endl << "Valid patchField types are :" << endl