]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Replace division by zero by an assertion.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 17 Nov 2010 23:19:43 +0000 (23:19 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 17 Nov 2010 23:19:43 +0000 (23:19 +0000)
git-svn-id: https://svn.dealii.org/trunk@22800 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/base/tensor_product_polynomials.cc

index 1d3d964eab0a10cc99f7143705f577bc738a460b..ee831a45d7f2f58f233f901523ba9d847a5f819e 100644 (file)
@@ -123,7 +123,8 @@ double
 TensorProductPolynomials<0>::compute_value (const unsigned int ,
                                            const Point<0> &) const
 {
-  return 1./0.;
+  Assert (false, ExcNotImplemented());
+  return 0.;
 }
 
 

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.