I am using FEniCS to locate a bifurcation point. At this point FEniCS spits out the error:
Warning: UMFPACK reports that the matrix being solved is singular.
This is good; this is exactly what I want. But I need to be able to catch this error and stop my problem when this error is detected. What happens instead is that the problem keeps running consistently printing this error and then eventually terminates. I want to detect this error, stop the solver, and then add the model parameters to an array. The system isn't producing an error I can catch in the usual sense though. Does anyone know how I can make this detection?
Thanks,
Eric