[petsc-dev] PetscLayoutFindOwner and PetscLayoutFindOwnerIndex

Zhang, Junchao jczhang at mcs.anl.gov
Wed Oct 16 13:01:10 CDT 2019


The value of "owner" should fit in PetscMPIInt. But if you change prototype of the two functions, you have to change all their uses.
In petsc, values representing MPI ranks are not always of type PetscMPIInt. Only those closely tied to MPI routines are in PetscMPIInt.

--Junchao Zhang


On Wed, Oct 16, 2019 at 5:19 AM Pierre Jolivet via petsc-dev <petsc-dev at mcs.anl.gov<mailto:petsc-dev at mcs.anl.gov>> wrote:
Hello,
These two functions use a parameter “owner” of type PetscInt*.
Shouldn’t this be PetscMPIInt*?
This implies changes left and right, so I want to check I’m not pushing an incorrect MR.

Thanks,
Pierre
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20191016/8940007e/attachment.html>


More information about the petsc-dev mailing list