Slight modifications to the Solve_Ahat_p_fhat_petsc method