Please enable JavaScript to view this site.

Knowledge Base

Navigation: Scripting Language > Running simulations

setresource

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

Sets properties of the available resources in resource manager for the specified solver.

 

Supported Product: FDTD, MODE, DEVICE, INTERCONNECT

 

Syntax

Description

setresource("solver", resource_num, "property", "value");

Sets 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). 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 "value" is the value to be set or the specified property.

 

Example

This example will set the number of processes for the second resource of the DGTD solver in DEVICE to 4:

setresource("DGTD",2,"processes","4");

 

 

 

See Also

addresource, deleteresource, getresource

Copyright Lumerical Inc. | Privacy | Site Map