Please enable JavaScript to view this site.

Knowledge Base

Navigation: Scripting Language > Running simulations

getresource

We've made some changes. Use 'Ctrl-F5' to clear your browser cache.
Scroll Prev Top Next More

Returns the current setting for properties of the available resources in resource manager for the specified solver.

 

Supported Product: FDTD, MODE, DEVICE, INTERCONNECT

 

Syntax

Description

out=getresource("solver", resource_num, "property");

Returns the current setting for properties of the available resources in resource manager for the specified solver. The "solver" argument is used to select the solver from which the resource is being selected. The "solver" argument is not supported by INTERCONNECT.

resource_num is the number of the desired resource (row number in resource manager) and is optional. If not specified, the command will return the number of resources currently available for the specified solver.

"property" is the desired property of the resource and is optional. If not specified, the command will return a list of all properties available for the resource.  

 

Example

This example will return the number of processes currently set for the second resource of the DGTD solver in DEVICE

out=getresource("DGTD",2,"processes");

 

 

 

See Also

addresource, setresource, deleteresource

Copyright Lumerical Inc. | Privacy | Site Map