-
Notifications
You must be signed in to change notification settings - Fork 10
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
Error when trying to run demo problem #396
Comments
I cannot reproduce the problem. First, you have a typo in your code, the first line should be As you have not specified your Could you post your
|
Thank you very much your reply. I have copied exactly the same code from my jupyter notebook and this is what it looks like. I have tried to check whether the space between import and the star changes anything in the code and both syntaxes work well for me. Here is the code and the config.ini file as well
And here is the config.ini file
I am using the version 2.0.11 of cashocs. Thank you |
I am sorry, but I still cannot replicate your problem. I just copied the files and got the following results with v2.0.11 of cashocs:
You said you installed cashocs in the fenicsproject environment? Are you using conda? If so, could you please provide the list of installed packages with Have you tried creating a new environment with a clean installation of cashocs, as suggested in https://cashocs.readthedocs.io/en/stable/about/installation/#installation-instructions ? |
Thanks. I am using conda indeed. here is the list of installed package in the fenicsproject environment that I have:
I am trying to do the installation in a new conda environment as suggested in https://cashocs.readthedocs.io/en/stable/about/installation/#installation-instructions. The process is not yet complete. |
Regarding your packages: You have installed PETSc 3.20.2 - cashocs currently has issues when using PETSc 3.20, as explained in #320 I think that this issue was fixed in #321, so the new cashocs version 2.1.0 should also work with PETSc 3.20, at least as far as your code goes. I think the easiest solution is to update the cashocs package with conda, this should fix your problem. |
I have created a new environment in which I installed cashocs. Within the new environment the version changed to 1.8.12 and the code still gives me the sane error. I have tried to update the version with the syntax
but it seems not to be working. |
This won't happen. My nightly tests show what happens when you create a new conda environment with cashocs using Output is
So cashocs 2.1.0 with PETSc 3.18 will be installed. Regarding |
Thank you very much @sblauth . I was able to fix the problem by installing the python 3.11 version in the new environment that I created and the code works fine now. Thank you very much for your help on the issue. |
Okay, I'm glad to hear that. If you have any further issues, please let me know. |
Hi everyone,
I am encountering an issue while solving the optimal control problem for the Poisson. I reproduced the the same code that is in the cashocs tutorial and I am getting the following error:
Here is the code
Appearently, it looks like the error comes from the solve function but I have no idea on how to fix it. @sblauth any help on the issue would be very much appreciated.
I am using python 3.9.12. I install cashocs within the fenicsproject environment.
Thank you in advance.
The text was updated successfully, but these errors were encountered: