setWeight
Sets the weight of the Component. The weight is used by some partitioners to help balance Components across ranks. This function is only available to Components.
Syntax
component.setWeight(weight)
Parameters
- weight (type: float) Weight of the Component specified as a float. Weights can have any value, but should be meaningful in the context of the overall simulation.
- returns none
Example
import sst
component0 = sst.Component("c0", "simpleElementExample.example0")
component0.setWeight(20.0)
Import
import sst