[petsc-dev] raise ValueError in check_for_option_mistakes
Matthew Knepley
knepley at gmail.com
Sun Jul 18 16:44:07 CDT 2010
Pushed what I think you want.
Matt
On Sun, Jul 18, 2010 at 10:00 AM, Satish Balay <balay at mcs.anl.gov> wrote:
> Matt,
>
> raise ValueError in check_for_option_mistakes() is not trapped by any
> error handler. Any idea if this code can be reorganized so that
> ValueError from check_for_option_mistakes() doesn't give a stack? [if
> not I can do print(message)/exit(2) for this routine]
>
> thanks,
> satish
>
> ------------
>
> asterix:/home/balay/tmp/petsc-dev>./config/examples/asterix/asterix64.py
> --download-f_blas-lapack=1
>
> ===============================================================================
> Configuring PETSc to compile on your system
>
> ===============================================================================
> Traceback (most recent call last):
> File "./config/examples/asterix/asterix64.py", line 12, in <module>
> configure.petsc_configure(configure_options)
> File "/home/balay/tmp/petsc-dev/config/configure.py", line 180, in
> petsc_configure
> check_for_option_mistakes(sys.argv)
> File "/home/balay/tmp/petsc-dev/config/configure.py", line 40, in
> check_for_option_mistakes
> raise ValueError('The option '+name+' should probably be
> '+name.replace('_', '-'));
> ValueError: The option --download-f_blas-lapack should probably be
> --download-f-blas-lapack
> asterix:/home/balay/tmp/petsc-dev>
>
>
>
>
--
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-dev/attachments/20100718/9b1bafa2/attachment.html>
More information about the petsc-dev
mailing list