<div dir="ltr">Thanks, the keyword EVAL_FORCES  does work.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Krack Matthias <<a href="mailto:matthias.krack@psi.ch">matthias.krack@psi.ch</a>> 于2023年9月7日周四 21:50写道:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg-3451602874250218323">





<div lang="en-CH" style="overflow-wrap: break-word;">
<div class="m_-3451602874250218323WordSection1">
<p class="MsoNormal"><span lang="DE-CH" style="font-size:11pt">Hi<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="DE-CH" style="font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11pt">Add the keyword EVAL_FORCES to the &REFTRAJ section or use the latest CP2K development version after
<a href="https://github.com/cp2k/cp2k/pull/2974" target="_blank">PR2974</a> has been merged successfully. Alternatively, you can apply the same patch to your local CP2K version.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11pt">HTH<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11pt">Matthias
<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11pt"><u></u> <u></u></span></p>
<div id="m_-3451602874250218323mail-editor-reference-message-container">
<div>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(181,196,223);padding:3pt 0cm 0cm">
<p class="MsoNormal" style="margin-right:0cm;margin-bottom:12pt;margin-left:36pt">
<b><span style="font-size:12pt;color:black">From: </span></b><span style="font-size:12pt;color:black"><a href="mailto:cp2k@googlegroups.com" target="_blank">cp2k@googlegroups.com</a> <<a href="mailto:cp2k@googlegroups.com" target="_blank">cp2k@googlegroups.com</a>> on behalf of Tianhua Wang <<a href="mailto:njuwth@gmail.com" target="_blank">njuwth@gmail.com</a>><br>
<b>Date: </b>Thursday, 7 September 2023 at 09:12<br>
<b>To: </b>cp2k <<a href="mailto:cp2k@googlegroups.com" target="_blank">cp2k@googlegroups.com</a>><br>
<b>Subject: </b>[CP2K:19225] Re: The force output of RETRAJ module under a r2scan functional is zero<u></u><u></u></span></p>
</div>
<p class="MsoNormal" style="margin-right:0cm;margin-bottom:12pt;margin-left:36pt">
<span style="font-size:11pt">In fact, according to my tests, this bug exists in almost all CP2K versions later than 6.1, i.e., 7.1, 8.1, 8.2, 9.1, 2022.1, and 2023.2 (I did not test 2023.1), for both SCAN and r2SCAN functionals. Instead, CP2K 6.1 can output
 the forces normally. It seems to be a systemic problem.<u></u><u></u></span></p>
<div>
<div>
<p class="MsoNormal" style="margin-left:36pt"><span lang="EN-GB" style="font-size:11pt;font-family:"MS Gothic"">在</span><span style="font-size:11pt">2023</span><span lang="EN-GB" style="font-size:11pt;font-family:"MS Gothic"">年</span><span style="font-size:11pt">9</span><span lang="EN-GB" style="font-size:11pt;font-family:"MS Gothic"">月</span><span style="font-size:11pt">7</span><span lang="EN-GB" style="font-size:11pt;font-family:"MS Gothic"">日星期四</span><span style="font-size:11pt">
 UTC+8 11:20:17<qin li> </span><span lang="EN-GB" style="font-size:11pt;font-family:"MS Gothic"">写道:</span><span style="font-size:11pt"><u></u><u></u></span></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0cm 0cm 0cm 6pt;margin-left:4.8pt;margin-right:0cm">
<div>
<p class="MsoNormal" style="margin-left:36pt"><span style="font-size:11pt">The force output of the RETRAJ module works problematiclly in version cp2k2022.1.<u></u><u></u></span></p>
</div>
<p class="MsoNormal" style="margin-left:36pt"><span style="font-size:11pt"><u></u> <u></u></span></p>
<div>
<div>
<p class="MsoNormal" style="margin-left:36pt"><span style="font-size:11pt">qin li <<span class="m_-3451602874250218323MsoHyperlink"><a href="mailto:flytomoo...@gmail.com" target="_blank">flytomoo...@gmail.com</a></span>>
</span><span lang="EN-GB" style="font-size:11pt;font-family:"MS Gothic"">于</span><span style="font-size:11pt">2023</span><span lang="EN-GB" style="font-size:11pt;font-family:"MS Gothic"">年</span><span style="font-size:11pt">9</span><span lang="EN-GB" style="font-size:11pt;font-family:"MS Gothic"">月</span><span style="font-size:11pt">7</span><span lang="EN-GB" style="font-size:11pt;font-family:"MS Gothic"">日周四</span><span style="font-size:11pt">
 10:20</span><span lang="EN-GB" style="font-size:11pt;font-family:"MS Gothic"">写道:</span><span style="font-size:11pt"><u></u><u></u></span></p>
