combine the ddw and sdw to twogap_ddw.f90