]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
workaround for strstream, output shortened
authorguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 10 Feb 2000 14:42:09 +0000 (14:42 +0000)
committerguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 10 Feb 2000 14:42:09 +0000 (14:42 +0000)
git-svn-id: https://svn.dealii.org/trunk@2372 0785d39b-7218-0410-832d-ea1e28bc413d

tests/deal.II/grid_test.cc

index bee3ebd71957da4cbb9fd3e43774f18a540b31fc..0ebc21980cc22c6abf76573234f13f9337846f23 100644 (file)
@@ -20,7 +20,7 @@
 #include <cstdlib>
 
 #include <fstream>
-#include <strstream>
+#include <cstdio>
 
 ofstream logfile("grid_test.output");
 
@@ -170,8 +170,7 @@ template <int dim>
 void test (const int test_case)
 {
   char testname[100];
-  ostrstream namestream(testname, 100);
-  namestream << "Test" << test_case << ".dim" << dim;
+  sprintf(testname, "Test%d.dim%d", test_case , dim);
   
   deallog.push(testname);
   deallog << "Start" << endl;
@@ -201,7 +200,7 @@ void test (const int test_case)
        tria.execute_coarsening_and_refinement ();
 
        Triangulation<dim>::active_cell_iterator cell;
-       for (int i=0; i<(dim==2 ? 13 : 7); ++i) 
+       for (int i=0; i<(dim==2 ? 5 : 2); ++i) 
          {
                                             // refine the presently
                                             // second last cell 17
@@ -238,7 +237,7 @@ void test (const int test_case)
        tria.execute_coarsening_and_refinement ();
        
        Triangulation<dim>::active_cell_iterator cell, endc;
-       const unsigned int steps[4] = { 0, 10, 5, 2 };
+       const unsigned int steps[4] = { 0, 5, 3, 2 };
        for (unsigned int i=0; i<steps[dim]; ++i) 
          {
            cell = tria.begin_active();

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.