diff --git a/src/meshTools/AMIInterpolation/patches/cyclicAMI/cyclicAMIPointPatchField/cyclicAMIPointPatchField.C b/src/meshTools/AMIInterpolation/patches/cyclicAMI/cyclicAMIPointPatchField/cyclicAMIPointPatchField.C index 03de285507..b97936324f 100644 --- a/src/meshTools/AMIInterpolation/patches/cyclicAMI/cyclicAMIPointPatchField/cyclicAMIPointPatchField.C +++ b/src/meshTools/AMIInterpolation/patches/cyclicAMI/cyclicAMIPointPatchField/cyclicAMIPointPatchField.C @@ -57,7 +57,7 @@ Foam::cyclicAMIPointPatchField::cyclicAMIPointPatchField ppiPtr_(nullptr), nbrPpiPtr_(nullptr) { - if (!isType(p)) + if (!isA(p)) { FatalIOErrorInFunction ( @@ -83,7 +83,7 @@ Foam::cyclicAMIPointPatchField::cyclicAMIPointPatchField ppiPtr_(nullptr), nbrPpiPtr_(nullptr) { - if (!isType(this->patch())) + if (!isA(this->patch())) { FatalErrorInFunction << "Field type does not correspond to patch type for patch "