Re: [petsc-users] Change the matrix row order

2018-04-13 Thread Matthew Knepley
On Fri, Apr 13, 2018 at 5:45 AM, 我 wrote: > > Thanks for your reply! And sorry for my late answer. I want to parallel a > particle-method code and solve Ax=b in each timestep. In this code, each > partition forms a CSR matrix and assembles the final coefficient matrix by > MatCreateMPIAIJWithArr

Re: [petsc-users] Change the matrix row order

2018-04-13 Thread
Thanks for your reply! And sorry for my late answer. I want to parallel a particle-method code and solve Ax=b in each timestep. In this code, each partition forms a CSR matrix and assembles the final coefficient matrix by MatCreateMPIAIJWithArrays. But, the domain decomposition makes that the

Re: [petsc-users] Change the matrix row order

2018-04-10 Thread Smith, Barry F.
When and where do you want to change the row order? For PETSc and external factorization based solvers this is handled automatically, no need to do anything. The ordering of matrix rows corresponds to the ordering of the vectors; almost always one partitions and orders the vectors bas

[petsc-users] Change the matrix row order

2018-04-10 Thread
Hello, I want to change the row order of a sparse matrix. Are there any build-in functions and suggestions? Thank you very much! Daye