On Sun, May 21, 2017 at 11:11 AM, Franck Houssen <[email protected]> wrote:
> When using http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/PC/ > PCShellSetApply.html, do I have the guaranty that xout from " > PetscErrorCode > <http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Sys/PetscErrorCode.html#PetscErrorCode> > apply (PC > <http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/PC/PC.html#PC> > pc,Vec > <http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Vec/Vec.html#Vec> > xin,Vec > <http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Vec/Vec.html#Vec> > xout)" has always been previously filled with zeros ? > I may have to fill xout by blocks (I would += several possibly overlapping > blocks: I need to make sure xout is first filled with zero to get the > correct result). > No, we do not initialize the output vector. Yo ucan call VecSet(xout, 0.0); Thanks, Matt > Franck > -- 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 http://www.caam.rice.edu/~mk51/
