diff --git a/src/finiteVolume/fields/fvPatchFields/constraint/jumpCyclic/jumpCyclicFvPatchField.C b/src/finiteVolume/fields/fvPatchFields/constraint/jumpCyclic/jumpCyclicFvPatchField.C index 2820ed2f4..e90bb7f9e 100644 --- a/src/finiteVolume/fields/fvPatchFields/constraint/jumpCyclic/jumpCyclicFvPatchField.C +++ b/src/finiteVolume/fields/fvPatchFields/constraint/jumpCyclic/jumpCyclicFvPatchField.C @@ -155,7 +155,13 @@ void jumpCyclicFvPatchField::updateInterfaceMatrix label sizeby2 = this->size()/2; 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(&psiInternal) + == reinterpret_cast(&this->internalField()) + ) { // Get component of jump. HJ, 11/Aug/2009 const Field jf = jump()().component(cmpt);