From 0824e99711e1d422c400305ae3c4b02109bbd690 Mon Sep 17 00:00:00 2001 From: young Date: Mon, 10 Mar 2014 10:15:30 +0000 Subject: [PATCH] Mask max/min operations until it is clear what this means for complex numbers. git-svn-id: https://svn.dealii.org/branches/branch_petscscalar_complex@32631 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/source/grid/grid_refinement.cc | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/deal.II/source/grid/grid_refinement.cc b/deal.II/source/grid/grid_refinement.cc index ced9477136..9fe43f0c4d 100644 --- a/deal.II/source/grid/grid_refinement.cc +++ b/deal.II/source/grid/grid_refinement.cc @@ -62,35 +62,33 @@ namespace #ifdef DEAL_II_WITH_PETSC +#ifndef PETSC_USE_COMPLEX PetscScalar max_element (const PETScWrappers::Vector &criteria) { - // this is horribly slow (since we have - // to get the array of values from PETSc - // in every iteration), but works + // this is horribly slow (since we have to get the array of + // values from PETSc in every iteration), but works PetscScalar m = 0; - // @whattodo How do we get the maximum element of a complex vector? This only makes sense in real. - // for (unsigned int i=0; i