If the same space is created twice, are they exactly the same? #3357
-
I see that if I create the same space twice e.g. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I believe when we implemented singleton patterns for function spaces, we decided just to cache the "heavy" data, so that
If you can't use them interchangeably, that is a bug. |
Beta Was this translation helpful? Give feedback.
I believe when we implemented singleton patterns for function spaces, we decided just to cache the "heavy" data, so that
FunctionSpace
itself is a lightweight thing that is "cheap" to make, as long as one with the same dof layout has already been created. Part of the rationale is that the expensive-to-construct things are actually less specific than the cache key you would naively build using the "obvious" information that is available…