Community
cancel
Showing results for 
Search instead for 
Did you mean: 
diedro
Beginner
66 Views

complex system GETRF+GETRS

Dear all,

I would like to solve a linear complex system with MKL libraries. As I have done with real system I use GETRF with GETRS. The MKL reference says that I can also use getrs also for comple system. Here my example code:

program testmkl
use LAPACK95
implicit none
complex    ,allocatable,dimension(:,:)::AA
complex    ,allocatable,dimension(:)  ::BB
integer    ,allocatable,dimension(:)::IPV
integer :: info,n

n=10
allocate(AA(n,n))
allocate(BB(n))
allocate(IPV(n))

 call GETRF(AA,IPV,info)
 call GETRS(AA,IPV,BB,info)
 
endprogram

However, I am not able to compile it. This is my error:

There is no matching specific subroutine for this generic subroutine call.   [GETRS]
 call GETRS(AA,IPV,BB,info)

Where that am i wrong? 

Thanks

0 Kudos
1 Reply
diedro
Beginner
66 Views

Dear all,

I am sorry. I get the error. Here, the correct code

program testmkl
use LAPACK95
implicit none
complex    ,allocatable,dimension(:,:)::AA
complex    ,allocatable,dimension(:)  ::BB
integer    ,allocatable,dimension(:)::IPV
integer :: info,n

n=10
allocate(AA(n,n))
allocate(BB(n))
allocate(IPV(n))

 call GETRF(AA,IPV)
 call GETRS(AA,IPV,BB,'N',info)
 
endprogram

 

Reply