Hello Sergey,
the system I try to solve is Ax=B, where A is N x N complex matrix and B is a complex column vector with every element equal to zero except one and I use static linking. I use the folowing:
.............................................................................................................................................................................................
!---------------------------------------------------------------------------
!Initialize the solver
!---------------------------------------------------------------------------
error = dss_create(handle, MKL_DSS_DEFAULTS)
IF (error.NE.MKL_DSS_SUCCESS ) GOTO 999
!---------------------------------------------------------------------------
! Define the non-zero structure of the matrix
!---------------------------------------------------------------------------
error = dss_define_structure(handle, MKL_DSS_NON_SYMMETRIC_COMPLEX ,rowIndex, nRows, nCols, columns, nNonZeros )
IF (error.NE.MKL_DSS_SUCCESS ) GOTO 999
!---------------------------------------------------------------------------
! Reorder the matrix
!---------------------------------------------------------------------------
error = dss_reorder(handle, MKL_DSS_DEFAULTS, perm)
IF (error.NE.MKL_DSS_SUCCESS ) GOTO 999
!---------------------------------------------------------------------------
! Factor the matrix
!---------------------------------------------------------------------------
error = dss_factor_complex(handle, MKL_DSS_POSITIVE_DEFINITE, values)
IF (error.NE.MKL_DSS_SUCCESS) GOTO 999
!---------------------------------------------------------------------------
! Get the solution vector
!---------------------------------------------------------------------------
error = dss_solve_complex(handle,MKL_DSS_DEFAULTS,rhs, nRhs, solution)
IF (error.NE.MKL_DSS_SUCCESS ) GOTO 999
!---------------------------------------------------------------------------
! Deallocate solver storage
!---------------------------------------------------------------------------
error = dss_delete(handle, MKL_DSS_DEFAULTS)
IF (error.NE.MKL_DSS_SUCCESS ) GOTO 999
999 WRITE(*,*) "Solver returned error code ", error
.................................................................................................................................................................................................
Also I have set perm()=0 and I have tried options MKL_DSS_DEFINITE and MKL_DSS_INDEFINITE
I do not know which routine is crashed since I receive the message imediatly.
P.S. After correcting an error in a matrix element I do not receive any more "Solver returned error code 0", but only the second case.
thanks
Panayotis