<div class="gmail_quote">On Tue, Aug 23, 2011 at 02:37, Алексей Рязанов <span dir="ltr"><<a href="mailto:ram@ibrae.ac.ru">ram@ibrae.ac.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="gmail_quote"><font face="arial, helvetica, sans-serif">When i delete the 4-5-6 part of 2nd, 1-2-3 works great! with exact like 1st results.</font></div>
<div class="gmail_quote"><font face="arial, helvetica, sans-serif">When i delete the 1-2-3 part of 2nd, 4-5-6 works great! with exact like 1st results.</font></div><div class="gmail_quote"><font face="arial, helvetica, sans-serif">All program (1-2-3-4-5-6) works badly.</font></div>
</blockquote></div><br><div>From the -log_summary, you have a memory leak (many more vector creations than destructions). Try running with -malloc_dump to debug it. Perhaps you are creating a vector every time one of your functions is called? You should also build --with-debugging=0 when looking at timing results. (You can keep it in PETSC_ARCH=linux-gnu-opt.)</div>