From 30a32096b323be107a1ab2a1818c1b7207f59442 Mon Sep 17 00:00:00 2001 From: heister Date: Wed, 6 Mar 2013 21:25:29 +0000 Subject: [PATCH] add new test directory, add failing test git-svn-id: https://svn.dealii.org/trunk@28767 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/Makefile | 1 + tests/grid/Makefile | 10 +++ tests/grid/refine_and_coarsen_01.cc | 73 ++++++++++++++++++++ tests/grid/refine_and_coarsen_01/cmp/generic | 4 ++ 4 files changed, 88 insertions(+) create mode 100644 tests/grid/Makefile create mode 100644 tests/grid/refine_and_coarsen_01.cc create mode 100644 tests/grid/refine_and_coarsen_01/cmp/generic diff --git a/tests/Makefile b/tests/Makefile index f5d0503d22..f861ceb403 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -13,6 +13,7 @@ nofail-dirs = a-framework \ deal.II \ integrators \ multigrid \ + grid \ bits \ hp \ matrix_free \ diff --git a/tests/grid/Makefile b/tests/grid/Makefile new file mode 100644 index 0000000000..3dc8d027c4 --- /dev/null +++ b/tests/grid/Makefile @@ -0,0 +1,10 @@ +############################################################ +# Makefile,v 1.15 2002/06/13 12:51:13 hartmann Exp +# Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 by the deal.II authors +############################################################ + +include ../Makefile.paths +include $D/common/Make.global_options +include ../Makefile.rules +-include Makefile.depend +-include Makefile.tests diff --git a/tests/grid/refine_and_coarsen_01.cc b/tests/grid/refine_and_coarsen_01.cc new file mode 100644 index 0000000000..d38a70e54b --- /dev/null +++ b/tests/grid/refine_and_coarsen_01.cc @@ -0,0 +1,73 @@ +//---------------------------- refine_and_coarsen_3d.cc --------------------------- +// $Id: refine_and_coarsen_for_parents_02.cc 23710 2011-05-17 04:50:10Z bangerth $ +// Version: $Name$ +// +// Copyright (C) 2010 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. +// +//----------------------- refine_and_coarsen_for_parents_02.cc ---------------------- + + +// check that refine_and_coarsen_fixed_fraction behaves correctly +// if all the indicators are the same. + +#include "../tests.h" + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include + + + +template +void check () +{ + Triangulation tria; + GridGenerator::hyper_cube (tria); + tria.refine_global (2); + + Vector estimated_error_per_cell; + estimated_error_per_cell.reinit(tria.n_active_cells()); + for (unsigned int j=0; j (); + check<2> (); + check<3> (); +} + + + diff --git a/tests/grid/refine_and_coarsen_01/cmp/generic b/tests/grid/refine_and_coarsen_01/cmp/generic new file mode 100644 index 0000000000..292df5f812 --- /dev/null +++ b/tests/grid/refine_and_coarsen_01/cmp/generic @@ -0,0 +1,4 @@ + +DEAL::OK for 1d +DEAL::OK for 2d +DEAL::OK for 3d -- 2.39.5