ENH: refCast: give better error messages. Fixes #953.

This commit is contained in:
mattijs
2018-07-26 16:55:49 +01:00
parent b2be9fa3ff
commit 8aa7b1353f
29 changed files with 73 additions and 28 deletions

View File

@ -53,7 +53,7 @@ Foam::cyclicACMIPointPatchField<Type>::cyclicACMIPointPatchField
)
:
coupledPointPatchField<Type>(p, iF, dict),
cyclicACMIPatch_(refCast<const cyclicACMIPointPatch>(p)),
cyclicACMIPatch_(refCast<const cyclicACMIPointPatch>(p, dict)),
ppiPtr_(nullptr),
nbrPpiPtr_(nullptr)
{

View File

@ -53,7 +53,7 @@ Foam::cyclicAMIPointPatchField<Type>::cyclicAMIPointPatchField
)
:
coupledPointPatchField<Type>(p, iF, dict),
cyclicAMIPatch_(refCast<const cyclicAMIPointPatch>(p)),
cyclicAMIPatch_(refCast<const cyclicAMIPointPatch>(p, dict)),
ppiPtr_(nullptr),
nbrPpiPtr_(nullptr)
{