[petsc-dev] raise ValueError in check_for_option_mistakes

Satish Balay balay at mcs.anl.gov
Sun Jul 18 10:00:58 CDT 2010


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>






More information about the petsc-dev mailing list