From: bangerth Date: Wed, 29 Oct 2008 22:53:43 +0000 (+0000) Subject: Clean up after previously botched commit. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=82ecedcecb5b855b4828a15134612c01bcb7e60d;p=dealii-svn.git Clean up after previously botched commit. git-svn-id: https://svn.dealii.org/trunk@17406 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/deal.II/number_cache.cc b/tests/deal.II/number_cache.cc deleted file mode 100644 index 756fe38635..0000000000 --- a/tests/deal.II/number_cache.cc +++ /dev/null @@ -1,133 +0,0 @@ -//---------------------------- number_cache.cc --------------------------- -// $Id$ -// Version: $Name$ -// -// Copyright (C) 2008 by the deal.II authors -// -// This file is subject to QPL and may not be distributed -// without copyright and license information. Please refer -// to the file deal.II/doc/license.html for the text and -// further information on this license. -// -//---------------------------- number_cache.cc --------------------------- - - -// test that we correctly compute the number of lines, quads, hexes, etc and -// store them in the number cache of the Triangulation class. use the meshes -// from grid_in (2d) and grid_in_3d (3d) for this - -#include "../tests.h" -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include - -#include -#include - -std::ofstream logfile("number_cache/output"); - - - -template -void output (const Triangulation &tria) -{ - - deallog << " " << tria.n_active_cells() << std::endl; - deallog << " " << tria.n_cells() << std::endl; - deallog << " " << tria.n_active_lines() << std::endl; - deallog << " " << tria.n_lines() << std::endl; - deallog << " " << tria.n_active_quads() << std::endl; - deallog << " " << tria.n_quads() << std::endl; - deallog << " " << tria.n_active_hexs() << std::endl; - deallog << " " << tria.n_hexs() << std::endl; - - for (unsigned int i=0; i -void test (const char *filename) -{ - deallog << "Reading " << filename << std::endl; - - Triangulation tria; - GridIn gi; - gi.attach_triangulation (tria); - std::ifstream in (filename); - - try - { - gi.read_xda (in); - } - catch (std::exception &exc) - { - deallog << " caught exception:" << std::endl - << exc.what() - << std::endl; - return; - } - - output (tria); - - // now refine a few cells and output again - deallog << " Refining..." << std::endl; - typename Triangulation::active_cell_iterator - cell = tria.begin_active(); - for (unsigned int i=0; i<=std::min (tria.n_active_cells() / 3, - 10U); ++i, ++cell) - cell->set_refine_flag (); - tria.execute_coarsening_and_refinement (); - - output (tria); -} - - -int main () -{ - deallog << std::setprecision (2); - deallog.attach(logfile); - deallog.depth_console(0); - deallog.threshold_double(1.e-10); - - test<2> ("grid_in/2d.xda"); - - test<3> ("grid_in_3d/1.in"); - test<3> ("grid_in_3d/2.in"); - test<3> ("grid_in_3d/3.in"); - test<3> ("grid_in_3d/4.in"); - - test<3> ("grid_in_3d/evil_0.in"); - test<3> ("grid_in_3d/evil_1.in"); - test<3> ("grid_in_3d/evil_2.in"); - test<3> ("grid_in_3d/evil_3.in"); - test<3> ("grid_in_3d/evil_4.in"); -} -