I am not against requiring SetFromOptions() to create default objects. We already require it to set a default type.
Matt On Tue, Dec 2, 2008 at 8:08 AM, Lisandro Dalcin <dalcinl at gmail.com> wrote: > I've just noticed that now SNES does not create the inner KSP at the > time SNESCreate() is called. Then I could easily manage to break > things (basically, if SNESSetFromOptions() is never called) > > Does it make sense to add: > > if (!snes->ksp) { SNESGetKSP(snes, &snes->ksp);} > > near the begining of SNESSetUp() ?? > > > -- > 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 > > -- What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead. -- Norbert Wiener -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20081202/b284bade/attachment.html>