Test of the D3Y Effective Interaction for Calculating Ion?Ion Optical Potential