[petsc-users] error with slepc shift invert: New nonzero at (0, 0) caused a malloc!
John Travers
jtravs at gmail.com
Tue Aug 27 08:46:51 CDT 2013
Hi all,
I'm trying to use shift and invert to find interior eigenvalues using slepc.
I am using example 4 in slepc 3.41 which reads the matrix from a binary file ('A' saved from Matlab).
If I run just:
./ex4 -file A -eps_nev 1
the program runs fine, and correctly finds the largest eigenvalue (although much slower than Matlab's eigs).
However, if I run:
./ex4 -file A -eps_nev 1 -st_type sinvert -st_shift 0.0,0.5
to try and find an eigenvalue near 0.0+0.5i, it outputs the error message below.
Any help would be much appreciated!
Best regards,
John
==================================================================
Eigenproblem stored in file.
Reading COMPLEX matrix from a binary file...
[0]PETSC ERROR: --------------------- Error Message ------------------------------------
[0]PETSC ERROR: Argument out of range!
[0]PETSC ERROR: New nonzero at (0,0) caused a malloc!
[0]PETSC ERROR: ------------------------------------------------------------------------
[0]PETSC ERROR: Petsc Release Version 3.4.2, Jul, 02, 2013
[0]PETSC ERROR: See docs/changes/index.html for recent updates.
[0]PETSC ERROR: See docs/faq.html for hints about trouble shooting.
[0]PETSC ERROR: See docs/index.html for manual pages.
[0]PETSC ERROR: ------------------------------------------------------------------------
[0]PETSC ERROR: /Users/john/Documents/code/downloaded/slepc-3.4.1/src/eps/examples/tutorials/ex4 on a arch-darwin-cxx-debug named mpl002075.mpl.mpg.de by john Tue Aug 27 15:43:45 2013
[0]PETSC ERROR: Libraries linked from /Users/john/Documents/code/downloaded/petsc-3.4.2/arch-darwin-cxx-debug/lib
[0]PETSC ERROR: Configure run at Fri Aug 23 08:07:38 2013
[0]PETSC ERROR: Configure options --with-cc=gcc-mp-4.8 --with-fc=gfortran-mp-4.8 --with-cxx=g++ --download-f-blas-lapack --with-mpi=0 --with-scalar-type=complex --with-clanguage=cxx
[0]PETSC ERROR: ------------------------------------------------------------------------
[0]PETSC ERROR: MatSetValues_SeqAIJ() line 353 in /Users/john/Documents/code/downloaded/petsc-3.4.2/src/mat/impls/aij/seq/aij.c
[0]PETSC ERROR: MatSetValues() line 1106 in /Users/john/Documents/code/downloaded/petsc-3.4.2/src/mat/interface/matrix.c
[0]PETSC ERROR: MatShift() line 166 in /Users/john/Documents/code/downloaded/petsc-3.4.2/src/mat/utils/axpy.c
[0]PETSC ERROR: STMatGAXPY_Private() line 376 in /Users/john/Documents/code/downloaded/slepc-3.4.1/src/st/interface/stsolve.c
[0]PETSC ERROR: STSetUp_Sinvert() line 138 in /Users/john/Documents/code/downloaded/slepc-3.4.1/src/st/impls/sinvert/sinvert.c
[0]PETSC ERROR: STSetUp() line 290 in /Users/john/Documents/code/downloaded/slepc-3.4.1/src/st/interface/stsolve.c
[0]PETSC ERROR: EPSSetUp() line 215 in /Users/john/Documents/code/downloaded/slepc-3.4.1/src/eps/interface/setup.c
[0]PETSC ERROR: EPSSolve() line 90 in /Users/john/Documents/code/downloaded/slepc-3.4.1/src/eps/interface/solve.c
[0]PETSC ERROR: main() line 88 in src/eps/examples/tutorials/ex4.c
Abort trap: 6
More information about the petsc-users
mailing list