<div dir="ltr"><div>To pad a vector, i.e., copy a vector to a new one, I have to call VecSetValue(newb,1,&idx,...) for each element. But to be efficient, what I really needs is to set a block of values in one call. It looks PETSc does not have a routine for that(?). I looked at VecSetValuesBlocked, but it looks it is not for that purpose.</div><div>Should we have something like VecSetValuesBlock(<a href="http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Vec/Vec.html#Vec">Vec</a><span style="color:rgb(0,0,0)"> v,</span><a href="http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Sys/PetscInt.html#PetscInt">PetscInt</a><span style="color:rgb(0,0,0)"> i,PetscInt cnt,</span><a href="http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Sys/PetscScalar.html#PetscScalar">PetscScalar</a><span style="color:rgb(0,0,0)"> *value, </span><a href="http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Sys/InsertMode.html#InsertMode">InsertMode</a><span style="color:rgb(0,0,0)"> mode) to set cnt values starting at index i?</span></div><div><div class="gmail_signature"><div dir="ltr"><br></div><div dir="ltr">--Junchao Zhang</div></div></div>
</div>