[petsc-dev] & or &&?

Pierre Jolivet pierre.jolivet at enseeiht.fr
Sat Dec 23 10:16:47 CST 2017


> On 23 Dec 2017, at 4:59 PM, Jed Brown <jed at jedbrown.org> wrote:
> 
> Thanks for noticing this.  I fixed it in 'maint' and 'master'.  Did it
> actually cause you an error?  (The logical operations normally result in
> only 0 or 1.)

No error, but I’ve “fixed" this internally for a while, so I can’t really say.
Should have bugged your earlier about this, my bad!

> Pierre Jolivet <pierre.jolivet at enseeiht.fr> writes:
> 
>> Hello,
>> Are you sure that a bitwise AND is the right operator here https://bitbucket.org/petsc/petsc/src/d209cd380f7aba331915877696c8ffe10e8df5ea/src/vec/vec/utils/vpscat.h?at=master&fileviewer=file-view-default#vpscat.h-66 <https://bitbucket.org/petsc/petsc/src/d209cd380f7aba331915877696c8ffe10e8df5ea/src/vec/vec/utils/vpscat.h?at=master&fileviewer=file-view-default#vpscat.h-66> and there https://bitbucket.org/petsc/petsc/src/d209cd380f7aba331915877696c8ffe10e8df5ea/src/vec/vec/utils/vpscat_mpi1.h?at=master&fileviewer=file-view-default#vpscat_mpi1.h-66 <https://bitbucket.org/petsc/petsc/src/d209cd380f7aba331915877696c8ffe10e8df5ea/src/vec/vec/utils/vpscat_mpi1.h?at=master&fileviewer=file-view-default#vpscat_mpi1.h-66> ?
>> 
>> Thanks,
>> Pierre



More information about the petsc-dev mailing list