<div dir="ltr"><div class="markdown-here-wrapper" style=""><p style="margin:0px 0px 1.2em!important">I have created a file as per the specification as shown below </p>
<pre style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;font-size:1em;line-height:1.2em;margin:1.2em 0px"><code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline;white-space:pre;overflow:auto;border-radius:3px;border:1px solid rgb(204,204,204);padding:0.5em 0.7em;display:block!important">[sajid@xrm temp]$ cat vector.dat
00000000000100100111101101001110
00000000000000000000000000010100
0000000000000000000000000000000000000000000000000000000000000000
0011111111110000000000000000000000000000000000000000000000000000
0100000000000000000000000000000000000000000000000000000000000000
0100000000001000000000000000000000000000000000000000000000000000
0100000000010000000000000000000000000000000000000000000000000000
0100000000010100000000000000000000000000000000000000000000000000
0100000000011000000000000000000000000000000000000000000000000000
0100000000011100000000000000000000000000000000000000000000000000
0100000000100000000000000000000000000000000000000000000000000000
0100000000100010000000000000000000000000000000000000000000000000
0100000000100100000000000000000000000000000000000000000000000000
0100000000100110000000000000000000000000000000000000000000000000
0100000000101000000000000000000000000000000000000000000000000000
0100000000101010000000000000000000000000000000000000000000000000
0100000000101100000000000000000000000000000000000000000000000000
0100000000101110000000000000000000000000000000000000000000000000
0100000000110000000000000000000000000000000000000000000000000000
0100000000110001000000000000000000000000000000000000000000000000
0100000000110010000000000000000000000000000000000000000000000000
0100000000110011000000000000000000000000000000000000000000000000
</code></pre><p style="margin:0px 0px 1.2em!important">How do I save it as binary so that petsc can understand it? <br></p><p style="margin:0px 0px 1.2em!important">xxd -b takes each element as ascii 0 or 1 and converts that to binary and neither does petsc understand the file. <br></p>
<div title="MDH:PGRpdiBkaXI9Imx0ciI+SSBoYXZlIGNyZWF0ZWQgYSBmaWxlIGFzIHBlciB0aGUgc3BlY2lmaWNh
dGlvbiBhcyBzaG93biBiZWxv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