From 3edf174e61e696117e22c62df4cc25224e541792 Mon Sep 17 00:00:00 2001 From: Ralf Hartmann Date: Fri, 12 Jun 2009 04:52:26 +0000 Subject: [PATCH] Test anisotropic solution transfer also in 3d (5582). git-svn-id: https://svn.dealii.org/trunk@18923 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/aniso/solution_transfer.cc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/aniso/solution_transfer.cc b/tests/aniso/solution_transfer.cc index 044ae39760..f9eb7e99f3 100644 --- a/tests/aniso/solution_transfer.cc +++ b/tests/aniso/solution_transfer.cc @@ -2,7 +2,7 @@ // fe_data_test.cc,v 1.14 2003/11/28 11:52:35 guido Exp // Version: // -// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2005, 2006, 2007, 2008 by the deal.II authors +// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2005, 2006, 2007, 2008, 2009 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -43,7 +43,12 @@ class MyFunction : public Function virtual double value (const Point &p, const unsigned int) const - { return sin(p[0]*4)*cos(p[1]*4); }; + { + double ret_value=sin(p[0]*4)*cos(p[1]*4); + if (dim==3) + ret_value*=sin(5*p[2]+1); + return ret_value; + }; }; @@ -128,6 +133,7 @@ int main() deallog.threshold_double(1.e-10); transfer<2>(logfile); + transfer<3>(logfile); } -- 2.39.5