-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
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
modifying dirichlet_poisson2D.py #42
Comments
Yes, you're absolutely right, but I', pretty sure this has already been fixed, so are you on an old version of shenfun? |
Ah, I wasn't aware of the update. I just updates shenfun using conda and I still obtain the same error. Below is a list of the packages that I believe were updated. Is there one missing that should fix this problem? `# Updated packages
kiwisolver conda-forge::kiwisolver-1.1.0-py38hc9~ --> pkgs/main::kiwisolver-1.0.1-py38he6710b0_0 |
Incidently, I did get this working in the 1D version so happy to learn how to do that correctly. |
Ok, then I need to update the conda package:-) It is fixed in master. Meanwhile, just use something with 0y (or 1e-16y) to get it to work:-) |
Thanks. I did try that, see below, and that did not fix the error unfortunately. `# My attempt
` |
You did not try 1e-16y😀 |
Sympy is smart enough to eliminate the term that is identically 0. |
I just tried now, sorry for not trying it before, and the problem persisted. Even when I increased it to 1e-8*y the same error occurred. |
ue is differentiated twice😃 |
Right, of course, so that term will disappear. In this version, I didn't compute the derivative but specified the fe exactly. I am happy to say that when I add 1e-16 to both ue and fe it does work. I will look at the convergence to make sure that everything looks good. I'll keep this open for the moment but will close it when I get the update. Thanks again! |
I am modifying dirichlet_poisson2D.py to solve a different example and I'm having some difficulties. Maybe it has to do with the fact that my right-hand-side, f, is independent of one of the two variables.
Below is the error message that I obtain as well as the parts fo the code that I modified, with the lines that I have removed simply commented out.
I suspect I am making a rookie mistake here but cannot yet figure out what that is. Could you help me understand what I am doing wrong here?
`#Error message
`
`# snipit of code
`
The text was updated successfully, but these errors were encountered: