From: hartmann Date: Wed, 8 Jun 2005 17:18:08 +0000 (+0000) Subject: Extend the test cases to be used also in the case PetscScalar=float. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3bda1afc67f2259bdadb01ca8553698cb50f2b6d;p=dealii-svn.git 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 --- 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