<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=koi8-r">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
That is done (both calculation and exx_fraction mutiplication) in the module exx in the file PW/src/exx.f90. There are different routines for different cases (Gamma, k-point, gpu-doubles, etc) and, as before, documentation is synthetic but present.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Cheers,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Fabrizio</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
CNR IOM<br>
</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 Роман Воронков <kesius@yandex.ru><br>
<b>Sent:</b> Wednesday, July 27, 2022 11:26 PM<br>
<b>To:</b> Quantum ESPRESSO users Forum <users@lists.quantum-espresso.org><br>
<b>Subject:</b> [QE-users] [SPAM] Re: [SPAM]</font>
<div> </div>
</div>
<div>
<div>Dear Fabrizio,<br>
<br>
Many thanks for your help. Could you please also tell me where I can find routine calculating exact exchange and where it is multiplied by exx_fraction?<br>
<br>
All the best,
<div>Dr. Roman Voronkov<br>
P.N. Lebedev Physical Institute of RAS<br>
<br>
P.S. Forgot to specify letter subject, sorry.</div>
</div>
<div> </div>
<div>26.07.2022, 14:36, "Fabrizio Ferrari Ruffino" <faferrar@sissa.it>:</div>
<blockquote>
<div>
<div style="color:rgb(0 ,0 ,0); font-family:'calibri' ,'arial' ,'helvetica' ,sans-serif; font-size:12pt">
Dear Roman,</div>
<div style="color:rgb(0 ,0 ,0); font-family:'calibri' ,'arial' ,'helvetica' ,sans-serif; font-size:12pt">
I suggest you to switch to a more recent version of QE (7.1 is the latest) since there have been major changes in the XC part of QE starting from v6.8. Now all the XC related routines (except vdW) are in a separate library, XClib.</div>
<div style="color:rgb(0 ,0 ,0); font-family:'calibri' ,'arial' ,'helvetica' ,sans-serif; font-size:12pt">
The hybrid functionals, as all the others, are computed in the xc driver routines (in qe_drivers_lda/gga.f90), which call the functional routines (in qe_funct_exch_lda_lsda/gga.f90) and combine the output with the exx_fraction parameter.</div>
<div style="color:rgb(0 ,0 ,0); font-family:'calibri' ,'arial' ,'helvetica' ,sans-serif; font-size:12pt">
The routines to set the exx_fraction are in dft_setting_routines.f90 (documentation is synthetic but present).</div>
<div style="color:rgb(0 ,0 ,0); font-family:'calibri' ,'arial' ,'helvetica' ,sans-serif; font-size:12pt">
You can also use hybrid functionals from libxc. In that case the exx_fraction is enforced in the 'xclib_init_libxc' routine.</div>
<div style="color:rgb(0 ,0 ,0); font-family:'calibri' ,'arial' ,'helvetica' ,sans-serif; font-size:12pt">
</div>
<div style="color:rgb(0 ,0 ,0); font-family:'calibri' ,'arial' ,'helvetica' ,sans-serif; font-size:12pt">
Cheers,</div>
<div style="color:rgb(0 ,0 ,0); font-family:'calibri' ,'arial' ,'helvetica' ,sans-serif; font-size:12pt">
Fabrizio</div>
<div> </div>
<hr style="width:98%">
</div>
</blockquote>
</div>
</body>
</html>