From: Wolfgang Bangerth Date: Wed, 1 Sep 2010 19:24:22 +0000 (+0000) Subject: Minor edits. X-Git-Tag: v8.0.0~5598 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7abb092ae529cca749fa4fa9233e8f192f37c3b;p=dealii.git Minor edits. git-svn-id: https://svn.dealii.org/trunk@21830 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/base/polynomial_minus_equals.cc b/tests/base/polynomial_minus_equals.cc index cad0d18250..946702b38a 100644 --- a/tests/base/polynomial_minus_equals.cc +++ b/tests/base/polynomial_minus_equals.cc @@ -1,14 +1,14 @@ /* $Id: polynomial.cc $ */ /* Author: Andrew McBride, 2010 */ /* */ -/* Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 by the deal.II authors */ +/* 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. */ -// check on the Polynomial -= operator +// check on the Polynomial::operator -= #include #include @@ -22,34 +22,34 @@ using namespace dealii; -int main () +int main () { std::ofstream logfile("polynomial_minus_equals/output"); deallog << std::setprecision(3); deallog.attach(logfile); deallog.depth_console(0); - + // subtract two equal polynomials up to order p_dim - // the result evaluated at an arbitrary point + // the result evaluated at an arbitrary point // should always be zero - + // check polynomials up to order 32 const unsigned int p_dim = 32; - + std::vector coefficients_a; - + // arbitrary point double evalutation_number = 12.123; - - for (unsigned int pp = 0; pp < p_dim; pp++) + + for (unsigned int pp = 0; pp < p_dim; pp++) { coefficients_a.push_back(pp); - + Polynomials::Polynomial test_poly_a(coefficients_a); Polynomials::Polynomial test_poly_b(coefficients_a); - + test_poly_b -= test_poly_a; - + deallog << test_poly_b.value(evalutation_number) << std::endl; } }