From: kayser-herold Date: Mon, 5 Feb 2007 00:08:20 +0000 (+0000) Subject: Some time ago, the check for finite numbers has been included in the deal.II X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb2e69fdbbc9e8424953f469e1ffe03e85ec7cc0;p=dealii-svn.git 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 --- 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)