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.
There exists a bug in OpenCRG affecting the evaluation of referencing
.crgfiles.Issue Summary
When a wrapper
.crgfile references a data.crgfile via file references, evaluation results are not consistent with those obtained by evaluating the data.crgfile 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 onadmin.defMask. Specifically, the feature flagdCrgDataDefVIndexItis part of$KD_DEFINITION, which can only be defined in the data.crgfile — not in the wrapper. As a result, theadmin.defMaskof the referenced.crgfile is not propagated to the referencing.crgfile, 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.defMaskfrom the referenced data.crgfile to the referencing wrapper.crgfile during evaluation setup, enabling consistent and bit-identical results regardless of whether a wrapper or data.crgfile is evaluated directly.