Grid
GetLastResult
get the last computed value from a remote parallel compute node
Calling Sequence
Parameters
Description
Examples
Compatibility
GetLastResult(node)
node
-
integer
The GetLastResult command gets the last result computed on the specified grid node.
The last result could be any activity initiated by the Launch, Run, Set, or Get commands.
This command can only be used when a node is finished computing. If the specified node is not yet done computing, GetLastResult will block and wait for the computation to finish.
The GetLastResult command is only available in local Grid mode.
Grid:-Run⁡0,int,x,x
Grid:-Run⁡1,int,sin⁡x,x
Grid:-GetLastResult⁡1
−cos⁡x
Grid:-GetLastResult⁡0
x22
The NULL value is a valid result that can be returned. The print command returns NULL. Note that without waiting, you may not see the displayed output in sequence. This should not be confused with the returned result.
Grid:-Run⁡1,print,42
r≔Grid:-GetLastResult⁡1
evalb⁡r=NULL
true
The Grid[GetLastResult] command was introduced in Maple 2015.
For more information on Maple 2015 changes, see Updates in Maple 2015.
See Also
Grid:-Get
Grid:-Run
Grid:-Set
Download Help Document