[petsc-users] MatDenseRestoreArray run time error
Barry Smith
bsmith at mcs.anl.gov
Wed Dec 10 15:58:15 CST 2014
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ex99.c
Type: application/octet-stream
Size: 12450 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20141210/c818e115/attachment.obj>
-------------- next part --------------
> 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