I found where my settings are overridden. I have a nonlinear system in my 
EquationSystems object and in src/systems/nonlinear_implicit_system.C line 47:

es.parameters.set<Real>        ("linear solver tolerance") = 1e-5;
es.parameters.set<Real>        ("linear solver minimum tolerance") = 1e-5;

So even if I set the ksp_rtol and ksp_atol these will be passed to the PETSc 
KSP object.

I did the ugly fix and changed these for now. But it would be a good idea if 
someone can fix this (from experience PETSc default KSP tolerances are most 
often not strict enough).

Best,
Ata



On Jan 10, 2013, at 12:07 PM, Ataollah Mesgarnejad <[email protected]> 
wrote:

> Dear all,
> 
> I noticed when I pass ksp_rtol and ksp_atol in the command line they don't 
> override the "linear solver tolerance" parameter set in the 
> EquationSystems::parameters! Is this an intended behavior or am I missing 
> something? And how can I pass my own tolerances for the KSP solve?
> 
> thanks,
> Ata

------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122712
_______________________________________________
Libmesh-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to