<div dir="ltr">To specify a bit. Lets say I have a normal trajectory that looks like this:<br><br>reftraj.xyz<br>      Cryst x<br> i =        0, time =        0.000, E =       -16.1066791009<br>  O         4.4494725764        0.8609855793        6.0981987308<br>  O         3.8029095709        2.7229831166        4.5699381898<br>  O         4.0118989226        2.7023681308        1.2194938263<br>  O         6.0462348498        3.2953089592        5.9203028333<br>  O         3.2241009956        5.5031225318        4.3400008035<br>..<br>..<br>..<br>with 1000 steps inside.<br>Now I want to calculate the MSD with reference to the first configuration, how do I do that?<br><br>If I do this<br><br>&MOTION<br>        &MD<br>           STEPS 1000<br>          TIMESTEP 1<br>          ENSEMBLE REFTRAJ<br>          &REFTRAJ<br>           TRAJ_FILE_NAME reftraj.xyz<br>           FIRST_SNAPSHOT 1<br>           LAST_SNAPSHOT 1000<br>          &PRINT<br>                 &MSD_KIND<br>                 &END MSD_KIND<br>          &END PRINT<br>          &MSD T<br>           &MSD_PER_KIND<br>           &END MSD_PER_KIND    <br>         &END MSD<br>      &END REFTRAJ<br> &END MD<br>&END MOTION<br><br>I only get this error<br><br> *************************************************************<br> *** ERROR in initialize_msd_reftraj (MODULE reftraj_util) ***<br> *************************************************************<br><br> *** End of reference positions file reached ***<br><br>however there are definitly 1000 steps in the file I link..<br><br>Anything else I need to consider? My question still stand if I can do this during the an ordinary MD run.. so not calculating the trajectory first and then letting the reftraj code run over it but have it as a normal output at the end of the run.<br><br>Thanks again and best regards,<br>Johannes<br></div>