When is the code written in parallel and when is it written in serial?

The code assigns a value to s.Gep, and then calls it in function fdpf118_v2, but the result is two-step parallel calculation, resulting in the wrong calculation result of function fdpf118_v2, how to write to achieve the effect of serial calculation?