Skip to content

Inconsistent Evaluation Results for Referencing .crg Files in OpenCRG #102

@tschierz

Description

@tschierz

There exists a bug in OpenCRG affecting the evaluation of referencing .crg files.

Issue Summary
When a wrapper .crg file references a data .crg file via file references, evaluation results are not consistent with those obtained by evaluating the data .crg file directly. Differences appear at the 15th decimal place, but accumulate to non-negligible errors in simulation contexts.

Root Cause
The discrepancy originates in crgDataEvaluv2z, where evaluation differs based on admin.defMask. Specifically, the feature flag dCrgDataDefVIndexIt is part of $KD_DEFINITION, which can only be defined in the data .crg file — not in the wrapper. As a result, the admin.defMask of the referenced .crg file is not propagated to the referencing .crg file, making bit-identical evaluation impossible with the current implementation.

Reproduction
Test data with standalone example code is available on request to reproduce this behavior.

Request
Please fix the propagation of the admin.defMask from the referenced data .crg file to the referencing wrapper .crg file during evaluation setup, enabling consistent and bit-identical results regardless of whether a wrapper or data .crg file is evaluated directly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    isState:NewA new issue that needs to be classified to a type.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions