]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
At the start of each Stokes solve, initialize solution vector to zero. This drives...
authorkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 19 Aug 2008 22:26:20 +0000 (22:26 +0000)
committerkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 19 Aug 2008 22:26:20 +0000 (22:26 +0000)
git-svn-id: https://svn.dealii.org/trunk@16598 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 37ccb5b9711404e49ba644136651ad8a7ece6f33..bd8e6d288373f43bf1a93fc1742c11dc30d6338e 100644 (file)
@@ -2104,6 +2104,7 @@ void BoussinesqFlowProblem<dim>::solve ()
     SolverGMRES<BlockVector<double> > gmres(solver_control,
                                            SolverGMRES<BlockVector<double> >::AdditionalData(100));
 
+    stokes_solution = 0;
     gmres.solve(stokes_matrix, stokes_solution, stokes_rhs, preconditioner);
 
     std::cout << "   "

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.