<div dir="ltr"><div class="gmail_default" style="font-family:georgia,serif">hello,<br></div><div class="gmail_default" style="font-family:georgia,serif">i tried importing matlab file containing 10000 scalars to petsc.<br><br><br><b>[0]PETSC ERROR: Read from file failed<br>[0]PETSC ERROR: Error reading from file, errno 9<br>[0]PETSC ERROR: See <a href="http://www.mcs.anl.gov/petsc/documentation/faq.html">http://www.mcs.anl.gov/petsc/documentation/faq.html</a> for trouble shooting.<br>[0]PETSC ERROR: Petsc Release Version 3.5.2, Sep, 08, 2014 <br>[0]PETSC ERROR: ./10D on a arch-linux2-c-debug named renoir by hridya Fri Jan 30 12:32:52 2015<br>[0]PETSC ERROR: Configure options --download-mpich<br>[0]PETSC ERROR: #1 PetscBinaryRead() line 275 in /home/hridya/Downloads/petsc-3.5.2/src/sys/fileio/sysio.c</b><br><br><br></div><div class="gmail_default" style="font-family:georgia,serif">i dont understand why should it not import the file. Please help!<br><br><br></div><div class="gmail_default" style="font-family:georgia,serif">just in case for reference i have used following routines;<br><b> ierr = PetscViewerBinaryOpen(PETSC_COMM_WORLD,"psi.mat",FILE_MODE_READ,&fd);CHKERRQ(ierr);<br><br> PetscViewerBinaryGetDescriptor(fd,&REV);<br> PetscBinaryRead(REV,trial,trial,PETSC_SCALAR);</b><br><br><br></div><div class="gmail_default" style="font-family:georgia,serif"><br><br></div><div class="gmail_default" style="font-family:georgia,serif"><br clear="all"></div><div><div class="gmail_signature"><div dir="ltr"><b><font face="georgia, serif">Siddhesh M Godbole</font></b><div><br></div><div><font color="#666666">5th year Dual Degree,</font></div><div><font color="#666666">Civil Eng & Applied Mech.</font></div><div><font color="#666666">IIT Madras</font></div></div></div></div>
</div>