]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
corrected whattodo at fe_tools_interpolate
authordenis.davydov <denis.davydov@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 5 Mar 2014 15:53:55 +0000 (15:53 +0000)
committerdenis.davydov <denis.davydov@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 5 Mar 2014 15:53:55 +0000 (15:53 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_petscscalar_complex@32622 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/fe/fe_tools_interpolate.cc

index 86f17b6d7f2d7bd3a6b212aa94e5ec5b1540083b..ba2b9ed384d0e9f7a6b61fb5a0064da99c704960 100644 (file)
@@ -222,9 +222,8 @@ namespace FETools
     for (types::global_dof_index i=0; i<dof2.n_dofs(); ++i)
       if (locally_owned_dofs.is_element(i))
         {
-         // @whattodo Workaround: Add a function is_zero like is_finite?
-         // Assert(touch_count(i)!=0, ExcInternalError());
-         Assert ((false), ExcMessage ("This function is corrupt: @whattodo"));
+          const typename OutVector::value_type touch_i = touch_count(i);
+         Assert( touch_i != typename OutVector::value_type(0), 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.