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

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

index d4581ba5b7c99ccefeb3af348d7e7543dbf6d8a2..10daf9156402b803c47f9e9978bea7b4876e875f 100644 (file)
@@ -184,9 +184,7 @@ void EigenvalueProblem<dim>::assemble_system ()
   std::vector<unsigned int> local_dof_indices (dofs_per_cell);
   
   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());
 

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.