On Thu, 15 Sep 2016, Sahai, Amal wrote: > I thought of directly accessing the ksp/pc object via ksp() or pc() > and setting the correct options right before I solve the linear > system. But my fear is would the Petsclinearsolver reformat the ksp > / pc object when it executes solve.
There's no complete reformatting, but the few things that we have a libMesh level interface for get set during the solve: KSPSetTolerances(), KSPSetReusePreconditioner(). > So, I guess my next question would be where should I set these > options, does doing them before a call to solve is made makes sense? In theory, any time after the solver object is created and before the solve should be safe. In practice, double check and if anything doesn't "stick" then please file a bug report. --- Roy ------------------------------------------------------------------------------ _______________________________________________ Libmesh-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libmesh-users
