<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hi, Petsc Team,<br>
<br>
<br>
I know that we can write multiple vectors or matrices into one binary file by doing<br>
<br>
&nbsp;&nbsp; PetscViewerBinaryOpen(COMM, &quot;./vector.dat&quot;, FILE_MODE_WRITE, &amp;viewer1);&nbsp; <br>
&nbsp;&nbsp; VecView(a, viewer1);&nbsp;&nbsp; <br>
&nbsp;&nbsp; PetscViewerBinaryOpen(COMM, &quot;./vector.dat&quot;, FILE_MODE_APPEND, &amp;viewer1);<br>
&nbsp;&nbsp; VecView(b, viewer1);<br>
<br>
But if we want to read from &quot;./vector.dat&quot; and distribute the respective values to vector a and b, how to realize that?&nbsp; What I previously knew is &quot;one file for one vector only&quot; when reading.
<br>
<br>
<br>
Another question is about the HDF5 format.&nbsp; I've included &quot;petscsys.h&quot; at the code header.&nbsp; But when I complied (make file) the code, the error message indicated &quot;undefined reference to PetscViewerHDF5Open&quot;.&nbsp; The error also happens to the example codes for
 this function.&nbsp; What's wrong with is?&nbsp; Is it no more supported? <br>
<br>
<br>
<br>
Thank you.<br>
<br>
<br>
<br>
Zhisong Li<br>
</div>
</body>
</html>