Why would you attach an option instead of having an equiv API call? Strings<div>are ALWAYS a bad interface.</div><div><br></div><div>  Matt<br><div><br><div class="gmail_quote">On Fri, Apr 2, 2010 at 9:29 PM, Dmitry Karpeev <span dir="ltr"><<a href="mailto:karpeev@mcs.anl.gov">karpeev@mcs.anl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">On a somewhat related note: would it make sense to have the functionality to<br>
attach options or just character strings to PetscObjects?<br>
We have ways of attaching reals, ints and arrays<br>
thereof to objects, but not character strings or options (named strings).<br>
I would find it convenient in various situations.<br>
It would also mirror the way we are able to compose named functions or<br>
PetscObjects<br>
with a given PetscObject.<br>
<font color="#888888"><br>
Dmitry.<br>
</font><div><div></div><div class="h5"><br>
On Fri, Apr 2, 2010 at 6:33 PM, Barry Smith <<a href="mailto:bsmith@mcs.anl.gov">bsmith@mcs.anl.gov</a>> wrote:<br>
><br>
>  I think this is a fine idea and have no problem with someone implementing<br>
> it.<br>
><br>
>   Barry<br>
><br>
> On Mar 21, 2010, at 4:04 AM, Jed Brown wrote:<br>
><br>
>><br>
>><br>
>> As a separate issue, when talking about bigger multiphysics problems, I<br>
>> would really like namespaced options.  This could be as quick-and-dirty<br>
>> as<br>
>><br>
>>  -prefix_push something_ -other -options -prefix_pop<br>
>><br>
>> which would mean<br>
>><br>
>>  -something_other -something_options<br>
>><br>
>> In particular, this would have to work with<br>
>><br>
>>  -prefix_push fieldsplit_physics1_ -options_file physics1-solver<br>
>> -prefix_pop<br>
>><br>
>> where everything in 'physics1-solver' would be under this prefix.<br>
>> Alternatively (or additionally), a parser for yaml options would allow<br>
>> this composition.<br>
>><br>
>> Jed<br>
><br>
><br>
</div></div></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></div>