| 1 |
from gpaw.lcaotddft import LCAOTDDFT |
| 2 |
from gpaw.lcaotddft.dipolemomentwriter import DipoleMomentWriter |
| 3 |
from gpaw.lcaotddft.wfwriter import WaveFunctionWriter |
| 4 |
|
| 5 |
# Read the restart file |
| 6 |
td_calc = LCAOTDDFT('td.gpw', txt='tdc.out') |
| 7 |
|
| 8 |
# Attach the data recording for appending the new data |
| 9 |
DipoleMomentWriter(td_calc, 'dm.dat') |
| 10 |
WaveFunctionWriter(td_calc, 'wf.ulm') |
| 11 |
|
| 12 |
# Continue propagation |
| 13 |
td_calc.propagate(20, 500) |
| 14 |
|
| 15 |
# Save the state for restarting later |
| 16 |
td_calc.write('td.gpw', mode='all') |