Thank you for your quick reply.
I've had to change away from HDF5 to Binary format at an earlier stage in my work due to the former not working well with what I needed, so I would prefer to stick with the binary format.
I had a quick view at the code for some of the Viewer-routines, but I'm not well versed in
gleaning information about header sizes
from that. Hints about what I'm looking for there would be appreciated.
Best regards
Peder
Hello
I have a binary file in which a mix of different objects is stored (Vecs, Mats, PetscInts). I can read each element just fine using VecLoad, MatLoad, and PetscIntView, provided they're read in the order in which they were put in the binary. What I would like to do is to skip the reading of any unneeded element, instead proceeding directly to the next one. I tried using PetscBinarySeek() for this, as shown in the attached code. This produces segmentation faults, suggesting that the file pointer isn't going where I want it to.
Any suggestions as to what I'm doing wrong here?
Best regards,
Peder
Peder Jørgensgaard Olesen PhD student
Department of Mechanical Engineeringpjool@mek.dtu.dk Koppels Allé Building 403, room 105 2800 Kgs. Lyngby www.dtu.dk/english