<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:"Yu Gothic";
panose-1:2 11 4 0 0 0 0 0 0 0;}
@font-face
{font-family:"MS PGothic";
panose-1:2 11 6 0 7 2 5 8 2 4;}
@font-face
{font-family:"Yu Gothic";
panose-1:2 11 4 0 0 0 0 0 0 0;}
@font-face
{font-family:"MS PGothic";}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0mm;
margin-bottom:.0001pt;
text-align:justify;
text-justify:inter-ideograph;
font-size:10.5pt;
font-family:"游ゴシック",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
.MsoChpDefault
{mso-style-type:export-only;}
/* Page Definitions */
@page WordSection1
{size:612.0pt 792.0pt;
margin:99.25pt 30.0mm 30.0mm 30.0mm;}
div.WordSection1
{page:WordSection1;}
--></style></head><body lang=JA link=blue vlink="#954F72"><div class=WordSection1><p class=MsoNormal><span lang=EN-US>Dear developers of QE,</span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>when variable cell calculation is performed with exact exchange,</span></p><p class=MsoNormal><span lang=EN-US>it would be required to scale G-vectors of Custom-FFT in “scale_h.f90”.</span></p><p class=MsoNormal><span lang=EN-US>However, that is not implemented in the current code.</span></p><p class=MsoNormal><span lang=EN-US>I think it is useful to modify the subroutine “exx_grid_reinit” of exx.f90 as:</span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"MS Pゴシック",sans-serif'> SUBROUTINE exx_grid_reinit(at_old)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"MS Pゴシック",sans-serif'> IMPLICIT NONE<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"MS Pゴシック",sans-serif'> REAL(DP), INTENT(IN) :: at_old(:,:)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"MS Pゴシック",sans-serif'> !<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"MS Pゴシック",sans-serif'> INTEGER :: ig<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"MS Pゴシック",sans-serif'> REAL(DP) :: gx, gy, gz<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"MS Pゴシック",sans-serif'> !<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"MS Pゴシック",sans-serif'> DEALLOCATE(xkq_collect,index_xk,index_sym)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"MS Pゴシック",sans-serif'> exx_grid_initialized = .false.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"MS Pゴシック",sans-serif'> nkqs = 0<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"MS Pゴシック",sans-serif'> CALL exx_grid_init()<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"MS Pゴシック",sans-serif'> !<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"MS Pゴシック",sans-serif'> DEALLOCATE(working_pool)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"MS Pゴシック",sans-serif'> CALL exx_mp_init()<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"MS Pゴシック",sans-serif'> !<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"MS Pゴシック",sans-serif'> ! … scale g-vectors<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"MS Pゴシック",sans-serif'> CALL cryst_to_cart(exx_fft%ngmt, exx_fft%gt, at_old, -1)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"MS Pゴシック",sans-serif'> CALL cryst_to_cart(exx_fft%ngmt, exx_fft%gt, bg, +1)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"MS Pゴシック",sans-serif'> !<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"MS Pゴシック",sans-serif'> DO ig = 1, exx_fft%ngmt<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"MS Pゴシック",sans-serif'> gx = exx_fft%gt(1, ig)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"MS Pゴシック",sans-serif'> gy = exx_fft%gt(2, ig)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"MS Pゴシック",sans-serif'> gz = exx_fft%gt(3, ig)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"MS Pゴシック",sans-serif'> exx_fft%ggt(ig) = gx * gx + gy * gy + gz * gz<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"MS Pゴシック",sans-serif'> END DO<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"MS Pゴシック",sans-serif'> !<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:"MS Pゴシック",sans-serif'> END SUBROUTINE exx_grid_reinit<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US>Best,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US>Satomichi Nishihara</span></p><p class=MsoNormal><span lang=EN-US><o:p> </o:p></span></p></div></body></html>