<div dir="ltr">There does not seem to be a Read variant of VecGetArrayAndMemType.<br><div>I am getting an error:</div><div>[0]PETSC ERROR: Object is in wrong state<br>[0]PETSC ERROR: Vec is already locked for read-only or read/write access, argument # 1<br></div><div>This is in a TS callback. Does TS lock the state vector from writing?</div><div>Should I add a Read version of VecGetArrayAndMemType?</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Apr 28, 2021 at 12:29 AM Jed Brown <<a href="mailto:jed@jedbrown.org">jed@jedbrown.org</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"><a href="https://petsc.org/main/docs/manualpages/Vec/VecGetArrayAndMemType.html" rel="noreferrer" target="_blank">https://petsc.org/main/docs/manualpages/Vec/VecGetArrayAndMemType.html</a><br>
<br>
Mark Adams <<a href="mailto:mfadams@lbl.gov" target="_blank">mfadams@lbl.gov</a>> writes:<br>
<br>
> Have we abstracted VecCUDAGetArray[Read] ?<br>
><br>
> VecDeviceGetArray?<br>
><br>
> Mark<br>
</blockquote></div>