From: Nicola Giuliani Date: Tue, 25 May 2021 10:55:17 +0000 (+0200) Subject: added change long and real test X-Git-Tag: v9.4.0-rc1~1295^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=073e241b08d9738679ff686d4c930b47ed1c87dd;p=dealii.git added change long and real test --- diff --git a/doc/news/changes/minor/20210525NicolaGiuliani b/doc/news/changes/minor/20210525NicolaGiuliani new file mode 100644 index 0000000000..493e218f01 --- /dev/null +++ b/doc/news/changes/minor/20210525NicolaGiuliani @@ -0,0 +1,4 @@ +New: Fixed a bug in clear user data for standard Triangulation. +
+(Nicola Giuliani, 2021/05/25) + diff --git a/tests/grid/tria_clear_user_data.cc b/tests/grid/tria_clear_user_data.cc new file mode 100644 index 0000000000..45d6473c4e --- /dev/null +++ b/tests/grid/tria_clear_user_data.cc @@ -0,0 +1,47 @@ +// --------------------------------------------------------------------- +// +// Copyright (C) 1998 - 2018 by the deal.II authors +// +// This file is part of the deal.II library. +// +// The deal.II library is free software; you can use it, redistribute +// it, and/or modify it under the terms of the GNU Lesser General +// Public License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// The full text of the license can be found in the file LICENSE.md at +// the top level directory of deal.II. +// +// --------------------------------------------------------------------- + + +// We assess the possibility of using clear user data in any dim. + +#include +#include +#include + +#include "../tests.h" + +template +void +test() +{ + Triangulation tria; + GridGenerator::hyper_cube(tria); + tria.clear_user_data(); + deallog << 'Cleared user data in ' << dim << 'D' << std::endl; +} + + +int +main() +{ + initlog(); + deallog << std::setprecision(2); + + test<1>(); + test<2>(); + test<3>(); + + return 0; +} diff --git a/tests/grid/tria_clear_user_data.output b/tests/grid/tria_clear_user_data.output new file mode 100644 index 0000000000..aa20771df1 --- /dev/null +++ b/tests/grid/tria_clear_user_data.output @@ -0,0 +1,4 @@ + +DEAL::Cleared user data in 1D +DEAL::Cleared user data in 2D +DEAL::Cleared user data in 3D