[petsc-users] option values problem

Matthew Knepley knepley at gmail.com
Fri Aug 30 06:01:46 CDT 2013


On Fri, Aug 30, 2013 at 5:41 AM, Kathrin Burckhardt <tribur at itis.ethz.ch>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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20130830/4dcec7b8/attachment-0001.html>


More information about the petsc-users mailing list