From: bangerth Date: Mon, 18 Sep 2006 19:21:02 +0000 (+0000) Subject: Do a cast to the expected data type. This shouldn't be necessary, but apparently... X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6247704fe3401e1e2a405ca986fc494ab8a23fa;p=dealii-svn.git Do a cast to the expected data type. This shouldn't be necessary, but apparently confuses pgCC if not done and then produces a linker error. git-svn-id: https://svn.dealii.org/trunk@13922 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/base/source/function_parser.cc b/deal.II/base/source/function_parser.cc index bad3f1cd30..6729b9bcec 100644 --- a/deal.II/base/source/function_parser.cc +++ b/deal.II/base/source/function_parser.cc @@ -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::value (const Point &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::vector_value (const Point &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())); }