<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hello,<div class="">Shouldn’t to->sharedcnt be initialised to 0 before its first use here <a href="https://bitbucket.org/petsc/petsc/src/d209cd380f7aba331915877696c8ffe10e8df5ea/src/vec/vec/utils/vpscat.c?at=master&fileviewer=file-view-default#vpscat.c-2387" class="">https://bitbucket.org/petsc/petsc/src/d209cd380f7aba331915877696c8ffe10e8df5ea/src/vec/vec/utils/vpscat.c?at=master&fileviewer=file-view-default#vpscat.c-2387</a>, like from->sharedcnt is set to 0 there <a href="https://bitbucket.org/petsc/petsc/src/d209cd380f7aba331915877696c8ffe10e8df5ea/src/vec/vec/utils/vpscat.c?at=master&fileviewer=file-view-default#vpscat.c-2426" class="">https://bitbucket.org/petsc/petsc/src/d209cd380f7aba331915877696c8ffe10e8df5ea/src/vec/vec/utils/vpscat.c?at=master&fileviewer=file-view-default#vpscat.c-2426</a> ?</div><div class=""><br class=""></div><div class="">Thanks,</div><div class="">Pierre</div></body></html>