bugfix: incorrect type checking

This commit is contained in:
andy 2009-04-27 10:47:10 +01:00
parent b3eba3afc2
commit e41ae7eb92

View File

@ -62,7 +62,7 @@ directMappedVelocityFluxFixedValueFvPatchField
fixedValueFvPatchVectorField(ptf, p, iF, mapper), fixedValueFvPatchVectorField(ptf, p, iF, mapper),
phiName_(ptf.phiName_) phiName_(ptf.phiName_)
{ {
if (!isType<directMappedPatchBase>(this->patch().patch())) if (!isA<directMappedPatchBase>(this->patch().patch()))
{ {
FatalErrorIn FatalErrorIn
( (
@ -95,7 +95,7 @@ directMappedVelocityFluxFixedValueFvPatchField
fixedValueFvPatchVectorField(p, iF, dict), fixedValueFvPatchVectorField(p, iF, dict),
phiName_(dict.lookup("phi")) phiName_(dict.lookup("phi"))
{ {
if (!isType<directMappedPatchBase>(this->patch().patch())) if (!isA<directMappedPatchBase>(this->patch().patch()))
{ {
FatalErrorIn FatalErrorIn
( (