changing default values in options database

Lisandro Dalcin dalcinl at gmail.com
Fri Nov 7 12:32:28 CST 2008


On Fri, Nov 7, 2008 at 3:12 PM, Matthew Knepley <knepley at gmail.com> wrote:
> I think you can just set those values before you call SetFromOptions()
> and they will show up. However, I have not tried it.

Yep, that's the way options work in most cases.

> On Fri, Nov 7, 2008 at 1:06 PM, Boyce Griffith <griffith at cims.nyu.edu> wrote:
>> Hi, Folks --
>>
>> Is there a simple way to change these default values for individual solvers?
>>  In particular, I would like to be able to ensure that the default values
>> listed by `-help' correspond to the values that I'm specifying in the code.
>>

As Matt, suggested, use this

KSPSetTolerances(ksp, ....)
KSPSetFromOptions(ksp)


-- 
Lisandro Dalcín
---------------
Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC)
Instituto de Desarrollo Tecnológico para la Industria Química (INTEC)
Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET)
PTLC - Güemes 3450, (3000) Santa Fe, Argentina
Tel/Fax: +54-(0)342-451.1594




More information about the petsc-users mailing list