Dear all,<div><br></div><div>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 </div><div>[0]PETSC ERROR: Object is in wrong state!</div>
<div>[0]PETSC ERROR: You have already added values; you cannot now insert!</div><div><br></div><div>Is anyone have a solution of this?</div><div><br></div><div>Thanks,</div><div>Nan</div>