Hi,

Your problem doesn't seem related to MPI. You should ask general programming questions in different forums, such as StackOverflow. In addition, a debugger (e.g. gdb) would help you to identify the problem.

Best,
  Antonio


On 12/19/2013 04:53 AM, Soheil Hooshdaran wrote:
Hello.
My program produces Segmentation fault on uncommenting the lines 99 and  100. I could find no error on those lines, so  please help me.I will attach  the program


_______________________________________________
discuss mailing list     discuss@mpich.org
To manage subscription options or unsubscribe:
https://lists.mpich.org/mailman/listinfo/discuss


-- 
Antonio J. Peña
Postdoctoral Appointee
Mathematics and Computer Science Division
Argonne National Laboratory
9700 South Cass Avenue, Bldg. 240, Of. 3148
Argonne, IL 60439-4847
apenya@mcs.anl.gov
www.mcs.anl.gov/~apenya