made some changes to dpcg_for_dg so that the inner solver is initialized in the build and moved,cleared in the functions defined for the outer solver