Before revision: The codes SRW and Spectra include this possibility .
After revision: The codes SRW , Spectra and xrt, the latter code supports "hybryd" regime allowing to switch from geometric to wave approach on a given optical segment include this possibility .