]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
The purpose is solver, not cg
authorkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 14 Nov 2010 22:25:46 +0000 (22:25 +0000)
committerkanschat <kanschat@0785d39b-7218-0410-832d-ea1e28bc413d>
Sun, 14 Nov 2010 22:25:46 +0000 (22:25 +0000)
git-svn-id: https://svn.dealii.org/trunk@22722 0785d39b-7218-0410-832d-ea1e28bc413d

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

index e0cce96e4d98436df9d5c2d6ecce5b622fc059bb..5cb4bf77580b5c8669f834c93a26eb75b19e5c5d 100644 (file)
@@ -686,7 +686,7 @@ Step39<dim>::solve()
                                   // The solver of choice is
                                   // conjugate gradient.
   SolverControl control(1000, 1.e-12);
-  SolverCG<Vector<double> > cg(control);
+  SolverCG<Vector<double> > solver(control);
 
                                   // Now we are setting up the
                                   // components of the multilevel
@@ -762,7 +762,7 @@ Step39<dim>::solve()
     MGTransferPrebuilt<Vector<double> > >
     preconditioner(mg_dof_handler, mg, mg_transfer);
                                   // and use it to solve the system.
-  cg.solve(matrix, solution, right_hand_side, preconditioner);
+  solver.solve(matrix, solution, right_hand_side, preconditioner);
 }
 
                                 // Here we compare our finite element

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.