Page 1 of 1

dgetri writes on allocated arrays

PostPosted: Tue Feb 26, 2013 9:10 am
by edmondo_bassano
after the call to dgetri an array (CIC) already set to zero has nonzero components

cic=0.0d0
lda=10
lwork=10

matr_(1:10,1:10)=pij_(0:9,0:9)
!lda=10
!lwork=-1
call dgetrf( 10, 10, matr_, lda, ipiv, info )
!lwork=640
call dgetri( 10, matr_, lda, ipiv, work, lwork, info )
continue
is there any explanation?
Thanks a lot
Eddy

Re: dgetri writes on allocated arrays

PostPosted: Tue Feb 26, 2013 1:53 pm
by admin
Do you have a full program? I cannot see how you allocate your variables.