From: young Date: Thu, 25 Mar 2010 14:28:46 +0000 (+0000) Subject: Switch a test ignore unsuported PETSc versions; are there more? X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e9fc507d77ae6e7f3056611680c67cdbd05fec62;p=dealii-svn.git Switch a test ignore unsuported PETSc versions; are there more? git-svn-id: https://svn.dealii.org/trunk@20890 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/petsc/full_matrix_05.cc b/tests/petsc/full_matrix_05.cc index 070675b686..c5e2734ba9 100644 --- a/tests/petsc/full_matrix_05.cc +++ b/tests/petsc/full_matrix_05.cc @@ -36,25 +36,11 @@ void test (PETScWrappers::FullMatrix &m) m.compress (); - // prior to and including PETSc 2.3.0, - // n_nonzero_elements returns the actual - // number of nonzeros. after that, PETSc - // returns the *total* number of entries of - // this matrix. check both (in the case - // post 2.3.0, output a dummy number -#if (DEAL_II_PETSC_VERSION_MAJOR == 2) &&\ - ((DEAL_II_PETSC_VERSION_MINOR < 3) \ - ||\ - ((DEAL_II_PETSC_VERSION_MINOR == 3) &&\ - (DEAL_II_PETSC_VERSION_SUBMINOR == 0))) - deallog << m.n_nonzero_elements() << std::endl; - Assert (m.n_nonzero_elements() == counter, - ExcInternalError()); -#else + // check n_nonzero_elements then + // output a dummy number. deallog << counter << std::endl; Assert (m.m() * m.m(), ExcInternalError()); -#endif - + deallog << "OK" << std::endl; }