<div dir="ltr">On Mon, Apr 5, 2010 at 8:47 PM, Lisandro Dalcin <span dir="ltr"><<a href="mailto:dalcinl@gmail.com">dalcinl@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On 3 April 2010 23:32, Matthew Knepley <<a href="mailto:knepley@gmail.com">knepley@gmail.com</a>> wrote:<br>
> Why would you attach an option instead of having an equiv API call?<br>
><br>
<br>
</div>Do PETSc have an equivalent API call for every option you can set<br>
using options database?</blockquote><div><br></div><div>I think we do. If we do not, then we should.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">
> Strings<br>
> are ALWAYS a bad interface.<br>
<br>
</div>But they are generic... I would love to to have a<br>
{KSP|PC|SNES|TS}SetOptions() to pass name,value pairs of options...<br>
Right now, every time I need it, I have to play with the GLOBAL<br>
options database.<br>
<br>
Think about MPI_Info ... Without it, the MPI API should be far more<br>
complex for very little to gain... IMHO, your "ALWAYS" is  a bit<br>
strong :-)</blockquote><div><br></div><div>I am not backing off of this one. I hate MPI_Info. This is exactly what made the</div><div>TSTT Mesh Interface so terrible. Everything was stuck in a property. You could</div><div>
not tell anything from the API.</div><div><br></div><div>   Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><font color="#888888"><br>
--<br>
Lisandro Dalcin<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>
</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>

</div>