git-svn-id: https://svn.dealii.org/branches/branch_petscscalar_complex@31097
0785d39b-7218-0410-832d-
ea1e28bc413d
return d*d;
}
- // @todo does not build with PETSc complex scalar types.
- // :425:25: error: no match for ‘operator/’ in ‘sum / dealii::PETScWrappers::VectorBase::size()’
+
PetscScalar
VectorBase::mean_value () const
{
ierr = VecSum(vector, &sum);
AssertThrow (ierr == 0, ExcPETScError(ierr));
// @whattodo-done-check!
- return sum/static_cast<PetscScalar>(size());
+ return sum/static_cast<PetscReal>(size());
}
// get a representation of the vector and
while (ptr != start_ptr+size())
sum0 += *ptr++;
- mean = (sum0+sum1+sum2+sum3)/static_cast<PetscScalar>(size());
+ mean = (sum0+sum1+sum2+sum3)/static_cast<PetscReal>(size());
}
// restore the representation of the
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