[petsc-users] SNESSetVariableBounds

Barry Smith bsmith at mcs.anl.gov
Fri Jan 17 17:18:21 CST 2014


  PETSc actually increases the reference counts for the Vecs so yes you can call VecDestroy() on them immediately after the set call. DO NOT use the vectors for some other purpose because it will overwrite the values you set.

   Barry

On Jan 17, 2014, at 4:58 PM, Dharmendar Reddy <dharmareddy84 at gmail.com> wrote:

> Hello,
>       Can i destroy the ub and lb vectors after call to SNESSetVariableBounds ?
> 
> Reddy



More information about the petsc-users mailing list