Jed Brown wrote: >> On Wed, 17 Sep 2008, Derek Gaston wrote: >>> Another problem is with setting command-line options... I'm calling >>> KSPSetTolerances and SNESSetTolerances now... using the values >>> specified in the equation systems parameters. It appears that those >>> values override any command-line options (such as -ksp_rtol or - >>> snes_atol, etc.). > > If you set these *before* you call SNESSetFromOptions() then the command > line options will be used if they are specified. This is the correct > way to change the defaults without clobbering the command line.
This is also how we're doing things in petsc_linear_solver.C, it looks like; it shouldn't be any harder to do for the nonlinear solvers. --- Roy ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Libmesh-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libmesh-devel
