It is best practice to specify the scope of a variable in an OpenMP
parallel for block, so do that here.