modified dpcg_for_dg to work with DPCG as inner solver