I might be wrong, but personally I do not think you can. You can generate a new .tpr file pointing at the last frame of the trajectory, and continue from there, although that is not going to be an exact continuation. For a proper continuation, that is, the -cpi flag of mdrun, you need a .cpt file. I do not think you can generate/recover it from the other files are from my understanding the .cpt is a binary that keeps the last velocities, forces, barostat/thermostat states etc.
I hope I am wrong and someone comes out with a solution, as sometimes I also need to continue from a corrupted .cpt.
Nicola Piasentin Thanks a lot for your suggestion..I totally agree with your remarks..Could you please how can I generate a new tpr file using the last frame of the trajectory? Shoul I dump or is there any other way to work around? I have a very large system..
Nicola Piasentin Thanks a lot for your time and input. The previous MD run which stopped abruptly was an extended version of a previous MD run. So I bleieve I need to change the
init-step ... in the mdp file for generating the new tpr file before running the production MD? Kindly provide your feedback.
You can try this out. However, I don't know if this will work.
1. You must ensure that you have the necessary input files of your previous simulation, which include the topology file (.top), the last coordinate file (.gro), and the trajectory file (.xtc).
2. By using the the gmx grompp command, prepare a new .tpr file. Specify the last frame of your trajectory as a starting point.