<div dir="ltr"><div dir="ltr">On Sun, Sep 24, 2023 at 3:49 PM Qiyue Lu <<a href="mailto:qiyuelu1@gmail.com">qiyuelu1@gmail.com</a>> wrote:<br></div><div class="gmail_quote"><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</div></div></blockquote><div><br></div><div>1) Use PetscCall() to check all PETSc calls</div><div><br></div><div>2) Send the entire error output</div><div><br></div><div> Thanks,</div><div><br></div><div> Matt</div><div> </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"><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><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>-- Norbert Wiener</div><div><br></div><div><a href="http://www.cse.buffalo.edu/~knepley/" target="_blank">https://www.cse.buffalo.edu/~knepley/</a><br></div></div></div></div></div></div></div></div>