|
Oakfield API Documentation 1.0.0
Numerical core APIs
|
Utility operator that writes a scaled copy of one field to another field. More...


Go to the source code of this file.
Classes | |
| struct | SimScaleOperatorConfig |
| Configuration for scaling one compatible field into another. More... | |
Typedefs | |
| typedef struct SimScaleOperatorConfig | SimScaleOperatorConfig |
| Configuration for scaling one compatible field into another. | |
Functions | |
| SimResult | sim_add_scale_operator (struct SimContext *context, const SimScaleOperatorConfig *config, size_t *out_index) |
| Register a scale utility operator. | |
| SimResult | sim_scale_config (struct SimContext *context, size_t operator_index, SimScaleOperatorConfig *out_config) |
| Copy the current configuration from a registered scale operator. | |
| SimResult | sim_scale_update (struct SimContext *context, size_t operator_index, const SimScaleOperatorConfig *config) |
| Replace the configuration of a registered scale operator. | |
Utility operator that writes a scaled copy of one field to another field.
The scale operator supports real double and complex double fields with matching layouts and scalar domains. It can overwrite or accumulate into the destination.
| SimResult sim_add_scale_operator | ( | struct SimContext * | context, |
| const SimScaleOperatorConfig * | config, | ||
| size_t * | out_index | ||
| ) |
Register a scale utility operator.
The implementation copies and normalizes config, resolves the default scale-by-dt policy, and validates matching real-double or complex-double fields.
| context | Simulation context that will own the operator. | |
| config | Optional scale configuration; NULL selects zero-initialized defaults. | |
| [out] | out_index | Optional destination for the registered operator index. |
| SimResult sim_scale_config | ( | struct SimContext * | context, |
| size_t | operator_index, | ||
| SimScaleOperatorConfig * | out_config | ||
| ) |
Copy the current configuration from a registered scale operator.
| context | Simulation context containing the operator. | |
| operator_index | Index returned by sim_add_scale_operator(). | |
| [out] | out_config | Receives the operator's normalized configuration. |
| SimResult sim_scale_update | ( | struct SimContext * | context, |
| size_t | operator_index, | ||
| const SimScaleOperatorConfig * | config | ||
| ) |
Replace the configuration of a registered scale operator.
config is required. The replacement is normalized and the referenced fields are validated before it is stored.
| context | Simulation context containing the operator. |
| operator_index | Index of the scale operator to update. |
| config | Replacement scale configuration. |