TECHNOLOGY

FMI array reconfiguration: changing a dimension invalidates stored values

In this article
THE QUICK TAKE

A structural dimension change invalidates the affected variable’s values, including its start value; refresh shapes and establish new values before further exchange.

A longer array is not the same variable buffer

A configurable thermal model changes the number of modeled sections. The importer updates the section-count parameter but keeps the old input and output buffers and their previous values. A correct scalar assignment has now left the exchange layer inconsistent with the model shape. Treat this operation as a transaction over declarations, allocation and value initialization, rather than a numeric edit that happens to affect the next plot’s length.

Identify structural dependencies before changing them

The variable schema represents dimensions separately from ordinary values. The specification allows a dimension to reference a structural parameter and defines when configuration or reconfiguration may change it. The parameter can govern several arrays. Build an affected-variable inventory before accepting an edit, and distinguish fixed structural choices made before initialization from tunable structural changes allowed during the simulation’s reconfiguration protocol.

Discard old value assumptions after resizing

Changing any dimension invalidates the variable’s current value, including its start value. An importer must not assume that the old prefix remains meaningful or that the declared start vector automatically supplies a new complete array. After the mode transition, establish values under the applicable initialization and assignment rules. Define any application-level interpolation or carryover explicitly; that is a modeling choice, not an automatic guarantee obtained from resizing a dimension.

Recompute element counts rather than handle counts

Array exchange uses flattened values. The number of variable references is not generally the number of scalar elements to transfer. Recompute dimensions, total element counts and serialized ordering for every affected buffer before a get or set. Respect declared bounds and platform allocation constraints. A zero-size change is possible only where the structural constraints allow it; it must not be invented as a universal way to disable an arbitrary array.

Propose a multi-array reconfiguration fixture

A proposed fixture should make the same structural parameter control several arrays, then change it within supported bounds. Retain old and new shapes, the mode transition, invalidation decisions and new values established before exchange resumes. Include rejection of an unsupported change and a failed allocation policy. No FMU reconfiguration was performed here. The acceptance question is whether every dependent exchange follows the new shape without treating old contents as valid continuation state.

Keep remeshing quality outside the shape contract

The scene-update guide addresses a neighboring change boundary; stack reproducibility helps preserve the exported structural declarations. Correct reconfiguration establishes compatible shapes and defined values. It does not show that a finer discretization is more accurate, conservation holds after remapping or a controller remains stable. Those require separate numerical comparisons after the importer can demonstrate which arrays were rebuilt and how their new values were obtained.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles