]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Test anisotropic solution transfer also in 3d (5582).
authorRalf Hartmann <Ralf.Hartmann@dlr.de>
Fri, 12 Jun 2009 04:52:26 +0000 (04:52 +0000)
committerRalf Hartmann <Ralf.Hartmann@dlr.de>
Fri, 12 Jun 2009 04:52:26 +0000 (04:52 +0000)
git-svn-id: https://svn.dealii.org/trunk@18923 0785d39b-7218-0410-832d-ea1e28bc413d

tests/aniso/solution_transfer.cc

index 044ae397608bdcfda774596dffb253f567ae0df3..f9eb7e99f3b4344d92419b78db0fa961ac858305 100644 (file)
@@ -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<dim>
     
     virtual double value (const Point<dim>   &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);
 }
 
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.