Changing name of compute_xp3 to diagnose_xp3 and moving a1_coef and a3_coef calculation back into advance routines
Fixes for GPU code