Dear Anton,<div><br></div><div>I am extremely grateful for your help!</div><div>It is really a smart solution, and the calculation can now stop at the desired step ^_^/.</div><div><br></div><div>Sincerely,</div><div>Zhihao</div><div><br><br></div><div class="gmail_quote"><div dir="auto" class="gmail_attr">在2022年8月28日星期日 UTC+8 02:35:31<anton.s.l...@gmail.com> 写道:<br/></div><blockquote class="gmail_quote" style="margin: 0 0 0 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Dear Zhihao,
<br>
<br>indeed, I was also confused by this behavior when recently discovered 
<br>it. CP2K will run ANOTHER 10000 steps AFTER the restart (thus giving you 
<br>18280 steps in total) -- not UP TO TOTAL 10000 steps. If you want to 
<br>have the desired total number, you will need to subtract the values 
<br>manually.
<br>
<br>Yours,
<br>Anton
<br>
<br>27.08.22 14:35, Zhihao Zhou пише:
<br>> Dear CP2K users,
<br>> 
<br>> When I tried to restart an AIMD job using CP2K 9.1, I found that the 
<br>> calculation did not stop when the step reached the value I set in the 
<br>> .inp file (STEPS, in the MD section).
<br>> That is, I set the steps value as 10000, but I found that the restarted 
<br>> job is running to 10500 steps and keep running!
<br>> I use the cp2k-1.restart file as the input file and modified the 
<br>> submission script.
<br>> The submission script and the  head of the restart file are shown below.
<br>> Please could you offer me some help? I hope the calculation could stop 
<br>> running when the calculation is completed.
<br>> I am grateful to your kind help!
<br>> 
<br>> Best regards,
<br>> Zhihao
<br>> 
<br>> ------------------------------------------------------------------------
<br>> The submission script:
<br>> -----------------------------------------------------------------------
<br>> module purge
<br>> module load apps/cp2k/9.1/impi-2020
<br>> export I_MPI_PMI_LIBRARY=/opt/gridview/slurm/lib/libpmi.so
<br>> 
<br>> mpirun -np 60  cp2k.psmp -i cp2k-1.restart
<br>> 
<br>> --------------------------------------------------------------------------
<br>> The head of restart file:
<br>> --------------------------------------------------------------------------
<br>> &GLOBAL
<br>>     PRINT_LEVEL  LOW
<br>>     PROJECT_NAME cp2k
<br>>     RUN_TYPE  MD
<br>>   &END GLOBAL
<br>>   &MOTION
<br>>     &MD
<br>>       ENSEMBLE  NPT_I
<br>>       STEPS  10000
<br>>       TIMESTEP     9.9999999999999989E-01
<br>>       STEP_START_VAL  8280
<br>>       TIME_START_VAL     8.2799999999991414E+03
<br>>       ECONS_START_VAL    -9.9639821628969867E+02
<br>>       TEMPERATURE     7.7000000000000000E+01
<br>>       &BAROSTAT
<br>>         PRESSURE     1.0132500000000000E+00
<br>>         TIMECON     4.9999999999999993E+01
<br>>         VIRIAL  XYZ
<br>>         &VELOCITY
<br>>               2.9870847175984980E-05
<br>>         &END VELOCITY
<br>>         &MASS
<br>>               3.1569369032925571E+05
<br>>         &END MASS
<br>>         &THERMOSTAT
<br>>           TYPE  CSVR
<br>>           &CSVR
<br>>             TIMECON     2.4188843265047848E+00
<br>>             &THERMOSTAT_ENERGY
<br>>                  -2.8516310266530048E-03
<br>>             &END THERMOSTAT_ENERGY
<br>>             &RNG_INIT
<br>> Wiener process for Thermostat # 1        1 F T F   
<br>> 4.5676251410120183E-01         105941297.0        <a href="tel:(325)%20953-9594" value="+13259539594" target="_blank" rel="nofollow">3259539594</a>.0       
<br>>   2390921972.0        <a href="tel:(367)%20923-7269" value="+13679237269" target="_blank" rel="nofollow">3679237269</a>.0        3789010185.0       
<br>>   1460702119.0             12345.0             12345.0             
<br>> 12345.0             12345.0             12345.0             12345.0     
<br>>          12345.0             12345.0             12345.0             
<br>> 12345.0             12345.0             12345.0
<br>>             &END RNG_INIT
<br>>           &END CSVR
<br>>         &END THERMOSTAT
<br>> ----------------------------------------------------------------------------
<br>> Again, thank you for your kind help!
<br>> 
<br>> -- 
<br>> You received this message because you are subscribed to the Google 
<br>> Groups "cp2k" group.
<br>> To unsubscribe from this group and stop receiving emails from it, send 
<br>> an email to <a href data-email-masked rel="nofollow">cp2k+uns...@googlegroups.com</a> 
<br>> <mailto:<a href data-email-masked rel="nofollow">cp2k+uns...@googlegroups.com</a>>.
<br>> To view this discussion on the web visit 
<br>> <a href="https://groups.google.com/d/msgid/cp2k/173c0985-bff7-4bfa-8c5c-7ed1307665c5n%40googlegroups.com" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=zh-CN&q=https://groups.google.com/d/msgid/cp2k/173c0985-bff7-4bfa-8c5c-7ed1307665c5n%2540googlegroups.com&source=gmail&ust=1661739552396000&usg=AOvVaw3T7trRafj7x5CAqo11bt5c">https://groups.google.com/d/msgid/cp2k/173c0985-bff7-4bfa-8c5c-7ed1307665c5n%40googlegroups.com</a> 
<br>> <<a href="https://groups.google.com/d/msgid/cp2k/173c0985-bff7-4bfa-8c5c-7ed1307665c5n%40googlegroups.com?utm_medium=email&utm_source=footer" target="_blank" rel="nofollow" data-saferedirecturl="https://www.google.com/url?hl=zh-CN&q=https://groups.google.com/d/msgid/cp2k/173c0985-bff7-4bfa-8c5c-7ed1307665c5n%2540googlegroups.com?utm_medium%3Demail%26utm_source%3Dfooter&source=gmail&ust=1661739552396000&usg=AOvVaw2SkvQovYC-d3W4znb-GEpp">https://groups.google.com/d/msgid/cp2k/173c0985-bff7-4bfa-8c5c-7ed1307665c5n%40googlegroups.com?utm_medium=email&utm_source=footer</a>>.
<br></blockquote></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups "cp2k" group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:cp2k+unsubscribe@googlegroups.com">cp2k+unsubscribe@googlegroups.com</a>.<br />
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/cp2k/e13d0356-faf1-475f-9a91-d572340500e5n%40googlegroups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/cp2k/e13d0356-faf1-475f-9a91-d572340500e5n%40googlegroups.com</a>.<br />