Hi, I'm working with step-17 and I would like to extend it to fit to my 
simulation. The requirement is that the solver must be called over the same 
system matrix a big number of times. Only the RHS is changing, so I would 
like to have the solver_control, solver cg and preconditioner as members of 
the class, instead of creating them every iteration as in the example.

However, making any of these 3 objects a member of the class an 
constructing it in the initialization list of the class, gives different 
errors. I think this is a problem related with the Petsc solvers because I 
could do it with the normal iterative solvers without Petsc. Is there a way 
to avoid creating these 3 objects every time? Is it even worth it, or these 
objects are very light? Please take into account I must repeat it these 
step ~50,000 per simulation.

Thank you very much.
David.

-- 
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see 
https://groups.google.com/d/forum/dealii?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dealii+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to