]> https://gitweb.dealii.org/ - dealii.git/commitdiff
modify Assert in fe_tools_interpolate for complex numbers
authorDenis Davydov <davydden@gmail.com>
Tue, 16 Jun 2015 21:12:30 +0000 (23:12 +0200)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Wed, 17 Jun 2015 19:33:34 +0000 (14:33 -0500)
source/fe/fe_tools_interpolate.cc

index 5f4c02f06923bcc432b1be7ae16c8fc75a296f75..382e1d2f07c58de4c17fe27c563f20dae5196b17 100644 (file)
@@ -222,7 +222,8 @@ namespace FETools
     for (types::global_dof_index i=0; i<dof2.n_dofs(); ++i)
       if (locally_owned_dofs.is_element(i))
         {
-          Assert(touch_count(i)!=0, ExcInternalError());
+          const typename OutVector::value_type touch_i = touch_count(i);
+          Assert( touch_i != typename OutVector::value_type(), ExcInternalError());
           u2(i) /= touch_count(i);
         }
 

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.