From: Wolfgang Bangerth Date: Mon, 6 Jul 2009 15:22:45 +0000 (+0000) Subject: Make use of variables generic in one other place. X-Git-Tag: v8.0.0~7541 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68bc4b4a8000df2797baa4fd355bad60c4b8f9f3;p=dealii.git Make use of variables generic in one other place. git-svn-id: https://svn.dealii.org/trunk@19018 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/examples/step-36/step-36.cc b/deal.II/examples/step-36/step-36.cc index 10daf91564..55d1fdb9c0 100644 --- a/deal.II/examples/step-36/step-36.cc +++ b/deal.II/examples/step-36/step-36.cc @@ -325,9 +325,7 @@ void EigenvalueProblem::output_results () const // How does this work? Vector projected_potential (dof_handler.n_dofs()); FunctionParser potential; - potential.initialize ((dim == 2 ? - "x,y" : - "x,y,z"), + potential.initialize (FunctionParser::default_variable_names (), parameters.get ("Potential"), typename FunctionParser::ConstMap()); VectorTools::interpolate (dof_handler, potential, projected_potential);