]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Work around a problem with complex numbers.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 28 Oct 2009 04:38:11 +0000 (04:38 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 28 Oct 2009 04:38:11 +0000 (04:38 +0000)
git-svn-id: https://svn.dealii.org/trunk@19999 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/dofs/dof_accessor.cc

index 8fb752fca3bf5067c1f6555b6fbbb6ebb9b22239..779665d4c0e03605f7c3bcba6b0f607dd09a8fca 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$
 //
-//    Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 by the deal.II authors
+//    Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -179,7 +179,7 @@ get_interpolated_dof_values (const InputVector &values,
             if (restriction_is_additive[i]) 
               interpolated_values(i) += tmp2(i);
             else
-              if (tmp2(i) != 0)
+              if (tmp2(i) != number())
                 interpolated_values(i) = tmp2(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.