[petsc-users] [petsc-dev] MatCreateDense
Matthew Knepley
knepley at gmail.com
Thu Oct 31 13:37:43 CDT 2013
On Thu, Oct 31, 2013 at 1:21 PM, Jose David Bermeol <jbermeol at purdue.edu>wrote:
> Hi small question. In the method MatCreateSeqDense(MPI_Comm comm,PetscInt
> m,PetscInt n,PetscScalar *data,Mat *A) I'm giving the local number of rows
> and columns, so I should pass the total number of local columns or I should
> pass columns/number_of_MPI process.
>
If its sequential, you pass the total number of columns. If its
MatCreateMPIDense(), pass the number of local columns. This
is used to create a vector with the same layout as y = A^T x.
Matt
> Thanks
>
--
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20131031/bb85dc36/attachment.html>
More information about the petsc-users
mailing list