This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

reordering PETScMatrix

0 votes

Hi
I want to reorder the PETScMatrix object to improve the performance of the LU solver. In my understanding, there is no method to reorder the PETScMatrix explicitly in dolfin. However, when I do a manual reordering I cannot swap the content of Mat inside the PETScMatrix with the one I created. Is there other approach which doesn't require modification of the code ?
BR

asked May 8, 2014 by kstn FEniCS Novice (280 points)

1 Answer

0 votes

Good LU solvers will re-order the matrix.

DOLFIN does re-order dofs by default for data locality (primary objective) and minimising fill-in (secondary objective since an LU solver will re-order anyway).

answered Jun 23, 2014 by Garth N. Wells FEniCS Expert (35,930 points)
...