<div dir="ltr">To clarify : <br>The data from xxd -b petsc_output_dat is what I've reordered. The binary dump is confusing to read since it contains 6 bytes per line (alongside the unnecessary ascii conversions) and the numbers start and end in odd places. I wanted each line to have only one number and copy pasted the data into a new file. Then I changed the spacing so that the first two lines have 4 bytes (corresponding to int-32) each and correspond to VEC_FILE_CLASSID and num_elements (20 in this case). This is followed by 8 bytes (64-bit double) per line which store the actual elements of the vector.<br><br></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Dec 5, 2018 at 12:57 PM Sajid Ali <<a href="mailto:sajidsyed2021@u.northwestern.edu">sajidsyed2021@u.northwestern.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>It's just a cleaner re-write of the petsc output that I can understand (which I intend to modify from python in the future). I tried removing the new line characters but that didn't work either.<br><br></div>Looking at the first line of the binary dump from petsc output : <br><pre>[<a href="https://lists.mcs.anl.gov/mailman/listinfo/petsc-users" target="_blank">sajid at xrm</a> temp]$ xxd -b vector.dat
0000000: 00000000 00010010 01111011 01001110 00000000 00000000  ..{N..<br></pre><br><div class="gmail_quote"><div>The first 4 bytes combine to give <br><pre><i>00000000000100100111101101001110</i></pre></div></div><div>Which is int-32 representation of VEC_FILE_CLASSID and this is the first line of my file as well. <br><br><br></div><div>Thank You,<br></div><div dir="ltr" class="m_8070785608092111154gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div style="font-size:12.8px">Sajid Ali<br></div><div style="font-size:12.8px">Applied Physics<br></div><div style="font-size:12.8px">Northwestern University</div></div></div></div>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div style="font-size:12.8px">Sajid Ali<br></div><div style="font-size:12.8px">Applied Physics<br></div><div style="font-size:12.8px">Northwestern University</div></div></div>