You typically do not want to fiddle with out dolfin decides to order the rows in the matrix. A better alternative would be to locate the rows/cols which need to be changed to account for your custom procedure. See for instance How to find the coordinate where a vector function is max? - #2 by dokken , and several other posts in this forum is you search with the name of that function.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Order assembly 1D matrix | 2 | 529 | May 25, 2020 | |
| Global assembled matrix entries and dof numbering | 5 | 216 | December 12, 2023 | |
| How to transform matrices assembled in Fenics into matrices with standard order of DOF? | 1 | 335 | October 4, 2021 | |
| Problem with stiffnes matrix and load vector | 0 | 315 | May 28, 2021 | |
| Permutation matrix for assembled matrix | 7 | 431 | May 13, 2022 |