reduce#

MapdlPool.reduce(n=1)#

Remove instances from the pool.

Parameters:
nint, optional

Number of instances to remove. Default is 1.

Raises:
ValueError

If trying to reduce to 0 or negative instances.

Return type:

None

Examples

>>> pool = MapdlPool(3)
>>> pool.reduce()  # remove 1 instance
>>> pool.reduce(1)  # remove 1 more instance