On Fri, Jan 20, 2012 at 3:15 PM, Mohamad M. Nasr-Azadani <span dir="ltr">&lt;<a href="mailto:mmnasr@gmail.com">mmnasr@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi guys, <div><br></div><div>Does <span style="font-family:monospace;white-space:pre-wrap"><font size="4"><b>PetscViewerHDF5Open()</b></font></span>work with <b>FILE_MODE_APPEND</b>? </div>

<div></div></blockquote><div><br></div><div>No, but HDF5 does not work like that.</div><div><br></div><div>  Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>This is the error I get when I first open the file, write some data to it using VecView(), close it and then again reopen (with append mode) it to add data to the end of it. </div><div><br></div><div><div>[0]PETSC ERROR: Operation done in wrong order!</div>


<div>[0]PETSC ERROR: Must call PetscViewerFileSetMode() before PetscViewerFileSetName()!</div></div><div><br></div><div>Thanks, </div><span class="HOEnZb"><font color="#888888"><div>Mohamad</div><div><br></div>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
-- Norbert Wiener<br>