]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Some time ago, the check for finite numbers has been included in the deal.II
authorkayser-herold <kayser-herold@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 5 Feb 2007 00:08:20 +0000 (00:08 +0000)
committerkayser-herold <kayser-herold@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 5 Feb 2007 00:08:20 +0000 (00:08 +0000)
libarary. In the method MatrixBase::set this check was still using the
std-lib methods instead of the method provided by deal.II. This caused
problems on a slightly outdated Mac OS-X system.

git-svn-id: https://svn.dealii.org/trunk@14405 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/source/petsc_matrix_base.cc

index b478b1083de982a3e2b82fd67f0641f6fcce7932..a46961479ce704ad95a33006eb7197093e66d18c 100644 (file)
@@ -138,7 +138,7 @@ namespace PETScWrappers
                    const PetscScalar value)
   {
 
-    Assert (!std::isnan(value) && !std::isinf(value), 
+    Assert (deal_II_numbers::is_finite(value),
            ExcMessage("The given value is not finite but either infinite or Not A Number (NaN)"));
 
     if (last_action != LastAction::insert)

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.