since v is sorted this always sets the last sn_ram elements of where to true, and the other elements to false, irrespective of the result of get_write_and_read_counts.
I think v should be copied before the sort (e.g. into w), and then the conditional replaced with
In initialization of multistage checkpointing
https://github.com/devitocodes/pyrevolve/blob/23dea91d14852b8bedb8cf59a6cebc2ca7f4e76c/src/revolve.cpp#L1170-L1185
since
v
is sorted this always sets the lastsn_ram
elements ofwhere
totrue
, and the other elements tofalse
, irrespective of the result ofget_write_and_read_counts
.I think
v
should be copied before thesort
(e.g. intow
), and then the conditional replaced with