]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Default to 2d for speed's sake.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 6 Oct 2011 19:10:02 +0000 (19:10 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Thu, 6 Oct 2011 19:10:02 +0000 (19:10 +0000)
git-svn-id: https://svn.dealii.org/trunk@24538 0785d39b-7218-0410-832d-ea1e28bc413d

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

index b689c959d6945a19f9bc8edafefa8cfc902180d7..0cd1611cc510306a07bcadc93da9e42315c1e80c 100644 (file)
@@ -4392,6 +4392,13 @@ namespace Step32
                                 // simply use the <code>\step-32.prm</code>
                                 // file which is distributed together with
                                 // the program.
+                                //
+                                // Because 3d computations are simply
+                                // very slow unless you throw a lot
+                                // of processors at them, the program
+                                // defaults to 2d. You can get the 3d
+                                // version by changing the constant
+                                // dimension below to 3.
 int main (int argc, char *argv[])
 {
   using namespace Step32;
@@ -4409,7 +4416,7 @@ int main (int argc, char *argv[])
       else
         parameter_filename = "step-32.prm";
 
-      const int dim = 3;
+      const int dim = 2;
       BoussinesqFlowProblem<dim>::Parameters  parameters(parameter_filename);
       BoussinesqFlowProblem<dim> flow_problem (parameters);
       flow_problem.run ();

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.