<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Dear Julien,</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Your system has 96 atoms, so indeed the Hubbard forces (and stress) calculations with "ortho-atomic" Hubbard projectors are expected to be very slow. Switching to "atomic" will make it much faster. However, the value of U and/or V changes when you change the
 projectors, and the results might also change substantially when you change the projectors. </div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
HTH</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Iurii</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="Signature">
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(102, 102, 102);">
----------------------------------------------------------</div>
<div style="font-family: Cambria, Georgia, serif; font-size: 12pt; color: rgb(102, 102, 102);">
Dr. Iurii TIMROV</div>
<div style="font-family: Cambria, Georgia, serif; font-size: 12pt; color: rgb(102, 102, 102);">
Tenure-track scientist</div>
<div style="font-family: Cambria, Georgia, serif; font-size: 12pt; color: rgb(102, 102, 102);">
Laboratory for Materials Simulations (LMS)</div>
<div style="font-family: Cambria, Georgia, serif; font-size: 12pt; color: rgb(102, 102, 102);">
Paul Scherrer Institut (PSI)</div>
<div style="font-family: Cambria, Georgia, serif; font-size: 12pt; color: rgb(102, 102, 102);">
CH-5232 Villigen, Switzerland</div>
<div style="font-family: Cambria, Georgia, serif; font-size: 12pt; color: rgb(102, 102, 102);">
+41 56 310 62 14</div>
<div style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<a href="https://www.psi.ch/en/lms/people/iurii-timrov" target="_blank" id="OWA8b6d65ce-457f-64a6-a252-231efad9ad2f" class="OWAAutoLink" rel="noopener noreferrer" data-auth="NotApplicable" data-linkindex="0">https://www.psi.ch/en/lms/people/iurii-timrov</a></div>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> users <users-bounces@lists.quantum-espresso.org> on behalf of julien_barbaud@sjtu.edu.cn <julien_barbaud@sjtu.edu.cn><br>
<b>Sent:</b> Monday, January 13, 2025 19:31<br>
<b>To:</b> 'Quantum ESPRESSO users Forum' <users@lists.quantum-espresso.org><br>
<b>Subject:</b> [QE-users] The routines to calculate Hubbard forces are very slow</font>
<div> </div>
</div>
<style>
<!--
@font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:DengXian}
@font-face
        {font-family:Calibri}
@font-face
        {font-family:DengXian}
p.x_MsoNormal, li.x_MsoNormal, div.x_MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
span.x_EmailStyle17
        {font-family:"Calibri",sans-serif;
        color:windowtext}
.x_MsoChpDefault
        {font-family:"Calibri",sans-serif}
@page WordSection1
        {margin:1.0in 1.25in 1.0in 1.25in}
div.x_WordSection1
        {}
-->
</style>
<div lang="EN-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="x_WordSection1">
<p class="x_MsoNormal">Dear users,</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">I have been using Hubbard calculations recently in the context of polaron studies (I am using DFT+V on 2 atoms to study a polaronic dimer).
</p>
<p class="x_MsoNormal">I did not encounter any particular issue while tuning the V value using the generalized Koopman’s condition. However, when trying to compute forces with DFT+V, the calculations appear to be very slow: on a 36 minute run, 28 were spent
 on the <i>force_hub </i>routine. Is this supposed to happen? This seems odd, and I suspect I might be doing something wrong. Other calculations run smoothly, it is only the forces that seem to slow everything down</p>
<p class="x_MsoNormal">I included the input and output files for an example calculation, as well as the slurm file used to control the parallelization parameters.</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">Thanks in advance,</p>
<p class="x_MsoNormal">Julien</p>
</div>
</div>
</body>
</html>