<html aria-label="message body"><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">Could you please share a runnable piece of code?<div>I’ve tried to generate an example myself, and I don’t get 0 for the norm of G.</div><div><br></div><div>Thanks,</div><div>Pierre<br id="lineBreakAtBeginningOfMessage"><div><br><blockquote type="cite"><div>On 6 Jan 2026, at 11:12 AM, Michael Wick <michael.wick.1980@gmail.com> wrote:</div><br class="Apple-interchange-newline"><div><div dir="ltr"><p class="gmail-isSelectedEnd">Hello PETSc users,</p><p class="gmail-isSelectedEnd">I have a VECNEST norm issue and would appreciate help.</p><p class="gmail-isSelectedEnd">I create a nest vector:<br>VecCreateNest(PETSC_COMM_WORLD, 2, NULL, subG, &G);</p><p class="gmail-isSelectedEnd">But:<br>VecNorm(G, NORM_2, &nG) returns 0</p><p class="gmail-isSelectedEnd">While the sub-vectors are clearly nonzero:<br>VecNestGetSubVec(G,0,&v0); VecNorm(v0,NORM_2,&n0); // n0 > 0<br>VecNestGetSubVec(G,1,&v1); VecNorm(v1,NORM_2,&n1); // n1 > 0</p><p>Can someone give a hint on what might go wrong?</p><p>Thanks,</p><p>M</p></div>
</div></blockquote></div><br></div></body></html>