I have created a file as per the specification as shown below [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
How do I save it as binary so that petsc can understand it? xxd -b takes each element as ascii 0 or 1 and converts that to binary and neither does petsc understand the file.