-
Notifications
You must be signed in to change notification settings - Fork 0
SNAP writes incorrect sign for Control Block ID when used as Control Variable for Sensitivity Coefficient #119
Description
When selecting "CB Factor" as Mode [Mode 6] for Sensitivity Coefficient in SNAP, the GUI seems to assign the CB's ID using the negative component number (e.g. -244). However, TRACE expects a positive CB ID in the input syntax. This results in TRACE failing with an error like:
"Error detected in Sensitivity Coefficient input.
The input designating the control block for sensitivity value 1000,
referenced a non-exsitent control block -244"
When looking in the ASCII in the model editor, it looks like this:
In this example from the TRACE manual (for mode CB Replacement) the ASCII looks like this:
Manually correcting the generated ASCII input from -244. to 244.0 resolves the issue and the case runs successfully. This suggests a mismatch between how SNAP internally stores CB component numbers and how TRACE expects them formatted in the ASCII input deck.
Proposed Fix (hypothesis)
During ASCII export, SNAP should map its internal negative CB component numbers back to the TRACE‑expected positive CB IDs for Sensitivity Coefficient blocks.