]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Make our lives a bit easier in counting how many variables we output.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 23 Jun 2011 17:36:26 +0000 (17:36 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 23 Jun 2011 17:36:26 +0000 (17:36 +0000)
git-svn-id: https://svn.dealii.org/trunk@23854 0785d39b-7218-0410-832d-ea1e28bc413d

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

index c1bfbd41cfbb878c6ad1f4a347748b4b5aacc469..1f1b2a9199d5a987518febaeef9d3ec238944ac8 100644 (file)
@@ -1056,7 +1056,7 @@ BoussinesqFlowProblem<dim>::Parameters::Parameters (const std::string & paramete
 {
     ParameterHandler prm;
     BoussinesqFlowProblem<dim>::Parameters::declare_parameters (prm);
+
     std::ifstream parameter_file (parameter_filename.c_str());
 
     if (!parameter_file)
@@ -3180,7 +3180,7 @@ template <int dim>
 unsigned int
 BoussinesqFlowProblem<dim>::Postprocessor::n_output_variables() const
 {
-  return dim + 1 + 1 + 1 + 1 + 1 + 1;
+  return get_names().size();
 }
 
 

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.