I'm having issues in a transformed data block with arrays and vectors whose size can only be determined after inspecting some of the data.
This code won't work, because two of the variables aren't defined at the beginning of the block:
int N_gap_updates;
N_gap_updates = sum(gap_lengths);
int gap_techs[N_gap_updates];
int gap_ts[N_gap_updates];
This code won't work, because the array variables will think N_gap_updates == 0:
N_gap_updates = sum(gap_lengths);
int gap_techs[N_gap_updates];
int gap_ts[N_gap_updates];
What to do?