From fb2e69fdbbc9e8424953f469e1ffe03e85ec7cc0 Mon Sep 17 00:00:00 2001 From: kayser-herold Date: Mon, 5 Feb 2007 00:08:20 +0000 Subject: [PATCH] Some time ago, the check for finite numbers has been included in the deal.II 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deal.II/lac/source/petsc_matrix_base.cc b/deal.II/lac/source/petsc_matrix_base.cc index b478b1083d..a46961479c 100644 --- a/deal.II/lac/source/petsc_matrix_base.cc +++ b/deal.II/lac/source/petsc_matrix_base.cc @@ -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) -- 2.39.5