Missing return code check of TaoSolve

Issue #602 resolved
Jan Blechta created an issue

Comments (6)

  1. Tianyi Li

    Maybe I'm missing something, but the error reported there which stops the code is not produced within the file PETScVector.cpp? Anyway it's fairly easy to do the same thing as for SNES.

  2. Jan Blechta reporter

    This should be done essentially with every PETSc function call which returns error code. See coding style in dolfin/la/PETScFoo.cpp. The pull request does it wrong - thre should be used petsc_error rather then dolfin_error.

  3. Jan Blechta reporter

    Maybe I'm missing something, but the error reported there which stops the code is not produced within the file PETScVector.cpp?

    Yes, but maybe it happens because error in TaoSolve is ignored.

  4. Log in to comment