Skip to content

SNAP writes incorrect sign for Control Block ID when used as Control Variable for Sensitivity Coefficient #119

@leckis

Description

@leckis

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"

Image

When looking in the ASCII in the model editor, it looks like this:

Image

In this example from the TRACE manual (for mode CB Replacement) the ASCII looks like this:

Image

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.

Metadata

Metadata

Assignees

Labels

CAMPIssues brought up by CAMP membersTRACERelated to TRACE codebugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions