CheckpointFile error with BDM #2843
-
|
I have found an error when CheckpointFile is used to save a function with BDM finite element. Example of code to reproduce error: mesh = fd.IcosahedralSphereMesh(radius=6371220, Error message: |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
|
A workaround suggested by Colin Cotter is to use fd.VectorFunctionSpace(mesh, "DG", degree+1) instead of fd.FunctionSpace(mesh, "BDM", degree+1) |
Beta Was this translation helpful? Give feedback.
-
|
Thanks. This looks like an actual bug. I will attempt to fix this some time soon. |
Beta Was this translation helpful? Give feedback.
-
|
Not an answer, but I'm seeing a similar problem. I think it might be affecting all HDiv / HCurl spaces on meshes where the topological and geometric dimensions are not equal (e.g. the surface of a sphere). Here is a minimum failing example: which gives a very similar looking error: Tracing back the error, the save function does a projection: and we're not projecting into the right space. It looks like in |
Beta Was this translation helpful? Give feedback.
-
|
Thanks. Yes, that is right. PR is now open: #2874. |
Beta Was this translation helpful? Give feedback.
Merged to
master.