From 7ff5414a1e5da62df31751ca6216aabf9edb6783 Mon Sep 17 00:00:00 2001 From: bangerth Date: Thu, 29 Sep 2011 15:49:30 +0000 Subject: [PATCH] Remove long outdated n_threads parameter. git-svn-id: https://svn.dealii.org/trunk@24469 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/fail/rt_distorted_01.cc | 56 +++++++++++++++++------------------ 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/tests/fail/rt_distorted_01.cc b/tests/fail/rt_distorted_01.cc index 6ec4b9e68e..bb12951a96 100644 --- a/tests/fail/rt_distorted_01.cc +++ b/tests/fail/rt_distorted_01.cc @@ -1,8 +1,8 @@ //---------------------------- rt_distorted_01.cc --------------------------- // rt_distorted_01.cc,v 1.3 2003/06/09 16:00:38 wolf Exp -// Version: +// Version: // -// Copyright (C) 2003, 2005, 2006, 2007, 2010 by the deal.II authors +// Copyright (C) 2003, 2005, 2006, 2007, 2010, 2011 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -68,12 +68,12 @@ class TestMap1 : public Function TestMap1 (const unsigned int n_components) : Function (n_components) {} - + virtual ~TestMap1 () {} - + virtual double value (const Point &p, const unsigned int component = 0) const; - + void vector_value (const Point &p, Vector &return_value) const; }; @@ -83,7 +83,7 @@ class TestMap1 : public Function template double TestMap1::value (const Point &/*p*/, - const unsigned int /*component*/) const + const unsigned int /*component*/) const { return (1); } @@ -95,7 +95,7 @@ void TestMap1::vector_value (const Point &p, { Assert (return_value.size() == this->n_components, ExcDimensionMismatch (return_value.size(), this->n_components)); - + // Parabolic inflow profile for (unsigned int iCount = 0; iCount < this->n_components; iCount++) return_value (iCount) = value (p, iCount); @@ -114,12 +114,12 @@ class TestDef1 : public Function Function (n_components), phi (ph) {} - + virtual ~TestDef1 () {} - + virtual double value (const Point &p, const unsigned int component = 0) const; - + void vector_value (const Point &p, Vector &return_value) const; }; @@ -129,7 +129,7 @@ class TestDef1 : public Function template double TestDef1::value (const Point &p, - const unsigned int component) const + const unsigned int component) const { Point<2> center; center(0) = 0.5; @@ -169,12 +169,12 @@ class TestDef2 : public Function Function (n_components), scale (sc) {} - + virtual ~TestDef2 () {} - + virtual double value (const Point &p, const unsigned int component = 0) const; - + void vector_value (const Point &p, Vector &return_value) const; }; @@ -183,7 +183,7 @@ class TestDef2 : public Function template double TestDef2::value (const Point &p, - const unsigned int component) const + const unsigned int component) const { double x = p(0), y = p(1); @@ -221,12 +221,12 @@ class TestDef3 : public Function Function (n_components), scale (sc) {} - + virtual ~TestDef3 () {} - + virtual double value (const Point &p, const unsigned int component = 0) const; - + void vector_value (const Point &p, Vector &return_value) const; }; @@ -235,7 +235,7 @@ class TestDef3 : public Function template double TestDef3::value (const Point &p, - const unsigned int component) const + const unsigned int component) const { double y = p(1); @@ -266,9 +266,9 @@ double EvaluateArea (Mapping<2> &mapping, DoFHandler<2> *dof_handler, Vector &solution) { - // Use a high order quadrature. + // Use a high order quadrature. QGauss<2> quad (6); - FEValues<2> fe_values (mapping, dof_handler->get_fe (), quad, + FEValues<2> fe_values (mapping, dof_handler->get_fe (), quad, UpdateFlags(update_values | update_q_points | update_JxW_values)); @@ -294,8 +294,8 @@ double EvaluateArea (Mapping<2> &mapping, for (unsigned int q_point=0; q_point &mapping, int main (int /*argc*/, char **/*argv*/) { logfile.precision (PRECISION); - logfile.setf(std::ios::fixed); + logfile.setf(std::ios::fixed); deallog.attach(logfile); deallog.depth_console(0); deallog.threshold_double(1.e-10); @@ -345,7 +345,7 @@ int main (int /*argc*/, char **/*argv*/) // Project solution onto RT FE field ConstraintMatrix hn_constraints; hn_constraints.clear (); - DoFTools::make_hanging_node_constraints (*dof_handler, + DoFTools::make_hanging_node_constraints (*dof_handler, hn_constraints); hn_constraints.close (); VectorTools::project (*dof_handler, hn_constraints, @@ -355,7 +355,7 @@ int main (int /*argc*/, char **/*argv*/) // Project reference solution onto RT FE field ConstraintMatrix hn_constraints_def; hn_constraints_def.clear (); - DoFTools::make_hanging_node_constraints (*dof_handler_def, + DoFTools::make_hanging_node_constraints (*dof_handler_def, hn_constraints_def); hn_constraints_def.close (); @@ -372,7 +372,7 @@ int main (int /*argc*/, char **/*argv*/) EvaluateArea (*mapping_euler, dof_handler, solution), EvaluateArea (*mapping_euler, dof_handler_def, solution_q)); deallog << buf; - + unsigned int test_out = 0; // Try rotating the elements for (double rotat = 0; rotat < 2 * M_PI; rotat += 0.25 * M_PI) @@ -391,7 +391,7 @@ int main (int /*argc*/, char **/*argv*/) DataOut<2> *data_out = new DataOut<2>; data_out->attach_dof_handler (*dof_handler); data_out->add_data_vector (solution, "solution"); - data_out->build_patches (*mapping_euler, 8, 1); + data_out->build_patches (*mapping_euler, 8); data_out->write_gnuplot (deallog.get_file_stream()); test_out++; -- 2.39.5