I can identify two things that can be parallelized? the part of that computes the alive fraction and the two nested loops. Should we ensure both are parallelized?
Yes, parallelize the function as best you can.