From 0be5cdb3d015765f906b88f85d854647a9f189d8 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 10 Nov 2010 12:28:33 +0000 Subject: [PATCH] New test. git-svn-id: https://svn.dealii.org/trunk@22663 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/fe/nedelec_crash_01.cc | 70 +++++++++++++++++++++ tests/fe/nedelec_crash_01/cmp/generic | 91 +++++++++++++++++++++++++++ 2 files changed, 161 insertions(+) create mode 100644 tests/fe/nedelec_crash_01.cc create mode 100644 tests/fe/nedelec_crash_01/cmp/generic diff --git a/tests/fe/nedelec_crash_01.cc b/tests/fe/nedelec_crash_01.cc new file mode 100644 index 0000000000..aa23f672f0 --- /dev/null +++ b/tests/fe/nedelec_crash_01.cc @@ -0,0 +1,70 @@ +//-------------------------------------------------------------------- +// $Id$ +// +// Copyright (C) 2005, 2006, 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. +// +//-------------------------------------------------------------------- + +// Test, whether differential operators produce a cochain complex on +// the standard Hilbert space sequence + +#include "../tests.h" +#include "../lib/test_grids.h" + +#include + +#include +#include +#include +#include +#include +#include + +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include + + +int main() +{ + const std::string logname = JobIdentifier::base_name(__FILE__) + std::string("/output"); + std::ofstream logfile(logname.c_str()); + deallog.attach(logfile); + deallog.depth_console(0); + deallog.threshold_double(1.e-10); + + struct MyFE : FE_Nedelec<3> { + MyFE () : FE_Nedelec<3>(0) {}; + virtual bool hp_constraints_are_implemented () const + { + return false; + } + } fe; + + Triangulation<3> tr(Triangulation<3>::limit_level_difference_at_vertices); + TestGrids::hypercube(tr, 2, true); + + DoFHandler<3> dof(tr); + dof.distribute_dofs(fe); + + ConstraintMatrix constraints; + DoFTools::make_hanging_node_constraints (dof, constraints); + constraints.close(); +} diff --git a/tests/fe/nedelec_crash_01/cmp/generic b/tests/fe/nedelec_crash_01/cmp/generic new file mode 100644 index 0000000000..58aefa2e74 --- /dev/null +++ b/tests/fe/nedelec_crash_01/cmp/generic @@ -0,0 +1,91 @@ + +DEAL:d2-p0::Setup +DEAL:d2-p0::Triangulation hypercube 2D refinement 1 steps 4 active cells 5 total cells +DEAL:d2-p0::Form 0 +DEAL:d2-p0::Difference d*d 0 +DEAL:d2-p0::Form 1 +DEAL:d2-p0::d^2 0 +DEAL:d2-p0::d*d^2 0 +DEAL:d2-p0::Difference d*d 0 +DEAL:d2-p0::Triangulation hypercube 2D refinement 2 local steps 7 active cells 9 total cells +DEAL:d2-p0::Form 0 +DEAL:d2-p0::Difference d*d 0 +DEAL:d2-p0::Form 1 +DEAL:d2-p0::d^2 0 +DEAL:d2-p0::d*d^2 0 +DEAL:d2-p0::Difference d*d 0 +DEAL:d2-p0::Triangulation hypercube 2D refinement 3 local steps 25 active cells 33 total cells +DEAL:d2-p0::Form 0 +DEAL:d2-p0::Difference d*d 0 +DEAL:d2-p0::Form 1 +DEAL:d2-p0::d^2 0 +DEAL:d2-p0::d*d^2 0 +DEAL:d2-p0::Difference d*d 0 +DEAL:d2-p1::Setup +DEAL:d2-p1::Triangulation hypercube 2D refinement 1 steps 4 active cells 5 total cells +DEAL:d2-p1::Form 0 +DEAL:d2-p1::Difference d*d 0 +DEAL:d2-p1::Form 1 +DEAL:d2-p1::d^2 0 +DEAL:d2-p1::d*d^2 0 +DEAL:d2-p1::Difference d*d 0 +DEAL:d2-p1::Triangulation hypercube 2D refinement 2 local steps 7 active cells 9 total cells +DEAL:d2-p1::Form 0 +DEAL:d2-p1::Difference d*d 0 +DEAL:d2-p1::Form 1 +DEAL:d2-p1::d^2 0 +DEAL:d2-p1::d*d^2 0 +DEAL:d2-p1::Difference d*d 0 +DEAL:d2-p1::Triangulation hypercube 2D refinement 3 local steps 25 active cells 33 total cells +DEAL:d2-p1::Form 0 +DEAL:d2-p1::Difference d*d 0 +DEAL:d2-p1::Form 1 +DEAL:d2-p1::d^2 0 +DEAL:d2-p1::d*d^2 0 +DEAL:d2-p1::Difference d*d 0 +DEAL:d2-p2::Setup +DEAL:d2-p2::Triangulation hypercube 2D refinement 1 steps 4 active cells 5 total cells +DEAL:d2-p2::Form 0 +DEAL:d2-p2::Difference d*d 0 +DEAL:d2-p2::Form 1 +DEAL:d2-p2::d^2 0 +DEAL:d2-p2::d*d^2 0 +DEAL:d2-p2::Difference d*d 0 +DEAL:d2-p2::Triangulation hypercube 2D refinement 2 local steps 7 active cells 9 total cells +DEAL:d2-p2::Form 0 +DEAL:d2-p2::Difference d*d 0 +DEAL:d2-p2::Form 1 +DEAL:d2-p2::d^2 0 +DEAL:d2-p2::d*d^2 0 +DEAL:d2-p2::Difference d*d 0 +DEAL:d2-p2::Triangulation hypercube 2D refinement 3 local steps 25 active cells 33 total cells +DEAL:d2-p2::Form 0 +DEAL:d2-p2::Difference d*d 0 +DEAL:d2-p2::Form 1 +DEAL:d2-p2::d^2 0 +DEAL:d2-p2::d*d^2 0 +DEAL:d2-p2::Difference d*d 0 +DEAL:d3-p0::Setup +DEAL:d3-p0::Triangulation hypercube 3D refinement 1 steps 8 active cells 9 total cells +DEAL:d3-p0::Form 0 +DEAL:d3-p0::Difference d*d 0 +DEAL:d3-p0::Form 1 +DEAL:d3-p0::d^2 0 +DEAL:d3-p0::d*d^2 0 +DEAL:d3-p0::Difference d*d 0 +DEAL:d3-p0::Form 2 +DEAL:d3-p0::d^2 0 +DEAL:d3-p0::d*d^2 0 +DEAL:d3-p0::Difference d*d 0 +DEAL:d3-p1::Setup +DEAL:d3-p1::Triangulation hypercube 3D refinement 1 steps 8 active cells 9 total cells +DEAL:d3-p1::Form 0 +DEAL:d3-p1::Difference d*d 0 +DEAL:d3-p1::Form 1 +DEAL:d3-p1::d^2 0 +DEAL:d3-p1::d*d^2 0 +DEAL:d3-p1::Difference d*d 0 +DEAL:d3-p1::Form 2 +DEAL:d3-p1::d^2 0 +DEAL:d3-p1::d*d^2 0 +DEAL:d3-p1::Difference d*d 0 -- 2.39.5