From a90030f927ff806914b409430021f3065935d4b6 Mon Sep 17 00:00:00 2001 From: bangerth Date: Fri, 1 Jul 2011 14:59:13 +0000 Subject: [PATCH] Don't write stuff into a big file that we're never going to read again. It's also not safe in the presence of having the same tests run multiple times at the same time with parallel make, since multiple tests may write to the same file. git-svn-id: https://svn.dealii.org/trunk@23906 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/mpi/p4est_2d_coarse_01.cc | 6 ++++-- tests/mpi/p4est_2d_ghost_01.cc | 6 ++++-- tests/mpi/p4est_2d_ghost_02.cc | 6 ++++-- tests/mpi/p4est_2d_refine_01.cc | 6 ++++-- tests/mpi/p4est_2d_refine_02.cc | 6 ++++-- tests/mpi/p4est_2d_refine_03.cc | 4 +--- tests/mpi/p4est_2d_simple.cc | 6 ++++-- tests/mpi/p4est_3d_ghost_01.cc | 10 ++++------ tests/mpi/p4est_max_refine.cc | 4 +--- 9 files changed, 30 insertions(+), 24 deletions(-) diff --git a/tests/mpi/p4est_2d_coarse_01.cc b/tests/mpi/p4est_2d_coarse_01.cc index a53355dab2..fecedb8136 100644 --- a/tests/mpi/p4est_2d_coarse_01.cc +++ b/tests/mpi/p4est_2d_coarse_01.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2009, 2010 by the deal.II authors +// Copyright (C) 2009, 2010, 2011 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -72,7 +72,9 @@ void test() ExcInternalError() ); } - write_vtk (tr, "p4est_2d_coarse_01", "1"); + deallog << "Checksum: " + << tr.get_checksum () + << std::endl; } diff --git a/tests/mpi/p4est_2d_ghost_01.cc b/tests/mpi/p4est_2d_ghost_01.cc index 1e1031a93b..55c5dc139a 100644 --- a/tests/mpi/p4est_2d_ghost_01.cc +++ b/tests/mpi/p4est_2d_ghost_01.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2009, 2010 by the deal.II authors +// Copyright (C) 2009, 2010, 2011 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -98,7 +98,9 @@ void test() } - write_vtk (tr, "p4est_2d_ghost_01", "1"); + deallog << "Checksum: " + << tr.get_checksum () + << std::endl; } deallog << "OK" << std::endl; diff --git a/tests/mpi/p4est_2d_ghost_02.cc b/tests/mpi/p4est_2d_ghost_02.cc index 736ff84270..a016a43acf 100644 --- a/tests/mpi/p4est_2d_ghost_02.cc +++ b/tests/mpi/p4est_2d_ghost_02.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2009, 2010 by the deal.II authors +// Copyright (C) 2009, 2010, 2011 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -93,7 +93,9 @@ void test() } } - write_vtk (tr, "p4est_2d_ghost_02", "1"); + deallog << "Checksum: " + << tr.get_checksum () + << std::endl; Assert (tr.n_global_active_cells() == static_cast(std::pow (1.*GeometryInfo::max_children_per_cell, i+1)), diff --git a/tests/mpi/p4est_2d_refine_01.cc b/tests/mpi/p4est_2d_refine_01.cc index f96d0d71b7..e39ac25705 100644 --- a/tests/mpi/p4est_2d_refine_01.cc +++ b/tests/mpi/p4est_2d_refine_01.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2009, 2010 by the deal.II authors +// Copyright (C) 2009, 2010, 2011 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -61,7 +61,9 @@ void test() deallog << "#cells = " << tr.n_global_active_cells() << std::endl; } - write_vtk (tr, "p4est_2d_refine_01", "1"); + deallog << "Checksum: " + << tr.get_checksum () + << std::endl; } diff --git a/tests/mpi/p4est_2d_refine_02.cc b/tests/mpi/p4est_2d_refine_02.cc index 4a577ec47b..a777347641 100644 --- a/tests/mpi/p4est_2d_refine_02.cc +++ b/tests/mpi/p4est_2d_refine_02.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2009, 2010 by the deal.II authors +// Copyright (C) 2009, 2010, 2011 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -53,7 +53,9 @@ void test() deallog << "#cells = " << tr.n_global_active_cells() << std::endl; } - write_vtk (tr, "p4est_2d_refine_02", "1"); + deallog << "Checksum: " + << tr.get_checksum () + << std::endl; } diff --git a/tests/mpi/p4est_2d_refine_03.cc b/tests/mpi/p4est_2d_refine_03.cc index a02d75f362..bc759fa9be 100644 --- a/tests/mpi/p4est_2d_refine_03.cc +++ b/tests/mpi/p4est_2d_refine_03.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2009, 2010 by the deal.II authors +// Copyright (C) 2009, 2010, 2011 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -76,8 +76,6 @@ void test() { deallog << "#cells = " << tr.n_global_active_cells() << std::endl; } - -// write_vtk (tr, "p4est_2d_refine_03", "1"); } } diff --git a/tests/mpi/p4est_2d_simple.cc b/tests/mpi/p4est_2d_simple.cc index 1369bd1461..63d11aff49 100644 --- a/tests/mpi/p4est_2d_simple.cc +++ b/tests/mpi/p4est_2d_simple.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2009, 2010 by the deal.II authors +// Copyright (C) 2009, 2010, 2011 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -60,7 +60,9 @@ void test() } - write_vtk (tr, "p4est_2d_simple", "1"); + deallog << "Checksum: " + << tr.get_checksum () + << std::endl; } diff --git a/tests/mpi/p4est_3d_ghost_01.cc b/tests/mpi/p4est_3d_ghost_01.cc index a409f31f05..40f1ca7775 100644 --- a/tests/mpi/p4est_3d_ghost_01.cc +++ b/tests/mpi/p4est_3d_ghost_01.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2009, 2010 by the deal.II authors +// Copyright (C) 2009, 2010, 2011 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -101,19 +101,17 @@ void test() } - write_vtk (tr, "p4est_3d_ghost_01", "1"); + deallog << "Checksum: " + << tr.get_checksum () + << std::endl; if (myid==0) { std::ofstream file("p4est_3d_ghost_01/1.gpl"); GridOut().write_gnuplot (tr, file); } - - deallog << "#global cells " << tr.n_global_active_cells() << std::endl; - - } deallog << "OK" << std::endl; diff --git a/tests/mpi/p4est_max_refine.cc b/tests/mpi/p4est_max_refine.cc index 97a1a04e25..6ae3f4727f 100644 --- a/tests/mpi/p4est_max_refine.cc +++ b/tests/mpi/p4est_max_refine.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2009, 2010 by the deal.II authors +// Copyright (C) 2009, 2010, 2011 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -65,8 +65,6 @@ void test() } level++; -// write_vtk (tr, "p4est_max_refine", Utilities::int_to_string(i,4).c_str()); - } } -- 2.39.5