<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body 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.<br>
<br>
On 19.01.2012 09:20, Mohamad M. Nasr-Azadani wrote:
<blockquote
cite="mid:CAE_bc5bxz4BH9UAgFDXUL+ZMCUMRpPurqDXHmjpXQiW96tw8_A@mail.gmail.com"
type="cite">Hi guys,
<div><br>
</div>
<div>I use VecView() in conjunction with <a moz-do-not-send="true"
name="PetscViewerBinaryOpen" style="font-family: 'Times New
Roman'; background-color: rgb(255, 255, 255);">
<h1 style="display: inline ! important;"><font
class="Apple-style-span" size="1">PetscViewerBinaryOpen()</font></h1>
</a></div>
<div><a moz-do-not-send="true" name="PetscViewerBinaryOpen"
style="font-family: 'Times New Roman'; background-color:
rgb(255, 255, 255);">
<h1 style="display: inline ! important;"><font
class="Apple-style-span" size="1">to write the binary data
associated with a 3D data obtained from DA structured
arrays. </font></h1>
</a></div>
<div><a moz-do-not-send="true" name="PetscViewerBinaryOpen"
style="font-family: 'Times New Roman'; background-color:
rgb(255, 255, 255);">
<h1 style="display: inline ! important;"><font
class="Apple-style-span" 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 moz-do-not-send="true" name="PetscViewerBinaryOpen"
style="font-family: 'Times New Roman'; background-color:
rgb(255, 255, 255);">
<h1 style="display: inline ! important;"><font
class="Apple-style-span" 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 moz-do-not-send="true" name="PetscViewerBinaryOpen"
style="font-family: 'Times New Roman'; background-color:
rgb(255, 255, 255);">
<h1 style="display: inline ! important;"><span
class="Apple-style-span" style="font-family: arial;
font-weight: normal; font-size: small;"><br>
</span></h1>
</a></div>
<div><a moz-do-not-send="true" name="PetscViewerBinaryOpen"
style="font-family: 'Times New Roman'; background-color:
rgb(255, 255, 255);">
<h1 style="display: inline ! important;"><span
class="Apple-style-span" style="font-family: arial;
font-weight: normal; font-size: small;">best </span></h1>
</a></div>
<div><a moz-do-not-send="true" name="PetscViewerBinaryOpen"
style="font-family: 'Times New Roman'; background-color:
rgb(255, 255, 255);">
<h1 style="display: inline ! important;"><span
class="Apple-style-span" style="font-family: arial;
font-weight: normal; font-size: small;">Mohamad</span></h1>
</a></div>
<div><font class="Apple-style-span" face="'Times New Roman'"><span
class="Apple-style-span" style="font-size: 26px;"><b><br>
</b></span></font></div>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Regards,
Alexander</pre>
</body>
</html>