[petsc-users] question about MPI_Bcast and 64-bit-indices

Randall Mackie rlmackie862 at gmail.com
Fri Nov 27 12:00:18 CST 2015


If my program is compiled using 64-bit-indices, and I have an integer variable defined as PetscInt, what is the right way to broadcast that using MPI_Bcast?

I currently have:

call MPI_Bcast(n, 1, MPI_INTEGER, …

which is the right way to do it for regular integers, but what do I use in place of MPI_INTEGER when Petsc is compiled with 64-bit-indices.


Thanks,

Randy M.


More information about the petsc-users mailing list