DGMRES is an algorithm to solve the Drazin-inverse solution of large scale and sparse consistent or inconsistent singular linear systems with an arbitary index. In this paper, we present an algorithm based on the DGMRES algorithm is proposed for computing the group-inverse solution of singular linear equations.