<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, May 9, 2014 at 7:29 AM, Antonios Mylonakis <span dir="ltr"><<a href="mailto:ant_mil@hotmail.com" target="_blank">ant_mil@hotmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div><div dir="ltr"><div>Dear Sir or Madam</div><div><br></div>I am a new PETSc user. I am using PETSc library with fortran. <div>I have the following problem. I want to use the matrix-free form of krylov solvers. So I am starting by using the example ex14f.F.</div>
<div><span style="font-size:12pt">In this example, within subroutine mymult()  I try call another subroutine which calculates the vector I need as the result of the matrix-vector multiplication.In this second subroutine the vector is defined as a simple array. (Is this the problem?) </span></div>
<div><span style="font-size:12pt">The problem is that I receive errors when I'm attempting to run the program.   The problem seems to be related with memory, but I am not sure.</span></div><div><span style="font-size:12pt"><br>
</span></div><div><span style="font-size:12pt">The first line of errors can be seen below:</span></div><div><span style="font-size:12pt">"</span><span style="font-size:12pt">Caught signal number 11 SEGV: Segmentation Violation, probably memory access out of range</span></div>
</div></div></blockquote><div><br></div><div>Always send the entire error meesage. The rest of the message tells you to run valgrind.</div><div><br></div><div>   Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div dir="ltr"><div><span style="font-size:12pt">Could you help me?</span></div><div><span style="font-size:12pt"><br></span></div><div><span style="font-size:12pt">Thanks in advance</span></div>                                        </div></div>

</blockquote></div><br><br clear="all"><div><br></div>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
-- Norbert Wiener
</div></div>