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

@ -92,7 +92,7 @@ Foam::processorFaPatchField<Type>::processorFaPatchField
)
:
coupledFaPatchField<Type>(p, iF, dict),
procPatch_(refCast<const processorFaPatch>(p))
procPatch_(refCast<const processorFaPatch>(p, dict))
{
if (!isType<processorFaPatch>(p))
{