Thanks Alexander. That totally makes sense now. <div><br></div><div>Best, </div><div>Mohamad</div><div><br><br><div class="gmail_quote">On Thu, Jan 19, 2012 at 1:23 AM, Alexander Grayver <span dir="ltr"><<a href="mailto:agrayver@gfz-potsdam.de">agrayver@gfz-potsdam.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div bgcolor="#ffffff" text="#000000">
There is a header in the beginning of the file. The info in the
header defines which object type is stored and its dimensions. <br>
The size of the header can vary depending on the stored object
(Vec,Mat,etc) and type you use for indices (int32,int64). <br>
<br>
For Vec object and int32 you have one integer defining the code of
the Vec object and another vector size. That sums up to 8 extra
bytes.<div><div class="h5"><br>
<br>
On 19.01.2012 09:20, Mohamad M. Nasr-Azadani wrote:
<blockquote type="cite">Hi guys,
<div><br>
</div>
<div>I use VecView() in conjunction with <a name="134f54956cc4fd03_PetscViewerBinaryOpen">
<h1 style="display:inline!important"><font size="1">PetscViewerBinaryOpen()</font></h1>
</a></div>
<div><a name="134f54956cc4fd03_PetscViewerBinaryOpen" style="font-family:'Times New Roman'">
<h1 style="display:inline!important"><font size="1">to write the binary data
associated with a 3D data obtained from DA structured
arrays. </font></h1>
</a></div>
<div><a name="134f54956cc4fd03_PetscViewerBinaryOpen" style="font-family:'Times New Roman'">
<h1 style="display:inline!important"><font size="1">I noticed that on my
machine, the size of the file is 8 bytes bigger than the
size of the data. </font></h1>
</a></div>
<div><a name="134f54956cc4fd03_PetscViewerBinaryOpen" style="font-family:'Times New Roman'">
<h1 style="display:inline!important"><font size="1">Could someone tell me
where that extra 8 byte is stored and how it is going
help?</font></h1>
</a></div>
<div><a name="134f54956cc4fd03_PetscViewerBinaryOpen" style="font-family:'Times New Roman'">
<h1 style="display:inline!important"><span style="font-family:arial;font-weight:normal;font-size:small"><br>
</span></h1>
</a></div>
<div><a name="134f54956cc4fd03_PetscViewerBinaryOpen" style="font-family:'Times New Roman'">
<h1 style="display:inline!important"><span style="font-family:arial;font-weight:normal;font-size:small">best </span></h1>
</a></div>
<div><a name="134f54956cc4fd03_PetscViewerBinaryOpen" style="font-family:'Times New Roman'">
<h1 style="display:inline!important"><span style="font-family:arial;font-weight:normal;font-size:small">Mohamad</span></h1>
</a></div>
<div><font face="'Times New Roman'"><span style="font-size:26px"><b><br>
</b></span></font></div>
</blockquote>
<br>
<br>
</div></div><span class="HOEnZb"><font color="#888888"><pre cols="72">--
Regards,
Alexander</pre>
</font></span></div>
</blockquote></div><br></div>