[petsc-users] Duplicate options

Matthew Knepley knepley at gmail.com
Wed Aug 12 10:19:33 CDT 2015

On Wed, Aug 12, 2015 at 10:17 AM, Jed Brown <jed at jedbrown.org> wrote:

> Matthew Knepley <knepley at gmail.com> writes:
> > What will we use to uniquely identify a block of options? I hate the idea
> > of a random string.
> > Its too easy to mess up. Should we use a class+type_name?
> Prefix is relevant.  We could hash the contents to make the comparison
> fixed-length.

So, SHA1(class, type_name, prefix)? I could live with that. Then we
maintain a
khash table of those we have seen while printing.


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-users/attachments/20150812/c5c8abf8/attachment.html>

More information about the petsc-users mailing list