Next: nummmodes    Up: Size/memory estimation routines


nummvals

function int nummvals( int myid, int numprocs, int nmmax)


Purpose:

Computes a number of m modes to be assigned to a given proc in a load balanced work mode. Needs to be called by each proc. The output is processor specific.
The computed number determines a length of a vector used to store the specific m values processed by a given processor. The latter can be computed for example by a subsequent call to the routine find_mvals.

Parameters:

Input:
myid- [int], a rank of a calling processor;
numprocs- [int], total number of processors;
nmmax- [int], maximum value of the included m-mode;
Output:
returns a number of m modes ([int],) to be processed on each proc.


Next: nummmodes    Up: Size/memory estimation routines

radek stompor 2009-10-15