[petsc-users] error while allocating dense distributed matrix

Jed Brown jedbrown at mcs.anl.gov
Fri Jun 7 09:17:41 CDT 2013


Michael Povolotskyi <mpovolot at purdue.edu> writes:

> Thank you, Barry.
> What I did I changed the call to
>
> ierr = MatCreateMPIDense(comm, m, num_cols ,PETSC_DECIDE,PETSC_DECIDE,data,petsc_matrix)

This is right if 'num_cols' is the local number of columns (i.e., number
of owned entries in a vector x, when computing y = A*x).

Also, the function has been called MatCreateDense() since petsc-3.3, so
please upgrade (to petsc-3.4).


More information about the petsc-users mailing list