From: Wolfgang Bangerth Date: Fri, 21 Oct 2005 15:05:55 +0000 (+0000) Subject: New test. X-Git-Tag: v8.0.0~12958 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f6410f7acc97a19bed7662717dc5e10b53de0aa;p=dealii.git New test. git-svn-id: https://svn.dealii.org/trunk@11645 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/fe/rtn_3.cc b/tests/fe/rtn_3.cc new file mode 100644 index 0000000000..fe61691bc3 --- /dev/null +++ b/tests/fe/rtn_3.cc @@ -0,0 +1,63 @@ +//---------------------------- rtn_3.cc --------------------------- +// rtn_3.cc,v 1.3 2003/06/09 16:00:38 wolf Exp +// Version: +// +// Copyright (C) 2003, 2005 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. +// +//---------------------------- rtn_3.cc --------------------------- + +// output the number of dofs per cell for the RTN element; that seemed wrong +// in the past. compare it also with the number of dofs per cell of the RT +// element + +#include "../tests.h" +#include + +#include +#include +#include + +#define PRECISION 2 + + + +template +void test () +{ + for (unsigned int degree=0; degree<5; ++degree) + { + FE_RaviartThomasNodal fe_rtn(degree); + deallog << fe_rtn.get_name() << ' ' << fe_rtn.dofs_per_cell << std::endl; + + if (dim != 3) + { + FE_RaviartThomas fe_rt(degree); + deallog << fe_rt.get_name() << ' ' << fe_rt.dofs_per_cell << std::endl; + } + } +} + + +int +main() +{ + std::ofstream logfile ("rtn_3.output"); + logfile.precision (PRECISION); + logfile.setf(std::ios::fixed); + deallog.attach(logfile); + deallog.depth_console(0); + deallog.threshold_double(1.e-10); + + test<2>(); + test<3>(); + + return 0; +} + + +