On Fri, Aug 30, 2013 at 5:41 AM, Kathrin Burckhardt <[email protected]>wrote:
> Hi petsc people,
>
> how can I check if the value to a specific option is valid before getting
> an error?
>
Right now the options table only holds strings. The conversion is done by
the
retrieval function, so there is no centralized knowledge about an a priori
type
of the option value. The failure can occur anywhere in the code where
someone
tries to get the value with a conflicting type.
Thanks,
Matt
> E.g., if the option string contains 'options_table 2' I get
>
> [ERROR]: --------------------- Error Message
> ------------------------------------
> [ERROR]: [0]PETSC ERROR:
> [INFO]: Invalid argument!
> [ERROR]: [0]PETSC ERROR:
> [INFO]: Unknown logical value: 2!
>
> Thank you in advance for your help,
> Kathrin
>
--
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