From 3bda1afc67f2259bdadb01ca8553698cb50f2b6d Mon Sep 17 00:00:00 2001 From: hartmann Date: Wed, 8 Jun 2005 17:18:08 +0000 Subject: [PATCH] Extend the test cases to be used also in the case PetscScalar=float. git-svn-id: https://svn.dealii.org/trunk@10851 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/bits/petsc_08.cc | 2 +- tests/bits/petsc_18.cc | 7 ++++--- tests/bits/petsc_27.cc | 3 ++- tests/bits/petsc_28.cc | 3 ++- tests/bits/petsc_31.cc | 5 +++-- tests/bits/petsc_32.cc | 5 +++-- tests/bits/petsc_33.cc | 5 +++-- tests/bits/petsc_48.cc | 3 ++- tests/bits/petsc_51.cc | 3 ++- tests/bits/petsc_full_matrix_08.cc | 2 +- tests/bits/petsc_full_matrix_vector_05.cc | 4 ++-- tests/bits/petsc_full_matrix_vector_06.cc | 6 +++--- tests/bits/petsc_sparse_matrix_vector_05.cc | 4 ++-- tests/bits/petsc_sparse_matrix_vector_06.cc | 6 +++--- 14 files changed, 33 insertions(+), 25 deletions(-) diff --git a/tests/bits/petsc_08.cc b/tests/bits/petsc_08.cc index 233d0e59cc..7ca2e860db 100644 --- a/tests/bits/petsc_08.cc +++ b/tests/bits/petsc_08.cc @@ -24,7 +24,7 @@ void test (PETScWrappers::SparseMatrix &m) { // first set a few entries. count how many // entries we have - double norm = 0; + PetscScalar norm = 0; for (unsigned int i=0; i - const double s = m.matrix_scalar_product (w,v); + const PetscScalar s = m.matrix_scalar_product (w,v); // make sure we get the expected result for (unsigned int i=0; i - const double s = m.matrix_norm_square (v); + const PetscScalar s = m.matrix_norm_square (v); // make sure we get the expected result for (unsigned int i=0; i - const double s = m.matrix_scalar_product (w,v); + const PetscScalar s = m.matrix_scalar_product (w,v); // make sure we get the expected result for (unsigned int i=0; i - const double s = m.matrix_norm_square (v); + const PetscScalar s = m.matrix_norm_square (v); // make sure we get the expected result for (unsigned int i=0; i