[petsc-users] Problem using MatSetOption

Jed Brown jed at 59A2.org
Thu Feb 24 04:19:20 CST 2011


On Thu, Feb 24, 2011 at 11:01, TAY wee-beng <zonexo at gmail.com> wrote:

> Error: This name does not have a type, and must have an explicit type.
> [MAT_NO_NEW_NONZERO_LOCATIONS]
> call MatSetOption(A_mat_uv,MAT_NO_NEW_NONZERO_LOCATIONS,PETSC_TRUE,ierr)
>

The last reference to MAT_NO_NEW_NONZERO_LOCATIONS was removed more than two
years ago. You should use

MatSetOption(A_mat_uv,MAT_NEW_NONZERO_LOCATIONS,PETSC_FALSE,ierr)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110224/3592e16c/attachment.htm>


More information about the petsc-users mailing list