find_mvaluessubroutine find_mvalues(myid, numprocs, nmmax, nmvals, mvals)Computes nmvals values of m ( >= 0 and <= nmmax) which define the m modes to be processed by a given processor. The default distribution is designed to optimize the load balancing of the transform calculations. Every processor needs to make the call. To be called by each proc. N.B. Any other distribution of m modes over the processors is also permissible, as long as every processors gets at least one mode, there is no overlaps between the m modes processed by the different procs and all m (between 0 and nmmax) are distributed. Parameters: Input:
|