Grid
NumNodes
query total number of nodes participating in current computation
Calling Sequence
Description
Examples
Compatibility
NumNodes()
The NumNodes command is for use within the Maple code executed as part of a parallel computation.
When a parallel job is started on a specified number of nodes, say N, each node will be given an integer identifier between 0 and N-1 for the duration of this computation. NumNodes() returns N, the total number of nodes participating in this parallel computation.
This function is part of the Grid package, so it can be used in the short form NumNodes(..) only after executing the command with(Grid). However, it can always be accessed through the long form of the command by using Grid[NumNodes](..).
Grid:-Launch⁡Grid:-NumNodes();,numnodes=5
5 5 5 5 5
5
Grid:-Launch⁡Grid:-NumNodes();,numnodes=3
3 3 3
3
The Grid[NumNodes] command was introduced in Maple 15.
For more information on Maple 15 changes, see Updates in Maple 15.
See Also
Grid[MyNode]
Download Help Document