[petsc-dev] Uninitialised variable
Pierre Jolivet
pierre.jolivet at enseeiht.fr
Sat Dec 23 07:43:00 CST 2017
Hello,
Shouldn’t to->sharedcnt be initialised to 0 before its first use here https://bitbucket.org/petsc/petsc/src/d209cd380f7aba331915877696c8ffe10e8df5ea/src/vec/vec/utils/vpscat.c?at=master&fileviewer=file-view-default#vpscat.c-2387 <https://bitbucket.org/petsc/petsc/src/d209cd380f7aba331915877696c8ffe10e8df5ea/src/vec/vec/utils/vpscat.c?at=master&fileviewer=file-view-default#vpscat.c-2387>, like from->sharedcnt is set to 0 there https://bitbucket.org/petsc/petsc/src/d209cd380f7aba331915877696c8ffe10e8df5ea/src/vec/vec/utils/vpscat.c?at=master&fileviewer=file-view-default#vpscat.c-2426 <https://bitbucket.org/petsc/petsc/src/d209cd380f7aba331915877696c8ffe10e8df5ea/src/vec/vec/utils/vpscat.c?at=master&fileviewer=file-view-default#vpscat.c-2426> ?
Thanks,
Pierre
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20171223/ca548621/attachment.html>
More information about the petsc-dev
mailing list