@francesco-ballarin Thank you for your reply. The problem got fixed when I removed the creation of the dolfinx.fem.form object outside of my loop. Though for me this was not obvious, because I used my code to solve an optimal control problem which had a RHS depending on the time. What solved my issue was declaring the time dependent variable as fem.Constant as they did here
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Error when installing dolfinx on Colab | 3 | 789 | December 1, 2022 | |
Installing dolfin - weird error
|
2 | 411 | July 12, 2022 | |
Install fenics-shells | 12 | 244 | May 2, 2024 | |
Major problem ImportError FFCX | 3 | 19 | May 5, 2025 | |
Problem when trying to install Fenics on Colab | 1 | 655 | October 14, 2020 |