]> https://gitweb.dealii.org/ - dealii.git/commitdiff
sanitize sanity check
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Wed, 6 Apr 2005 10:56:40 +0000 (10:56 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Wed, 6 Apr 2005 10:56:40 +0000 (10:56 +0000)
git-svn-id: https://svn.dealii.org/trunk@10379 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/dofs/dof_tools.cc

index bd9a2c40cfa7e56f220c4006c7d9da3fd8edc996..9728a3d8f5c02b7c0184b0b0bc547b2e505136ac 100644 (file)
@@ -2355,7 +2355,7 @@ DoFTools::compute_intergrid_weights_1 (
       for (unsigned int row=0; row<n_coarse_dofs; ++row)
        if (weights[row].find(col) != weights[row].end())
          sum += weights[row][col];
-      Assert ((sum==1) ||
+      Assert ((std::fabs(sum-1) < 1.e-12) ||
              ((coarse_fe.n_components()>1) && (sum==0)), ExcInternalError());
     };
 #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.