Compiler requires cast

This commit is contained in:
Hrvoje Jasak 2013-06-13 09:59:32 +01:00
parent 7e1989f184
commit 4fa88b1419

View file

@ -155,7 +155,13 @@ void jumpCyclicFvPatchField<Type>::updateInterfaceMatrix
label sizeby2 = this->size()/2; label sizeby2 = this->size()/2;
const unallocLabelList& faceCells = this->cyclicPatch().faceCells(); const unallocLabelList& faceCells = this->cyclicPatch().faceCells();
if (&psiInternal == &this->internalField()) // Add void pointer cast to keep compiler happy when instantiated
// for vector/tensor fields. HJ, 4/Jun/2013
if
(
reinterpret_cast<const void*>(&psiInternal)
== reinterpret_cast<const void*>(&this->internalField())
)
{ {
// Get component of jump. HJ, 11/Aug/2009 // Get component of jump. HJ, 11/Aug/2009
const Field<scalar> jf = jump()().component(cmpt); const Field<scalar> jf = jump()().component(cmpt);