]> https://gitweb.dealii.org/ - dealii.git/commitdiff
temporary mark max/min element in grid_refinement for complex-valued PETSc as NotImpl...
authorDenis Davydov <davydden@gmail.com>
Mon, 22 Feb 2016 12:52:33 +0000 (13:52 +0100)
committerDenis Davydov <davydden@gmail.com>
Mon, 22 Feb 2016 17:07:42 +0000 (18:07 +0100)
source/grid/grid_refinement.cc

index 629e6ed1e431ec799d4a8052dddcaf8980f7fa99..a31f4d159b85211c67e4da97507baba04f7c1c70 100644 (file)
@@ -71,8 +71,12 @@ namespace
       // to get the array of values from PETSc
       // in every iteration), but works
       PetscScalar m = 0;
+#ifndef PETSC_USE_COMPLEX
       for (unsigned int i=0; i<criteria.size(); ++i)
         m = std::max (m, criteria(i));
+#else
+      Assert(false, ExcNotImplemented())
+#endif
       return m;
     }
 
@@ -85,8 +89,12 @@ namespace
       // to get the array of values from PETSc
       // in every iteration), but works
       PetscScalar m = criteria(0);
+#ifndef PETSC_USE_COMPLEX
       for (unsigned int i=1; i<criteria.size(); ++i)
         m = std::min (m, criteria(i));
+#else
+      Assert(false, ExcNotImplemented());
+#endif
       return m;
     }
 #endif

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


Typeset in Trocchi and Trocchi Bold Sans Serif.