]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Switch a test ignore unsuported PETSc versions; are there more?
authoryoung <young@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 25 Mar 2010 14:28:46 +0000 (14:28 +0000)
committeryoung <young@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 25 Mar 2010 14:28:46 +0000 (14:28 +0000)
git-svn-id: https://svn.dealii.org/trunk@20890 0785d39b-7218-0410-832d-ea1e28bc413d

tests/petsc/full_matrix_05.cc

index 070675b686aadb268206f77a13f7680827b8d590..c5e2734ba9ed312b2db34a73ea6b27e4f32d6a6a 100644 (file)
@@ -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;
 }
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.