git-svn-id: https://svn.dealii.org/branches/branch_petscscalar_complex@31089
0785d39b-7218-0410-832d-
ea1e28bc413d
PetscScalar sum;
ierr = VecSum(vector, &sum);
AssertThrow (ierr == 0, ExcPETScError(ierr));
-// @whattodo
- // return sum/size();
-
- Assert ((false),
- ExcMessage ("Your PETSc/SLEPc installation was configured with scalar-type complex "
- "but this function is not defined for complex types."));
+// @whattodo-done-check!
+ return sum/static_cast<PetscScalar>(size());
}
// get a representation of the vector and
AssertThrow (ierr == 0, ExcPETScError(ierr));
return mean;
-
-
- Assert ((false),
- ExcMessage ("Your PETSc/SLEPc installation was configured with scalar-type complex "
- "but this function is not defined for complex types."));
}
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams