Update cgkk_main.f90

moved the updated state variables for (s,a,age) to the end of each panel iteration before calculating moments.