From 20d6b5a530b1e3d042b4badcef6591364317b363 Mon Sep 17 00:00:00 2001 From: "Toby D. Young" Date: Thu, 25 Mar 2010 14:28:46 +0000 Subject: [PATCH] Switch a test ignore unsuported PETSc versions; are there more? git-svn-id: https://svn.dealii.org/trunk@20890 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/petsc/full_matrix_05.cc | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) 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; } -- 2.39.5