m-reuter / arpackpp

Arpack++ with patches (C++ interface to ARPACK)
Other
61 stars 26 forks source link

Valgrind Error from ARrcStdEig::FindEigenvalues #14

Closed gelever closed 6 years ago

gelever commented 6 years ago

Hello, When calling ARrcStdEig::FindEigenvalues, Valgrind complains about Conditional jump or move depends on uninitialised value(s) This is caused by HowMny not being initialized prior to the Fortran call. Even though the value should not be referenced when only eigenvalues are computed, in dseupd.f it is checked before recv,


320 | if ( (howmny .ne. 'A' .and.
     &           howmny .ne. 'P' .and.
     &           howmny .ne. 'S') .and. rvec )
     &                                         ierr = -15

The simplest solution would probably be to either give HowMny a default value, or set it to some value before calling Eupp()