Skip to main content

General

๐Ÿ“„๏ธ findComponentByName

In many cases, Components and SubComponents will be created using library functions and the user will not have direct access to their handles. In some instances, the provided python modules will have accessor functions that can provide handles to these elements. If this is not provided by the library, the user can call the findComponentByName() function to get a handle to the desired element. The function can find handles for both Components and SubComponents. The use of this function presupposes a knowledge of the naming convention of the elements in the build functions of the library.

๐Ÿ“„๏ธ addSharedParam

It is common for multiple components or subcomponents in a simulation to share a common subset of parameters. Shared parameter sets can be used to reduce memory usage during simulation construction for such cases. This is particularly helpful for very large simulations where the total state of the simulation graph before it is distributed may exceed the available memory on rank 0. To use shared parameters, register parameters to named sets using addSharedParam() and/or addSharedParams(). Then, subscribe components and subcomponents to the named parameter set(s) using addSharedParamSet(). In case of conflicts, parameters set directly on components take precedence over those provided in shared parameter sets.

๐Ÿ“„๏ธ addSharedParams

It is common for multiple components or subcomponents in a simulation to share a common subset of parameters. Shared parameter sets can be used to reduce memory usage during simulation construction for such cases. This is particularly helpful for very large simulations where the total state of the simulation graph before it is distributed may exceed the available memory on rank 0. To use shared parameters, register parameters to named sets using addSharedParam() and/or addSharedParams(). Then, subscribe components and subcomponents to the named parameter set(s) using addSharedParamSet(). In case of conflicts, parameters set directly on components take precedence over those provided in shared parameter sets.