<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">It just reports that you have a memory leak. Probably you did not call VecDestroy on the Vec created at at initpetsc_ in line 2066 of all.f95.<div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jan 30, 2017, at 8:04 PM, Praveen C <<a href="mailto:cpraveen@gmail.com" class="">cpraveen@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Dear all<div class=""><br class=""></div><div class="">I am trying to find a possible bug in my fortran petsc code. Running valgrid I see messages like this</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: menlo;" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">==28499== 1,596 (1,512 direct, 84 indirect) bytes in 1 blocks are definitely lost in loss record 174 of 194</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: menlo;" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">==28499== at 0x4C2D636: memalign (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: menlo;" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">==28499== by 0x4F0F178: PetscMallocAlign (mal.c:28)</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: menlo;" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">==28499== by 0x4FF7E82: VecCreate (veccreate.c:37)</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: menlo;" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">==28499== by 0x4FDF198: VecCreateSeqWithArray (bvec2.c:946)</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: menlo;" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">==28499== by 0x4FE442E: veccreateseqwitharray_ (zbvec2f.c:12)</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: menlo;" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">==28499== by 0x406921: initpetsc_ (all.f95:2066)</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: menlo;" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">==28499== by 0x4035B1: run_ (all.f95:2817)</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: menlo;" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">==28499== by 0x41760C: MAIN__ (all.f95:1383)</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: menlo;" class=""><span style="font-variant-ligatures:no-common-ligatures" class="">==28499== by 0x417D08: main (all.f95:1330)</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: menlo;" class=""><span style="font-variant-ligatures:no-common-ligatures" class=""><br class=""></span></div>Does this indicate some bug in my code ?</div><div class=""><br class=""></div><div class="">Thanks</div><div class="">praveen</div></div>
</div></blockquote></div><br class=""></div></body></html>