<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>
PetscViewerBinaryOpen(COMM, "./vector.dat", FILE_MODE_WRITE, &viewer1); <br>
VecView(a, viewer1); <br>
PetscViewerBinaryOpen(COMM, "./vector.dat", FILE_MODE_APPEND, &viewer1);<br>
VecView(b, viewer1);<br>
<br>
But if we want to read from "./vector.dat" and distribute the respective values to vector a and b, how to realize that? What I previously knew is "one file for one vector only" when reading.
<br>
<br>
<br>
Another question is about the HDF5 format. I've included "petscsys.h" at the code header. But when I complied (make file) the code, the error message indicated "undefined reference to PetscViewerHDF5Open". The error also happens to the example codes for
this function. What's wrong with is? Is it no more supported? <br>
<br>
<br>
<br>
Thank you.<br>
<br>
<br>
<br>
Zhisong Li<br>
</div>
</body>
</html>