[petsc-users] Scattering PetscScalar

Likun Tan tlk0812 at hotmail.com
Mon Jun 9 12:59:30 CDT 2014


Dear Petsc developers,

I defined PetscScalar *len to store the number of nodes in each processor, 
MPI_Comm_rank(PETSC_COMM_WPRLD, rank);
len[rank]=NumNode;

but I want the elements in len to be seen in all the processors. Is there any function in Petsc being able to do this job?

Many thanks,
Likun


More information about the petsc-users mailing list