Closed phil-blain closed 2 years ago
So it seems -init=huge,arrays
still initializes reals to NaN, so it's hard to see if we uncover new bugs just due to huge
. I'll try with just huge
.
No new failures with just -init=huge
. I've fixed the above in 584f370 and I'll open a PR for that.
nstreams
is initialized inice_history::init_hist
, but is used inice_calendar::calendar
, called fromice_calendar::init_calendar
. The calling sequence inCICE_InitMod::cice_init
is:So it's used before being initialized. This was found by compiling with
-init=huge
which initializes integers to their maximum value;nstreams
was 2147483647 in the core dump and the model aborted becausehistfreq
was accessed at index 6 while it has size 5 (thanks to-check
).Might be worth it to run the full suite with that flag, see what we uncover!