query total number of nodes participating in current computation
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](..).
The Grid[NumNodes] command was introduced in Maple 15.
For more information on Maple 15 changes, see Updates in Maple 15.
Download Help Document
What kind of issue would you like to report? (Optional)