Commit eabbf176 by Christophe Geuzaine

fix compile in real arithmetic

parent cab63e5d
......@@ -805,7 +805,12 @@ static void _nonlinearEVP(struct DofData * DofData_P, int numEigenValues,
tabCoefsDen[i]=(PetscScalar *)Malloc(CoefsSizes[i+6] * sizeof(PetscScalar));
int NumOperators=2;
#if defined(PETSC_USE_COMPLEX)
PetscScalar shift = shift_r + PETSC_i * shift_i;
Message::Warning("Discarding imaginary part in shift");
PetscScalar shift = shift_r;
for(int i=0; i<CoefsSizes[0] ; i++){tabCoefsNum[0][i] = RationalCoefs1Num[i];}
for(int i=0; i<CoefsSizes[1] ; i++){tabCoefsNum[1][i] = RationalCoefs2Num[i];}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment