]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Switch on BDF2 scheme -- it seems to work.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 14 Aug 2008 16:49:41 +0000 (16:49 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 14 Aug 2008 16:49:41 +0000 (16:49 +0000)
git-svn-id: https://svn.dealii.org/trunk@16550 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 308502274bba7c85ecd15561ebe9d2dd95e74bc5..07bf4bd7bafd3a1936f16449b36ba84d5f5c63b7 100644 (file)
@@ -1763,9 +1763,7 @@ void BoussinesqFlowProblem<dim>::assemble_system ()
 template <int dim>
 void BoussinesqFlowProblem<dim>::assemble_rhs_T ()
 {
-                                  // TODO: right now, always do explicit
-                                  // Euler
-  const bool use_bdf2_scheme = (timestep_number == 0 ? true : false);
+  const bool use_bdf2_scheme = (timestep_number != 0);
 
   system_matrix.block(2,2) = 0;
   

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.