</div>
</div>
<div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0cm 0cm 0cm 6pt;margin-left:4.8pt;margin-right:0cm">
<div>
<p class="MsoNormal" style="margin-left:36pt"><span style="font-size:11pt">Hi,<u></u><u></u></span></p>
<div>
<p class="MsoNormal" style="margin-left:36pt"><span style="font-size:11pt"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36pt"><span style="font-size:11pt">I'm trying to train a deep potential model of the MgCl2 solution based on r2scan functional, where the positions and forces are needed. I employed the r2scan functional to rerun
 the trajectory resulting from the BLYPD3 functional, but the force output of the RETRAJ module comes out to be all zero. However, the RETRAJ module works fine for the BLYPD3 functional. Does anyone have an idea of how to resolve this?<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36pt"><span style="font-size:11pt"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36pt"><span style="font-size:11pt">The cp2k version is cp2k2022.1, inputs of the r2scan and force output are as follows and the attachment:<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36pt"><span style="font-size:11pt">&XC<br>
  &XC_FUNCTIONAL<br>
    &MGGA_X_R2SCAN<br>
    &END MGGA_X_R2SCAN<br>
    &MGGA_C_R2SCAN<br>
    &END MGGA_C_R2SCAN<br>
  &END XC_FUNCTIONAL<br>
  &XC_GRID<br>
    XC_DERIV SPLINE3<br>
    XC_SMOOTH_RHO NONE<br>
  &END XC_GRID<br>
&END XC<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36pt"><span style="font-size:11pt"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36pt"><span style="font-size:11pt">&REFTRAJ<br>
  EVAL_ENERGY_FORCES<br>
  TRAJ_FILE_NAME ${REFTRAJ}<br>
&END REFTRAJ<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36pt"><span style="font-size:11pt"><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36pt"><span style="font-size:11pt">&PRINT<br>
  &FORCES<br>
    &EACH<br>
      MD 1<br>
    &END EACH<br>
  &END FORCES<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36pt"><span style="font-size:11pt">&END PRINT<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-left:36pt"><span style="font-size:11pt"><u></u> <u></u></span></p>
</div>
</div>
</blockquote>
</div>
</blockquote>
</div>
<p class="MsoNormal" style="margin-left:36pt"><span style="font-size:11pt">--
<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" target="_blank">cp2k+unsubscribe@googlegroups.com</a>.<br>
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/cp2k/760142b3-db53-4c9a-8ca2-882cccc136ban%40googlegroups.com?utm_medium=email&utm_source=footer" target="_blank">
https://groups.google.com/d/msgid/cp2k/760142b3-db53-4c9a-8ca2-882cccc136ban%40googlegroups.com</a>.<u></u><u></u></span></p>
</div>
</div>
</div>
</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" target="_blank">cp2k+unsubscribe@googlegroups.com</a>.<br>
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/cp2k/ZRAP278MB0827DF9B11ACCAF76AD4DE17F4EEA%40ZRAP278MB0827.CHEP278.PROD.OUTLOOK.COM?utm_medium=email&utm_source=footer" target="_blank">https://groups.google.com/d/msgid/cp2k/ZRAP278MB0827DF9B11ACCAF76AD4DE17F4EEA%40ZRAP278MB0827.CHEP278.PROD.OUTLOOK.COM</a>.<br>
</div></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/CALSfb8o4W20%2BvdUhMvyyiuo16FSz_JNc-TNjMw4P9woiWWk_Dg%40mail.gmail.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/cp2k/CALSfb8o4W20%2BvdUhMvyyiuo16FSz_JNc-TNjMw4P9woiWWk_Dg%40mail.gmail.com</a>.<br />