[petsc-users] INSERTVALUES after ADDVALUES
Jed Brown
jedbrown at mcs.anl.gov
Fri Oct 21 10:27:33 CDT 2011
1. Assemble twice
2. Do not insert into Dirichlet rows/columns, perhaps by using negative
indices. Then you can always ADD.
On Oct 21, 2011 10:23 AM, "NAN ZHAO" <zhaonanavril at gmail.com> wrote:
> Dear all,
>
> I am assembling a matrix using ADD_VALUES option, I need to insert certain
> values to the matrix cause I need to apply some boundary conditions. But I
> got the error
> [0]PETSC ERROR: Object is in wrong state!
> [0]PETSC ERROR: You have already added values; you cannot now insert!
>
> Is anyone have a solution of this?
>
> Thanks,
> Nan
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20111021/2209405b/attachment.htm>
More information about the petsc-users
mailing list