We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
>>> import fipy as fp >>> mesh = fp.Grid1D(nx=5) >>> phi = fp.CellVariable(mesh=mesh) >>> eq1 = fp.ImplicitSourceTerm(var=phi) == 3. >>> phi.value = mesh.x >>> eq1.solve() python:1: StagnatedSolverWarning: The solver stagnated. Iterations: 1. Relative error: nan #!/bin/bash python.app >>> print phi [ nan nan nan nan nan] >>> eq2 = fp.ImplicitSourceTerm(var=phi) == 3. >>> phi.value = mesh.x >>> eq2.solve() >>> print phi [ 3. 3. 3. 3. 3.]
Principle of least surprise says default coeff should be 1. Zero is useless.
coeff
The text was updated successfully, but these errors were encountered:
While strictly not backward compatible, changing default coeff from 0 to 1 will not break anything that is not already broken.
Sorry, something went wrong.
Change default coefficient of ImplicitSourceTerm to 1
cbc0b38
Fixes #512
Change default coefficient of ImplicitSourceTerm to 1 (#984)
0c88c9e
Successfully merging a pull request may close this issue.
Principle of least surprise says default
coeff
should be 1. Zero is useless.The text was updated successfully, but these errors were encountered: