[petsc-users] Loading DM binary data into 64-bit-integer PETSc

Barry Smith bsmith at petsc.dev
Tue Jan 11 15:49:08 CST 2022


  In general, no because the integer values inside the files will have different lengths. You can use the Python lib/petsc/bin/PetscBinaryIO.py or MATLAB share/petsc/matlab/*.m utilities to read the data from one format and save it in the other. Sorry for the inconvenience. 

  Barry


> On Jan 11, 2022, at 4:33 PM, Bastian Löhrer <bastian.loehrer at tu-dresden.de> wrote:
> 
> Dear PETSc community,
> 
> I have PETSc binaries containing DM PetscScalars which were written with a PETSc configured without 64bit integers.
> 
> Is it possible to load this data using a PETSc configured with 64bit integers?
> 
> Thanks,
> Bastian
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20220111/036e9b08/attachment.html>


More information about the petsc-users mailing list