<div dir="ltr"><div class="gmail_default" style="font-family:georgia,serif">Hello Barry,<br><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_default" style="font-family:georgia,serif">I am stuck with MatConvert because the matrix I am feeding into it is set as MATSEQSBAIJ during formation. I learned from your documents that already bij or sbij formats cannot be called upon by MatConvert command. but the ex99.c which you have sent me in your previous mail also has MatConvert operated on A & B which are already set up as MATSEQSBIAJ.<br><br></div><div class="gmail_default" style="font-family:georgia,serif">I don't understand this. Is there something I am missing to focus on? <br></div><div class="gmail_default" style="font-family:georgia,serif"><br></div><br></div><div class="gmail_extra"><br clear="all"><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>
<br><div class="gmail_quote">On Thu, Dec 11, 2014 at 3:28 AM, Barry Smith <span dir="ltr"><<a href="mailto:bsmith@mcs.anl.gov" target="_blank">bsmith@mcs.anl.gov</a>></span> wrote:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
   Siddhesh,<br>
<br>
    That example was unfortunately not in the test suite and hence did not work. Note that it is calling MatDenseRestoreArray() on the wrong matrix (A when it should be on A_dense). I've attached a fixed version of the example that should compile and run correctly for you (it does for me).<br>
<br>
    Sorry for the inconvenience<br>
<span class="HOEnZb"><font color="#888888"><br>
   Barry<br>
</font></span><br><br>
> On Dec 10, 2014, at 4:31 AM, siddhesh godbole <<a href="mailto:siddhesh4godbole@gmail.com">siddhesh4godbole@gmail.com</a>> wrote:<br>
><br>
> Pardon me,<br>
> This is the full error message<br>
><br>
><br>
> [0]PETSC ERROR: --------------------- Error Message --------------------------------------------------------------<br>
> [0]PETSC ERROR: No support for this operation for this object type<br>
> [0]PETSC ERROR: Cannot locate function MatDenseRestoreArray_C in object<br>
> [0]PETSC ERROR: See <a href="http://www.mcs.anl.gov/petsc/documentation/faq.html" target="_blank">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: ./8D on a arch-linux2-c-debug named iitm by iitm Wed Dec 10 15:48:03 2014<br>
> [0]PETSC ERROR: Configure options --download-mpich --download-f2cblaslapack=1<br>
> [0]PETSC ERROR: #1 MatDenseRestoreArray() line 1523 in /home/iitm/Downloads/petsc-3.5.2/src/mat/impls/dense/seq/dense.c<br>
> [0]PETSC ERROR: #2 main() line 181 in /home/iitm/Desktop/project/8D.c<br>
><br>
><br>
> Siddhesh M Godbole<br>
><br>
> 5th year Dual Degree,<br>
> Civil Eng & Applied Mech.<br>
> IIT Madras<br>
><br>
> On Wed, Dec 10, 2014 at 3:59 PM, siddhesh godbole <<a href="mailto:siddhesh4godbole@gmail.com">siddhesh4godbole@gmail.com</a>> wrote:<br>
> hello,<br>
><br>
> i was trying to modify ex99 in srs/mat/examples/test which deals with LAPACKsygvx_ for eigenvalues and eigenvectors<br>
><br>
> it compiles but gives the following error while executing the program<br>
><br>
><br>
><br>
> [0]PETSC ERROR:Cannot locate function MatDenseRestoreArray_C in object<br>
> [0]PETSC ERROR: Configure options --download-mpich --download-f2cblaslapack=1<br>
> [0]PETSC ERROR: #1 MatDenseRestoreArray() line 1523 in /home/iitm/Downloads/petsc-3.5.2/src/mat/impls/dense/seq/dense.c<br>
><br>
> can you please explain to me what are theses errors?<br>
><br>
> Siddhesh M Godbole<br>
><br>
> 5th year Dual Degree,<br>
> Civil Eng & Applied Mech.<br>
> IIT Madras<br>
><br>
<br>
<br></blockquote></div></div></div>