Coupled-dipole method in time domain.