From 4484d2923247338186ec637469c60f77e0bb0d3a Mon Sep 17 00:00:00 2001 From: bangerth Date: Sun, 19 Sep 2010 22:33:09 +0000 Subject: [PATCH] Remove a directory that has apparently never been used. git-svn-id: https://svn.dealii.org/trunk@22078 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/dofs/Makefile | 59 ----------------------- tests/dofs/row_length_01.cc | 95 ------------------------------------- 2 files changed, 154 deletions(-) delete mode 100644 tests/dofs/Makefile delete mode 100644 tests/dofs/row_length_01.cc diff --git a/tests/dofs/Makefile b/tests/dofs/Makefile deleted file mode 100644 index e169d15021..0000000000 --- a/tests/dofs/Makefile +++ /dev/null @@ -1,59 +0,0 @@ -############################################################ -# Makefile,v 1.15 2002/06/13 12:51:13 hartmann Exp -# Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006 by the deal.II authors -############################################################ - -############################################################ -# Include general settings for including DEAL libraries -############################################################ - -include ../Makefile.paths -include $D/common/Make.global_options -debug-mode = on - -libraries = $(lib-deal2-1d.g) \ - $(lib-deal2-2d.g) \ - $(lib-deal2-3d.g) \ - $(lib-lac.g) \ - $(lib-base.g) - -default: run-tests - -############################################################ - -tests_x = row_length_* - -# tests for the hp branch: -# fe_collection_* - -ifeq ($(USE_CONTRIB_PETSC),yes) - tests_x += petsc_* -endif - -ifeq ($(USE_CONTRIB_METIS),yes) - tests_x += metis_* -endif - -ifeq ($(USE_CONTRIB_HSL),yes) - tests_x += hsl_* -endif - -ifeq ($(USE_CONTRIB_UMFPACK),yes) - tests_x += umfpack_* -endif - - -# from above list of regular expressions, generate the real set of -# tests -expand = $(shell echo $(addsuffix .cc,$(1)) \ - | $(PERL) -pi -e 's/\.cc//g;') -tests = $(call expand,$(tests_x)) - -############################################################ - - -include ../Makefile.rules -include Makefile.depend -include Makefile.tests - -.PHONY: default diff --git a/tests/dofs/row_length_01.cc b/tests/dofs/row_length_01.cc deleted file mode 100644 index 9774b8e8df..0000000000 --- a/tests/dofs/row_length_01.cc +++ /dev/null @@ -1,95 +0,0 @@ -//---------------------------------------------------------------------- -// $Id$ -// Version: $Name$ -// -// Copyright (C) 2003, 2004, 2005, 2006 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. -// -//---------------------------------------------------------------------- - -#include "../lib/dof_tools_frame.h" -#include "../lib/test_grids.h" - -#include -#include - -template -void -check_this (const DoFHandler &dof) -{ - const unsigned int n = dof.n_dofs(); - deallog << "dofs: " << n - << "\tcell: " << dof.get_fe().dofs_per_cell - << std::endl; - - std::vector row_length(n); - DoFTools::compute_row_length_vector(dof, row_length); - SparsityPattern sparsity(n, n, row_length); - DoFTools::make_sparsity_pattern(dof, sparsity); - sparsity.compress(); - unsigned int sum = std::accumulate(row_length.begin(), row_length.end(), 0U); - deallog << std::endl << "Entries estimated/actual " << sum - << '/' << sparsity.n_nonzero_elements() << std::endl; -// sparsity.clear(); - output_vector(row_length); - - DoFTools::compute_row_length_vector(dof, row_length, DoFTools::always); - output_vector(row_length); -} - - -template -void check() -{ - Triangulation tr; - TestGrids::hypercube(tr); - deallog << "cube" << dim << std::endl; - check_grid(tr); - tr.refine_global(1); - deallog << "refined cube" << dim << std::endl; - check_grid(tr); -} - - -int -main() -{ - try - { - std::ofstream logfile("row_length_01/output"); - logfile.precision (2); - deallog.attach(logfile); -// deallog.depth_console(0); - deallog.threshold_double(1.e-10); - check<2>(); - return 0; - } - catch (std::exception &exc) - { - std::cerr << std::endl << std::endl - << "----------------------------------------------------" - << std::endl; - std::cerr << "Exception on processing: " << std::endl - << exc.what() << std::endl - << "Aborting!" << std::endl - << "----------------------------------------------------" - << std::endl; - return 1; - } - catch (...) - { - std::cerr << std::endl << std::endl - << "----------------------------------------------------" - << std::endl; - std::cerr << "Unknown exception!" << std::endl - << "Aborting!" << std::endl - << "----------------------------------------------------" - << std::endl; - return 1; - }; -} - -- 2.39.5