From a6247704fe3401e1e2a405ca986fc494ab8a23fa Mon Sep 17 00:00:00 2001 From: bangerth Date: Mon, 18 Sep 2006 19:21:02 +0000 Subject: [PATCH] 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 --- deal.II/base/source/function_parser.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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())); } -- 2.39.5