-
I'm new to fipy so I was working through the examples in the documentation (fipy examples page (diffusion.mesh1D) - https://www.ctcms.nist.gov/fipy/examples/diffusion/generated/examples.diffusion.mesh1D.html#module-examples.diffusion.mesh1D).
I can plot the first one fine - the solution with time-dependence, but when I try to reinitialize the solution and solve steady state I get the error I stated above. Any reasons this might be happening? All other examples have run perfectly so I don't think it's a problem with the Python version I'm using or Jupyter Lab. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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 |
Beta Was this translation helpful? Give feedback.
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 runpython setup.py test --examples --scipy
.