reduce#
- MapdlPool.reduce(n=1)#
Remove instances from the pool.
- Parameters:
- n
int,optional Number of instances to remove. Default is 1.
- n
- Raises:
ValueErrorIf trying to reduce to 0 or negative instances.
- Return type:
Examples
>>> pool = MapdlPool(3) >>> pool.reduce() # remove 1 instance >>> pool.reduce(1) # remove 1 more instance