Fix small bug in ses3d_grad.f90.