Re: [petsc-users] PetscBinaryIO.py: readVec fails to read 0-length Vec

2024-07-29 Thread Barry Smith
https://urldefense.us/v3/__https://gitlab.com/petsc/petsc/-/merge_requests/7724__;!!G_uCfscf7eWS!c2pUfXzQgwy7S-LHON8g6ZH69NclYWSFtbeLLrMTZC_ubB8ziO9UykEAHS_ZMauViQm7pXW9lC06zLXAFT_v52Q$ > On Jul 27, 2024, at 12:49 PM, Nick OBrien via petsc-users > wrote: > > This Message Is From an External

[petsc-users] PetscBinaryIO.py: readVec fails to read 0-length Vec

2024-07-27 Thread Nick OBrien via petsc-users
PetscBinaryIO errors when reading a Vec with zero elements. The following python script demonstrates the issue: --8<---cut here---start->8--- import PetscBinaryIO import numpy as np io = PetscBinaryIO. PetscBinaryIO() ZjQcmQRYFpfptBannerStart