[petsc-users] VecDeviceGetArray?

Mark Adams mfadams at lbl.gov
Wed Apr 28 07:48:37 CDT 2021


nvm, the Read version is there.

On Wed, Apr 28, 2021 at 7:45 AM Mark Adams <mfadams at lbl.gov> wrote:

> There does not seem to be a Read variant of VecGetArrayAndMemType.
> I am getting an error:
> [0]PETSC ERROR: Object is in wrong state
> [0]PETSC ERROR:  Vec is already locked for read-only or read/write access,
> argument # 1
> This is in a TS callback. Does TS lock the state vector from writing?
> Should I add a Read version of VecGetArrayAndMemType?
>
>
>
> On Wed, Apr 28, 2021 at 12:29 AM Jed Brown <jed at jedbrown.org> wrote:
>
>> https://petsc.org/main/docs/manualpages/Vec/VecGetArrayAndMemType.html
>>
>> Mark Adams <mfadams at lbl.gov> writes:
>>
>> > Have we abstracted VecCUDAGetArray[Read] ?
>> >
>> > VecDeviceGetArray?
>> >
>> > Mark
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20210428/1fec5441/attachment.html>


More information about the petsc-users mailing list