[petsc-users] SlepcInitialize Segmentation Fault

Sonya Blade sonyablade2010 at hotmail.com
Tue Oct 8 13:39:39 CDT 2013


DEar All,

I'm receiving the segmentation fault during the program run and this happens exactly at the 
SlepcInitialize function and I've no idea on what can be wrong, the error messages produced 
from compiler is as shown below. Any clue on what is wrong?


ORIGINAL CODE SNIPPET 

int main( int argc, char **argv )
{
  Vec            v0,vec,vec1,*evec,gamma,vec_test,result_vec;              /* initial vector */
  Mat            B, C, K, M, eigen_mat;               /* operator matrix */
  EPS            eps;             /* eigenproblem solver context */
  const EPSType  type;
  PetscInt       N,m=15,nev,max_size,row,column,test_int,g_row,g_col;
  PetscErrorCode ierr;
  PetscScalar eigen_r,eigen_i,test_scalar, *vector_array,*vec1arr;
  PetscReal norm;
  double value,test;
  int i,j, counter, counter2;
  FILE *myfile;

SlepcInitialize(&argc,&argv,NULL,NULL);



ERROR MESSAGES 

At D:\TEST_FOLDER_asus\PROJECTS\CBFortran\Slepc_C\Slepc_Subspace\main.c:24
Program received signal SIGSEGV, Segmentation fault.
In strncat () (C:\Windows\SysWOW64\msvcrt.dll)
217	/cygdrive/d/TEST_FOLDER_asus/petsc-3.4.2/src/sys/objects/options.c: No such file or directory.
#2  0x0065f761 in PetscSetProgramName (name=0x7370652d <Address 0x7370652d out of bounds>) at /cygdrive/d/TEST_FOLDER_asus/petsc-3.4.2/src/sys/objects/options.c:217
Debugger finished with status 0 		 	   		  


More information about the petsc-users mailing list