]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Check a bit more.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 21 Jun 2004 16:56:15 +0000 (16:56 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 21 Jun 2004 16:56:15 +0000 (16:56 +0000)
git-svn-id: https://svn.dealii.org/trunk@9438 0785d39b-7218-0410-832d-ea1e28bc413d

tests/bits/compressed_sparsity_pattern_03.cc

index 8da37aac52b3716d95d27ca805e394190bbae0ac..85102651046ccaad9e4b70d6d60069446d8fffcc 100644 (file)
@@ -34,7 +34,17 @@ void test ()
       csp.add (i, (i+(i+1)*(j*j+i))%N);
 
   for (unsigned int i=0; i<N; ++i)
-    deallog << i << ' ' << csp.row_length (i) << std::endl;
+    {
+      std::vector<bool> xx(1000, false);
+      for (unsigned int j=0; j<40; ++j)
+        xx[(i+(i+1)*(j*j+i))%N] = true;
+
+      Assert (std::count (xx.begin(), xx.end(), true) ==
+              csp.row_length(i),
+              ExcInternalError());
+      
+      deallog << i << ' ' << csp.row_length (i) << 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.