From: bangerth Date: Mon, 6 Jul 2009 15:22:45 +0000 (+0000) Subject: Make use of variables generic in one other place. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4d9705024a4233d993e0159e562fae231aa7f43;p=dealii-svn.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);