Reordering a sparse matrix

Hi everyone,

I am trying to reorder a sparse matrix generated by some simple physics models. After getting a segfault, and poking around a bit, I find that the error comes in because I have diagonal elements in my matrix. Unfortunately, these are necessary to represent the physics. Is there some way of dealing with these?

Thanks,

Lex Kemper

RE: You can just remove the

You can just remove the diagonal elements before calling Metis and you can add them back afterwards.