FEniCS / dolfinx

Next generation FEniCS problem solving environment
https://fenicsproject.org
GNU Lesser General Public License v3.0
778 stars 181 forks source link

Setting local to global mapping before preallocation #2873

Closed federicobetti99 closed 11 months ago

federicobetti99 commented 1 year ago

Hello,

In the following file https://github.com/FEniCS/dolfinx/blob/main/cpp/dolfinx/la/petsc.cpp#L232, moving lines 290-300 to line 342 would allow to call the setting of the local to global mapping before preallocation of the space for the matrix, which becomes handy in a lot of situations, including the ones which I am currently working on.

As it is not clear to me how to contribute myself, I decided to open this issue.

francesco-ballarin commented 1 year ago

Ciao Federico @federicobetti99, can you give us more context about what you are trying to do?

francesco-ballarin commented 11 months ago

Closing this due to inactivity, feel free to get in touch with me in case this feature is something that you need and can provide more details about your needs.