<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Sep 3, 2020, at 12:19 PM, Sajid Ali <<a href="mailto:sajidsyed2021@u.northwestern.edu" class="">sajidsyed2021@u.northwestern.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class=""><div class=""><div class=""><div class="">Hi PETSc-developers, <br class=""><br class=""></div>Currently, VecView loads an entire dataset from an hdf5 file into a PETSc vector (with any number of mpi ranks). Given that there is no routine to load a subset of an HDF5 dataset into a PETSc vector, the next best thing is to load the entire data-set into memory and select a smaller region as a sub-vector. Is there an example that demonstrates this ? (Mainly to get an idea on how to select a 2d array from a 3d array using a PETSc IS. Given that it's a regular 3D vector is it best to use a DMDA 3Dvec which gives ownership ranges that may aid with creating the IS ?)<br class=""></div></div></div></div></div></blockquote><div><br class=""></div>  Sajid,<br class=""><br class=""></div><div>   DMDACreatePatchIS() might be what you need.</div><div><br class=""></div><div><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class=""><div class=""><div class=""><br class=""></div><div class="">I've seen on earlier threads that XDMF can be used to create a map of where data is present in hdf5 files, is there an example for doing this with regular vectors to select subvectors as described above ?<br class=""></div></div></div><div class=""><br class=""></div><div class="">Also, is it possible to have different sub-comms read different hdf5 groups ? <br class=""></div></div></div></blockquote><div><br class=""></div>   I think this should be possible if you have each sub-comm separately open the file. </div><div><br class=""></div><div>  Barry</div><div><br class=""></div><div class=""><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class="">

</div><div class=""><br clear="all" class=""><div class=""><div class=""><div class=""><div class=""><div class="">Thank You,<br class=""></div><div class=""><div dir="ltr" data-smartmail="gmail_signature" class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><div style="font-size:12.8px" class="">Sajid Ali | PhD Candidate<br class=""></div><div style="font-size:12.8px" class="">Applied Physics<br class=""></div><div style="font-size:12.8px" class="">Northwestern University</div><div style="font-size:12.8px" class=""><a href="http://s-sajid-ali.github.io/" target="_blank" class="">s-sajid-ali.github.io</a></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div></blockquote></div><br class=""></body></html>