From: Martin Kronbichler Date: Fri, 9 Feb 2018 17:48:29 +0000 (+0100) Subject: Add test. X-Git-Tag: v9.0.0-rc1~438^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a82554a9a802e8ca7a10367bbf4e533c25fe89db;p=dealii.git Add test. --- diff --git a/tests/base/polynomial_hermite_like.cc b/tests/base/polynomial_hermite_like.cc new file mode 100644 index 0000000000..a547bc58dd --- /dev/null +++ b/tests/base/polynomial_hermite_like.cc @@ -0,0 +1,56 @@ +// --------------------------------------------------------------------- +// +// Copyright (C) 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 at +// the top level of the deal.II distribution. +// +// --------------------------------------------------------------------- + + +#include "../tests.h" + +#include + +using namespace Polynomials; + +void plot(const std::vector > &polynomials) +{ + LogStream::Prefix("plot"); + const unsigned int n=8; + for (unsigned int i=0; i<=n; ++i) + { + const double x = 1.*i/n; + deallog << x; + for (unsigned int p=0; p > &polynomials) +{ + std::vector values(2); + for (unsigned int i=0; i