[petsc-users] MatDenseRestoreArray run time error

Barry Smith bsmith at mcs.anl.gov
Fri Dec 12 08:43:47 CST 2014


  I don't understand. If you want to use LAPACK to find eigenvalues/eigenvectors then you need to use a dense format; that is the only format that LAPACK supports. So create a SeqDense matrix instead of a seqsbaij matrix.

  Barry

> On Dec 12, 2014, at 7:32 AM, siddhesh godbole <siddhesh4godbole at gmail.com> wrote:
> 
> Hello Barry,
> 
> 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.
> 
> I don't understand this. Is there something I am missing to focus on? 
> 
> 
> 
> Siddhesh M Godbole
> 
> 5th year Dual Degree,
> Civil Eng & Applied Mech.
> IIT Madras
> 
> On Thu, Dec 11, 2014 at 3:28 AM, Barry Smith <bsmith at mcs.anl.gov> wrote:
> 
>    Siddhesh,
> 
>     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).
> 
>     Sorry for the inconvenience
> 
>    Barry
> 
> 
> > On Dec 10, 2014, at 4:31 AM, siddhesh godbole <siddhesh4godbole at gmail.com> wrote:
> >
> > Pardon me,
> > This is the full error message
> >
> >
> > [0]PETSC ERROR: --------------------- Error Message --------------------------------------------------------------
> > [0]PETSC ERROR: No support for this operation for this object type
> > [0]PETSC ERROR: Cannot locate function MatDenseRestoreArray_C in object
> > [0]PETSC ERROR: See http://www.mcs.anl.gov/petsc/documentation/faq.html for trouble shooting.
> > [0]PETSC ERROR: Petsc Release Version 3.5.2, Sep, 08, 2014
> > [0]PETSC ERROR: ./8D on a arch-linux2-c-debug named iitm by iitm Wed Dec 10 15:48:03 2014
> > [0]PETSC ERROR: Configure options --download-mpich --download-f2cblaslapack=1
> > [0]PETSC ERROR: #1 MatDenseRestoreArray() line 1523 in /home/iitm/Downloads/petsc-3.5.2/src/mat/impls/dense/seq/dense.c
> > [0]PETSC ERROR: #2 main() line 181 in /home/iitm/Desktop/project/8D.c
> >
> >
> > Siddhesh M Godbole
> >
> > 5th year Dual Degree,
> > Civil Eng & Applied Mech.
> > IIT Madras
> >
> > On Wed, Dec 10, 2014 at 3:59 PM, siddhesh godbole <siddhesh4godbole at gmail.com> wrote:
> > hello,
> >
> > i was trying to modify ex99 in srs/mat/examples/test which deals with LAPACKsygvx_ for eigenvalues and eigenvectors
> >
> > it compiles but gives the following error while executing the program
> >
> >
> >
> > [0]PETSC ERROR:Cannot locate function MatDenseRestoreArray_C in object
> > [0]PETSC ERROR: Configure options --download-mpich --download-f2cblaslapack=1
> > [0]PETSC ERROR: #1 MatDenseRestoreArray() line 1523 in /home/iitm/Downloads/petsc-3.5.2/src/mat/impls/dense/seq/dense.c
> >
> > can you please explain to me what are theses errors?
> >
> > Siddhesh M Godbole
> >
> > 5th year Dual Degree,
> > Civil Eng & Applied Mech.
> > IIT Madras
> >
> 
> 



More information about the petsc-users mailing list