Completed the implementation of CG_PETSc