The right way to do this is to input the matrix using MatSetValues() in a distribute fashion. You can consult any of the tutorials, for instance KSP ex2 for an example of this.
Matt On Mon, Sep 22, 2008 at 12:57 PM, Yujie <recrusader at gmail.com> wrote: > Hi, Petsc developer > > Now, I have a sequential dense matrix. How to get a parallel matrix based on > it? thanks a lot. > > Regards, > > Yujie -- What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead. -- Norbert Wiener
