Skip to content

RunTimeError: Factor is exactly singular - fipy 1D diffusion mesh example #894

Answered by guyer
kp2037 asked this question in Q&A
Discussion options

You must be logged in to vote

Based on the error, you appear to running the SciPy solver suite. I don't know why this error doesn't trigger when we run our automated tests, but the point of this example is that the equation doesn't solve properly. Without boundary conditions, this equation admits an infinite number of solutions. Most solvers conclude that the solution is zero everywhere but, evidently, scipy decides the matrix is singular, but only sometimes.

I get the same error if I run python examples/diffusion/mesh1D.py --scipy, but not if I run python setup.py test --examples --scipy.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kp2037
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants