Mesh Refinement and Function Space/(bi)Linear Forms

Hi everyone,

To start, I’m using FEniCS 2019.1.0. If I’m solving a time-dependent problem wherein I refine the mesh at each time-step, is there any way to avoid redefining the associated function space and and Linear/Bilinear form in each timestep? As far as I can tell, this is a necessary step but perhaps I’m missing something.

No, you have to redefine them, as you need to build the appropriate dof-map for the refined grid.

In dolfinx, I have a proposal that would get rid of this limitation (to some extent, forms would be grid independent), see:

for details

1 Like

Hmm, perhaps it’s time to make the switch over to dolfinx. Thanks.