-
In Electromagnetics, I tried Example 25 and it runs perfectly fine (with GLVis plots). My goal is to be able to create new matrices from the default For instance, this is a map of DOFs from global to local numbering that I am trying to write just after you recover the solution in example 25. I am trying for problem type
I tried deleting the fespace_x in any order with respect to the original list of delete, but doesn't work. I understand since we are not allocating memory using Similar things happen when I try to create a separate matrix for just the time derivative term (-\omega^2 * epsilon E):
Please help me understand how such matrices should be constructed. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Hi @cyasing The main issue here is that I don't see an issue with the construction of the mass matrix. I hope this helps. Socratis |
Beta Was this translation helpful? Give feedback.
-
The issue is that you are trying to delete the integrator. You shouldn't do this because the ownership of the integrator is passed to the bilinearform, i.e, the bilinearform will delete it. It doesn't matter where you place it. It's independent of the rest of the code. Best, Socratis |
Beta Was this translation helpful? Give feedback.
@cyasing,
The issue is that you are trying to delete the integrator. You shouldn't do this because the ownership of the integrator is passed to the bilinearform, i.e, the bilinearform will delete it.
It doesn't matter where you place it. It's independent of the rest of the code.
Best,
Socratis