<div dir="ltr">That is strange.<div><br></div><div>Do you have the error handling code in VecSet that you are just not showing here?</div><div><br></div><div>This error comes from VecSetSizes.</div><div><br></div><div>Mark</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Sep 24, 2023 at 3:49 PM Qiyue Lu <<a href="mailto:qiyuelu1@gmail.com">qiyuelu1@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello, <div>I have a vector (petsc_temp2) with size 1182 on my laptop without MPI. However, when I tried to call</div><div>VecScale(petsc_temp2, 1.0/2.0);</div><div>It failed with </div><div>Cannot change/reset vector sizes to -1 local 1182 global after previously setting them to 1182 local 1182 global<br></div><div><br></div><div>I wonder how this comes out and how the local size could be -1?</div><div><br></div><div>Thanks</div><div>Qiyue Lu</div><div><br></div><div><br></div></div>
</blockquote></div>