[petsc-users] INSERTVALUES after ADDVALUES
Matthew Knepley
knepley at gmail.com
Fri Oct 21 10:27:04 CDT 2011
On Fri, Oct 21, 2011 at 3:23 PM, 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?
>
Call Assembly between the ADD and INSERT calls.
Matt
> Thanks,
> Nan
>
--
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/20111021/4acba755/attachment.htm>
More information about the petsc-users
mailing list