[petsc-dev] & or &&?

Jed Brown jed at jedbrown.org
Sat Dec 23 09:59:49 CST 2017


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.)

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