I am not against requiring SetFromOptions() to create default objects. We<br>already require it to set a default type.<br><br>  Matt<br><br><div class="gmail_quote">On Tue, Dec 2, 2008 at 8:08 AM, Lisandro Dalcin <span dir="ltr"><<a href="mailto:dalcinl@gmail.com">dalcinl@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I've just noticed that now SNES does not create the inner KSP at the<br>
time SNESCreate() is called. Then I could easily manage to break<br>
things (basically, if SNESSetFromOptions() is never called)<br>
<br>
Does it make sense to add:<br>
<br>
if (!snes->ksp) { SNESGetKSP(snes, &snes->ksp);}<br>
<br>
near the begining of SNESSetUp() ??<br>
<font color="#888888"><br>
<br>
--<br>
Lisandro Dalcín<br>
---------------<br>
Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC)<br>
Instituto de Desarrollo Tecnológico para la Industria Química (INTEC)<br>
Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET)<br>
PTLC - Güemes 3450, (3000) Santa Fe, Argentina<br>
Tel/Fax: +54-(0)342-451.1594<br>
<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener<br>