[petsc-users] MatDenseRestoreArray run time error
siddhesh godbole
siddhesh4godbole at gmail.com
Fri Dec 12 07:32:15 CST 2014
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
> >
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20141212/45bef14f/attachment.html>
More information about the petsc-users
mailing list