On Thu, 10 Nov 2016, Salazar De Troya, Miguel wrote:

> This example runs several linear solves because there is a nonlinear
> solver below a continuation scheme. I figured that it would be
> possible to reuse the preconditioner and see savings so I included
> the lines:
>
> LinearSolver<Number> * linear_solver = system.get_linear_solver();
>
> linear_solver->reuse_preconditioner(reuse_preconditioner);

Ironically, this may be the converse of the problem you last asked
about.  get_linear_solver() is usefully defined in
DifferentiableSystem and its subclasses, as well as in
LinearImplicitSystem, but it's just a memory leak (which ought to
throw an error in the newest master/HEAD!) in NonlinearImplicitSystem
at the moment.
---
Roy

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to