<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body>
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>Thanks Chris! Ok we will have a look at it. </p>
<p><br>
</p>
<p>Best,</p>
<p>Iurii</p>
<p><br>
</p>
<div id="Signature">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Helvetica, sans-serif, Helvetica, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<font size="3" face="'Times New Roman', Times, serif" color="808080">--<br>
<span style="font-family:Cambria,Georgia,serif">Dr. Iurii TIMROV</span><br>
<span style="font-family:Cambria,Georgia,serif">Senior Research Scientist</span></font></div>
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<font size="3" face="'Times New Roman', Times, serif" color="808080"><span style="font-family:Cambria,Georgia,serif">Theory and Simulation of Materials (THEOS)</span></font></div>
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<span style="font-size:12pt; color:rgb(128,128,128); font-family:Cambria,Georgia,serif">Swiss Federal Institute of Technology Lausanne (EPFL</span><font color="808080" style="font-size:12pt; color:rgb(128,128,128); font-family:"Times New Roman",Times,serif"><font face="'Times New Roman', Times, serif"><span style="font-family:Cambria,Georgia,serif">)</span></font></font><br>
</div>
<span style="font-family:Cambria,Georgia,serif"></span><font color="808080"></font><span style="font-family:Cambria,Georgia,serif"></span>
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<span style="font-family:Cambria,Georgia,serif"></span><font size="3" face="'Times New Roman', Times, serif" color="808080"><span style="font-family:Cambria,Georgia,serif">CH-1015 Lausanne, Switzerland</span><br>
<span style="font-family:Cambria,Georgia,serif">+41 21 69 34 881</span></font></div>
<span style="font-family:Cambria,Georgia,serif"></span>
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<span style="font-family:Cambria,Georgia,serif"></span><a href="http://people.epfl.ch/265334" tabindex="0" id="LPNoLP"><span style="font-family:Cambria,Georgia,serif">http://people.epfl.ch/265334</span></a><br>
</div>
</div>
</div>
</div>
</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 Christoph Wolf <wolf.christoph@qns.science><br>
<b>Sent:</b> Sunday, June 18, 2023 10:54:27 AM<br>
<b>To:</b> Quantum Espresso users Forum<br>
<b>Subject:</b> Re: [QE-users] Projwfc.x: Mismatch between the requested and available manifolds</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div>Dear Iurii, </div>
<div><br>
</div>
<div>Thanks for getting back to me so quickly. I briefly "debugged" and two manifolds don't seem to be a problem when only one atom species is present, e.g. </div>
<div><br>
</div>
<div><br>
</div>
<div>nat=1</div>
<div>ntyp = 1</div>
<div>...</div>
<div>ATOMIC_SPECIES<br>
C 12.011 C.pbe-n-kjpaw_psl.1.0.0.UPF<br>
Dy  1.008 Dy.GGA-PBE-paw-v1.0.UPF<br>
</div>
<div>...</div>
<div>ATOMIC_POSITIONS (angstrom)<br>
Dy            0       0       3<br>
</div>
<div>...</div>
<div><br>
</div>
<div>HUBBARD ortho-atomic<br>
U Dy-5d 5<br>
U Dy-6s 1<br>
</div>
<div><br>
</div>
<div>No problem with projwfc.x:</div>
<div><br>
</div>
<div>Lowdin Charges: <br>
<br>
     Atom #   1: total charge =   9.9929, s =  3.9930, p =  5.9999, d =  0.0000, <br>
                 spin up      =   4.9965, s =  1.9965, <br>
...<br>
     Spilling Parameter:   0.0007<br>
 <br>
     PROJWFC      :      3.25s CPU      3.71s WALL<br>
<br>
 <br>
   This run was terminated on:  17:39: 5  18Jun2023  </div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Then when using</div>
<div>nat=2, ntyp=2</div>
<div><br>
</div>
<div> ATOMIC_POSITIONS (angstrom)<br>
</div>
<div>Dy            0       0       3<br>
</div>
<div>C              0      0        0 </div>
<div>...</div>
<div><br>
</div>
<div>HUBBARD ortho-atomic<br>
U Dy-5d 5<br>
U Dy-6s 1</div>
<div><br>
</div>
<div>projwfc.x also works!</div>
<div><br>
</div>
<div>Lowdin Charges: <br>
<br>
     Atom #   1: total charge =   9.5105, s =  3.3338, p =  5.9973, d =  0.1794, <br>
                 spin up      =   5.0089, s =  1.8779, <br>
                 spin up      =   5.0089, p =  2.9980, pz=  0.9982, px=  0.9999, py=  0.9999,
<br>
                 spin up      =   5.0089, d =  0.1330, dz2=  0.0339, dxz=  0.0495, dyz=  0.0495, dx2-y2=  0.0000, dxy=  0.0000,
<br>
                 spin down    =   4.5016, s =  1.4559, <br>
                 spin down    =   4.5016, p =  2.9994, pz=  0.9997, px=  0.9998, py=  0.9998,
<br>
                 spin down    =   4.5016, d =  0.0463, dz2=  0.0463, dxz=  0.0000, dyz=  0.0000, dx2-y2=  0.0000, dxy=  0.0000,
<br>
...<br>
     Spilling Parameter:   0.0041<br>
 <br>
     PROJWFC      :      3.57s CPU      4.05s WALL<br>
<br>
 <br>
   This run was terminated on:  17:43:40  18Jun2023  <br>
</div>
<div><br>
</div>
<div>BUT (and this might be a bug), if C appears before Dy in the ATOMIC_POSITIONS:</div>
<div><br>
</div>
<div>ATOMIC_POSITIONS (angstrom)<br>
C             0       0       0<br>
Dy            0       0       3<br>
</div>
<div><br>
</div>
<div>pw.x has no problem but projwfc.x does seem to think that I requested the 6s on the C and not the Dy.</div>
<div><br>
</div>
<div> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br>
     Error in routine offset_atom_wfc (1):<br>
     Mismatch between the requested and available manifolds<br>
 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%<br>
<br>
</div>
<div><br>
</div>
<div>(tested now also on the last QE from gitlab).</div>
<div><br>
</div>
<div>so the "hot fix" seems to be to keep the atom with the two manifolds in the front of the atoms in ATOMIC_POSITIONS. Or, what also seems to work (oddly) swap the order of species in the ATOMIC_SPECIES card (so that they match the appearance of the atom
 in the position card).</div>
<div><br>
</div>
<div>in and outputs are available here: <a href="https://drive.google.com/drive/folders/1yzwd5XiGcci_8ZCv9qWVDbuHv7Sopgr9?usp=sharing">https://drive.google.com/drive/folders/1yzwd5XiGcci_8ZCv9qWVDbuHv7Sopgr9?usp=sharing</a></div>
<div><br>
</div>
<div>HTH!</div>
<div>Chris </div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
</div>
</div>
</div>
</body>
</html>