to build a GMG solver