From 4f37622122b644408482e9a30df4158d1a786273 Mon Sep 17 00:00:00 2001 From: guido Date: Thu, 10 Feb 2000 14:42:09 +0000 Subject: [PATCH] workaround for strstream, output shortened git-svn-id: https://svn.dealii.org/trunk@2372 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/deal.II/grid_test.cc | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tests/deal.II/grid_test.cc b/tests/deal.II/grid_test.cc index bee3ebd719..0ebc21980c 100644 --- a/tests/deal.II/grid_test.cc +++ b/tests/deal.II/grid_test.cc @@ -20,7 +20,7 @@ #include #include -#include +#include ofstream logfile("grid_test.output"); @@ -170,8 +170,7 @@ template 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::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::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