]> https://gitweb.dealii.org/ - dealii.git/commitdiff
add a message why one should not use GridRefinement functions with complex-valued... 2257/head
authorDenis Davydov <davydden@gmail.com>
Sun, 28 Feb 2016 16:16:04 +0000 (17:16 +0100)
committerDenis Davydov <davydden@gmail.com>
Sun, 28 Feb 2016 18:05:46 +0000 (19:05 +0100)
source/grid/grid_refinement.cc

index a31f4d159b85211c67e4da97507baba04f7c1c70..e3984971e79339230736da4553793f0a88eb7c8a 100644 (file)
@@ -75,7 +75,8 @@ namespace
       for (unsigned int i=0; i<criteria.size(); ++i)
         m = std::max (m, criteria(i));
 #else
-      Assert(false, ExcNotImplemented())
+      Assert(false, ExcMessage("The GridRefinement functions should only get real-valued vectors of refinement indicators."
+                               " Using these functions with complex-valued PETSc vectors does not make sense."))
 #endif
       return m;
     }
@@ -93,7 +94,8 @@ namespace
       for (unsigned int i=1; i<criteria.size(); ++i)
         m = std::min (m, criteria(i));
 #else
-      Assert(false, ExcNotImplemented());
+      Assert(false, ExcMessage("The GridRefinement functions should only get real-valued vectors of refinement indicators."
+                               " Using these functions with complex-valued PETSc vectors does not make sense."))
 #endif
       return m;
     }

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.