[petsc-users] Loading external array data into PETSc

Smit Thijs thijs.smit at hest.ethz.ch
Wed Mar 3 15:23:06 CST 2021


Hi All,

I would like to readin a fairly large external vector into PETSc to be used further. My idea was to write a hdf5 file using Python with the vector data. Then read that hdf5 file into PETSc using PetscViewerHDF5Open and VecLoad. Is this the advised way or is there a better alternative to achieve the same (getting this external array data into PETSc)?

Best regards,

Thijs Smit

PhD Candidate
ETH Zurich
Institute for Biomechanics

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


More information about the petsc-users mailing list