data->resumeFlag and checkpointing
It looks like data->resumeFlag
is only set within if(checkpoint)
statements, so it's not set in runs without checkpointing. This leads to some random behavior in the cleaning phase with respect to how many chains are used. It might cause other issues, but that's the one I've noticed.