Compiler requires cast
This commit is contained in:
parent
7e1989f184
commit
4fa88b1419
1 changed files with 7 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Reference in a new issue