<div>Hi all !<br><br></div>I am using fortran with petsc-3.2-p7, and slepc-3.2-p5<div><br>A code snippet of the place where the error is coming:<br><div><i><br></i></div><div><i>call EPSCreate(PETSC_COMM_WORLD,eps,ierr)</i></div>
<div><i>call EPSSetOperators(eps,AR,PETSC_NULL,ierr) <-------</i></div><div><i>call EPSSetProblemType(eps,EPS_HEP,ierr)</i></div><div><br></div><div>The error message:<br><br><div>[0]PETSC ERROR: ------------------------------------------------------------------------</div>
<div>[0]PETSC ERROR: Caught signal number 11 SEGV: Segmentation Violation, probably memory access out of range</div><div>[0]PETSC ERROR: Try option -start_in_debugger or -on_error_attach_debugger</div><div>[0]PETSC ERROR: or see <a href="http://www.mcs.anl.gov/petsc/petsc-as/documentation/faq.html#valgrind[0]PETSC">http://www.mcs.anl.gov/petsc/petsc-as/documentation/faq.html#valgrind[0]PETSC</a> ERROR: or try <a href="http://valgrind.org">http://valgrind.org</a> on GNU/linux and Apple Mac OS X to find memory corruption errors</div>
<div>[0]PETSC ERROR: likely location of problem given in stack below</div><div>[0]PETSC ERROR: --------------------- Stack Frames ------------------------------------</div><div>[0]PETSC ERROR: Note: The EXACT line numbers in the stack are not available,</div>
<div>[0]PETSC ERROR: INSTEAD the line number of the start of the function</div><div>[0]PETSC ERROR: is given.</div><div>[0]PETSC ERROR: [0] EPSSetOperators line 267 src/eps/interface/setup.c</div><div>[0]PETSC ERROR: --------------------- Error Message ------------------------------------</div>
<div>[0]PETSC ERROR: Signal received!</div><div>[0]PETSC ERROR: ------------------------------------------------------------------------</div><div>[0]PETSC ERROR: Petsc Release Version 3.2.0, Patch 7, Thu Mar 15 09:30:51 CDT 2012 </div>
<div>[0]PETSC ERROR: See docs/changes/index.html for recent updates.</div><div>[0]PETSC ERROR: See docs/faq.html for hints about trouble shooting.</div><div>[0]PETSC ERROR: See docs/index.html for manual pages.</div><div>
[0]PETSC ERROR: ------------------------------------------------------------------------</div><div>[0]PETSC ERROR: ./nmaex on a new-linux named shitij by shitij Tue Aug 14 14:39:24 2012</div><div>[0]PETSC ERROR: Libraries linked from /home/shitij/NMA/Lib/petsc-3.2-p7/new-linux12/lib</div>
<div>[0]PETSC ERROR: Configure run at Wed Jun 20 10:20:34 2012</div><div>[0]PETSC ERROR: Configure options --with-blas-lapack-dir=/opt/intel/Compiler/11.0/074/mkl/lib/em64t --with-mpi-dir=/home/shitij/NMA/Lib/mpich2-build</div>
<div>[0]PETSC ERROR: ------------------------------------------------------------------------</div><div>[0]PETSC ERROR: User provided function() line 0 in unknown directory unknown file</div><div>application called MPI_Abort(MPI_COMM_WORLD, 59) - process 0</div>
</div><div><br></div><div><br></div><div>Now, my program conditionally branches in the beginning and then converges somewhere in the middle, after which this piece of code comes. One branch works fine, but the other doesn't. So the usage of the function itself is correct, but something in the other branch is wrong. I can understand this much.</div>
<div><br>What I do not understand is why the error is coming at EPSSetOperators, and how do I debug this problem?</div><div><br>I verified that the MPIAIJ array, AR, itself is not null with MatView, and I already created the EPS context as eps in the previous line, and the other arguments to the function are the same as in the other branch, so they cannot be the problem. The values inside the AR array might be incorrect, but they are there so this error should not come because of that as far as I can understand.<br>
<br>Any help will be appreciated.<br><br>Thank you in advance.</div></div>