Articles you may be interested inTesting time-dependent density functional theory with depopulated molecular orbitals for predicting electronic excitation energies of valence, Rydberg, and charge-transfer states and potential energies near a conical intersection J. Chem. Phys. 141, 104106 (2014) We present an all-electron method for time-dependent density functional theory which employs hierarchical nonuniform finite-element bases and the time-propagation approach. The method is capable of treating linear and nonlinear response of valence and core electrons to an external field. We also introduce (i) a preconditioner for the propagation equation, (ii) a stable way to implement absorbing boundary conditions, and (iii) a new kind of absorbing boundary condition inspired by perfectly matched layers.