cyclicAMIPointPatchField: Fixed type-detection for ACMI

This commit is contained in:
Will Bainbridge
2018-10-15 09:17:19 +01:00
parent c17e6dbfe4
commit 47efc8f898

View File

@ -57,7 +57,7 @@ Foam::cyclicAMIPointPatchField<Type>::cyclicAMIPointPatchField
ppiPtr_(nullptr),
nbrPpiPtr_(nullptr)
{
if (!isType<cyclicAMIPointPatch>(p))
if (!isA<cyclicAMIPointPatch>(p))
{
FatalIOErrorInFunction
(
@ -83,7 +83,7 @@ Foam::cyclicAMIPointPatchField<Type>::cyclicAMIPointPatchField
ppiPtr_(nullptr),
nbrPpiPtr_(nullptr)
{
if (!isType<cyclicAMIPointPatch>(this->patch()))
if (!isA<cyclicAMIPointPatch>(this->patch()))
{
FatalErrorInFunction
<< "Field type does not correspond to patch type for patch "