<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body>
<p>Hi, <br>
</p>
<p>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)?</p>
<p>Regards,</p>
<p>Roland<br>
</p>
<div class="moz-cite-prefix">Am 03.03.2021 um 22:23 schrieb Smit
Thijs:<br>
</div>
<blockquote type="cite"
cite="mid:1279b545fe9643b39ddefa27e59c2a16@hest.ethz.ch">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style>@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
{font-family:DengXian;
panose-1:2 1 6 0 3 1 1 1 1 1;}@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}@font-face
{font-family:"\@DengXian";
panose-1:2 1 6 0 3 1 1 1 1 1;}p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}div.WordSection1
{page:WordSection1;}</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal">Hi All,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">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)?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span style="color:#24292E">Best regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#24292E"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#24292E">Thijs Smit<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#24292E"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#24292E">PhD Candidate<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#24292E">ETH Zurich<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#24292E">Institute for
Biomechanics<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="DE-CH"><o:p> </o:p></span></p>
</div>
</blockquote>
</body>
</html>