[petsc-users] Loading external array data into PETSc

Roland Richter roland.richter at ntnu.no
Wed Mar 3 15:27:21 CST 2021


Hi,

I think that depends on how you get the external vector (i.e. can you
create it internally or externally), and how big it is (1k entries, 1kk
entries, 1kkk entries)?

Regards,

Roland

Am 03.03.2021 um 22:23 schrieb Smit Thijs:
>
> 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/9c47c339/attachment.html>


More information about the petsc-users mailing list