@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 | 764 | December 1, 2022 | |
Installing dolfin - weird error
|
2 | 407 | July 12, 2022 | |
Install fenics-shells | 12 | 224 | May 2, 2024 | |
Problem when trying to install Fenics on Colab | 1 | 651 | October 14, 2020 | |
Error in JIT compilation of dolfinx fem forms after updating to MacOS 15.4 | 1 | 29 | April 4, 2025 |