From 7f11e458ea7efc2fc54aece3b3b27110f19c88ae Mon Sep 17 00:00:00 2001 From: hartmann Date: Tue, 23 Aug 2005 08:41:47 +0000 Subject: [PATCH] Use typeid instead of sizeof. git-svn-id: https://svn.dealii.org/trunk@11308 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/bits/petsc_18.cc | 2 +- tests/bits/petsc_27.cc | 2 +- tests/bits/petsc_28.cc | 2 +- tests/bits/petsc_31.cc | 2 +- tests/bits/petsc_32.cc | 2 +- tests/bits/petsc_33.cc | 2 +- tests/bits/petsc_48.cc | 2 +- tests/bits/petsc_51.cc | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/bits/petsc_18.cc b/tests/bits/petsc_18.cc index 74703f1f48..d535fa98a7 100644 --- a/tests/bits/petsc_18.cc +++ b/tests/bits/petsc_18.cc @@ -33,7 +33,7 @@ void test (PETScWrappers::Vector &v) v.compress (); // then check the norm - const double eps=sizeof(PetscScalar)==8 ? 1e-14 : 1e-5; + const double eps=typeid(PetscScalar)==typeid(double) ? 1e-14 : 1e-5; Assert (fabs(v.l2_norm()-std::sqrt(norm))