Author Topic: how to continue the MD calculation for the PBS: job killed: walltime 604832  (Read 3589 times)

0 Members and 1 Guest are viewing this topic.

Offline njuxyh_1

  • Regular QuantumATK user
  • **
  • Posts: 7
  • Country: cn
  • Reputation: 0
    • View Profile
Hi support:

i have an MD job stopped for job killed: walltime 60482, i do not want to restart the MD calculation from begin, for it lasted one week and has finished 7000 steps
so i want to continue the stopped MD calculation.  how to perform the continued job.

thanks very much

Offline filipr

  • QuantumATK Staff
  • Heavy QuantumATK user
  • *****
  • Posts: 81
  • Country: dk
  • Reputation: 6
  • QuantumATK developer
    • View Profile
If you read the documentation for MolecularDynamics: https://docs.quantumatk.com/manual/Types/MolecularDynamics/MolecularDynamics.html#moleculardynamics-f you'll see that you can pass a previously calculated trajectory as input to the 'configuration' parameter in which case it will continue the calculation. So you can write a script like this:
Code
old_trajectory = nlread('my_trajectory_file.hdf5', MDTrajectory)[-1]
new_trajectory = MolecularDynamics(old_trajectory, <other arguments>)
and it should continue the MD calculation.