]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Do a cast to the expected data type. This shouldn't be necessary, but apparently...
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 18 Sep 2006 19:21:02 +0000 (19:21 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 18 Sep 2006 19:21:02 +0000 (19:21 +0000)
git-svn-id: https://svn.dealii.org/trunk@13922 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/source/function_parser.cc

index bad3f1cd30b9e1ef4aab28c16f0eef508667eceb..6729b9bcec70035834675db48d4b29e15b05e6e6 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$
 //
-//    Copyright (C) 2005 by the deal.II authors
+//    Copyright (C) 2005, 2006 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -165,7 +165,7 @@ double FunctionParser<dim>::value (const Point<dim>  &p,
   if (dim != n_vars)
     vars[dim] = this->get_time();
   
-  double my_value = fp[component].Eval(vars);
+  double my_value = fp[component].Eval((double*)vars);
   
   AssertThrow (fp[component].EvalError() == 0,
               ExcMessage(fp[component].ErrorMsg()));
@@ -201,7 +201,7 @@ void FunctionParser<dim>::vector_value (const Point<dim> &p,
   for(unsigned int component = 0; component < this->n_components;
       ++component)
     {
-      values(component) = fp[component].Eval(vars);
+      values(component) = fp[component].Eval((double*)vars);
       AssertThrow(fp[component].EvalError() == 0,
                  ExcMessage(fp[component].ErrorMsg()));
     } 

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.