Author Topic: restarting from saved checkpoint  (Read 1783 times)

0 Members and 1 Guest are viewing this topic.

Offline sathyajit

  • Heavy QuantumATK user
  • ***
  • Posts: 31
  • Country: in
  • Reputation: 0
    • View Profile
restarting from saved checkpoint
« on: June 4, 2015, 16:08 »
Hi,

I am doing a transmission spectrum calculation with 2 metal electrodes and a central region of semiconductor. I see that the checkpoint .nc file is saved only till the point where Left and Right electrodes are converged. Is there a way to save checkpoints in between the central region convergence ?

Regards
Sathyajit

Offline Jess Wellendorff

  • QuantumATK Staff
  • Supreme QuantumATK Wizard
  • *****
  • Posts: 933
  • Country: dk
  • Reputation: 29
    • View Profile
Re: restarting from saved checkpoint
« Reply #1 on: June 5, 2015, 08:30 »
Dear Sathysjit, In short: no, you can not make ATK save the converged electrodes to the nc file before converging the full device. If you look in your script, the "update()" function call is the one that instructs ATK to compute the ground state electronic structure of the device. This is followed by the "nlsave" call, which writes the converged ground state to nc file. So the full device calculation must converge before it is written to nc.
Code
device_configuration.setCalculator(calculator)
nlprint(device_configuration)
device_configuration.update()
nlsave('myfile.nc', device_configuration)
Regards, Jess

Offline Umberto Martinez

  • Supreme QuantumATK Wizard
  • *****
  • Posts: 479
  • Country: dk
  • Reputation: 26
    • View Profile