]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make use of variables generic in one other place.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 6 Jul 2009 15:22:45 +0000 (15:22 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 6 Jul 2009 15:22:45 +0000 (15:22 +0000)
git-svn-id: https://svn.dealii.org/trunk@19018 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/step-36/step-36.cc

index 10daf9156402b803c47f9e9978bea7b4876e875f..55d1fdb9c08bcf4a0227a750ef190417b9d6171a 100644 (file)
@@ -325,9 +325,7 @@ void EigenvalueProblem<dim>::output_results () const
                                 // How does this work?
   Vector<double> projected_potential (dof_handler.n_dofs());
   FunctionParser<dim> potential;
-  potential.initialize ((dim == 2 ?
-                        "x,y" :
-                        "x,y,z"),
+  potential.initialize (FunctionParser<dim>::default_variable_names (),
                        parameters.get ("Potential"),
                        typename FunctionParser<dim>::ConstMap());
   VectorTools::interpolate (dof_handler, potential, projected_potential);

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.