How can I select particles globally in DMP?

Hello MFiX developers,

I am using MFiX DMP to simulate a rectangular fluidized bed. I want to find the 1% of particles with the greatest height across the entire bed and change their heat sources.

In DMP, the computational domain is divided into subdomains, and each subdomain is handled by an MPI process. My current code sorts particles only in one subdomain; particles in the other subdomains are not included.

How can I collect particle information from all subdomains, select the global top 1% by height, and update the heat sources of those particles? Do I need to modify the MPI communication code, or is there an existing MFiX routine for this?

Thank you.