Next: find_scan_ring_range    Up: Size/memory estimation routines    Previous: nummmodes


find_mvalues

subroutine find_mvalues(myid, numprocs, nmmax, nmvals, mvals)

Purpose:

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:
myid-- [integer(4b)], a current proc number;
numprocs-- [integer(4b)], a total number of procs;
mmax-- [integer(4b)], maximum m mode to be included;
nmvals-- [integer(4b)], a number of m modes to be processed by the proc myid;
Output:
mvals-- [integer(4b)], a vector of the length nmvals storing on the each proc its specific set of the m values.



Next: find_scan_ring_range    Up: Size/memory estimation routines    Previous: nummmodes

radek stompor 2007-09-15