<div dir="ltr"><div>Hi,</div><div><br></div><div>the point is that your input file is wrong, so there is no way to avoid the error but trying to understand which structure you want to simulate.</div><div><br></div><div>1) you say you're trying to match a lattice with ibrav = 2 (cubic F (fcc)) with one with ibrav = 12 (Monoclinic P, unique axis c ), is that right? If so, you should carefully try to understand which kind of lattice</div><div>could describe the matching of the two. At the moment, you're trying to build a crystal composed of ALL carbon atoms within a simple cubic cell, is that what you want to do?</div><div>This is not the source of your error, but it is something you should care about to arrive to a reasonable input file</div><div><br></div><div>2) given the unit cell you set up in your input, that is simple cubic, most of the provided atoms will produce the same error (so as you should remove those atoms if you want the code not to provide that error).</div><div>The reason is that, in the alat unit you use (the same would be for crystal units), for example the two atoms</div><div> C 0.00 0.00 0.00<br> C 1.00 1.00 0.00</div><div>are equivalent by a lattice translation. Indeed, the coordinates of the second can be obtained by translating the first atom by a1 + a2 with a1 = a ex, a2 = a ey, ex and ey the versors of the x and y axes respectively,</div><div>and a1, a2 two primitive vectors out of the three defining the primitive cell.</div><div>The input file should specify only inequivalent atoms in the unit cell, that is no atom coordinates should be obtained from those of another by simply applying a lattice translation.</div><div>Your error could be associated with the fact that you are building a supercell, so a "larger" unit cell containing two or more unit cells of an initial lattice. In this case it can be correct to select the atoms using XCrysDen,</div><div>but it will provide you such coordinates in units of alat of the initial cell. So, if the super cell has a side which is for example twice that of the original one, then the coordinates in alat units should be all divided by 2!</div><div>Example:</div><div>- start with a simple cubic cell, only one atom in the unit cell in position (0 0 0)</div><div>- imagine you want to to double the super cell along all directions, so building a 2x2x2 supercell. Then the atoms in the unit cell become (in the OLD alat units):</div><div>0 0 0</div><div>1 0 0</div><div>0 1 0</div><div>0 0 1</div><div>1 1 0</div><div>1 0 1</div><div>0 1 1</div><div>1 1 1</div><div>which are 8 = 2x2x2</div><div>- because new_alat = old_alat x 2, the coordinates expressed in terms of new alat become:</div><div>0 0 0<br>1/2 0 0<br>0 1/2 0</div><div>0 0 1/2<br>1/2 1/2 0</div><div>1/2 0 1/2<br>0 1/2 1/2</div><div>1/2 1/2 1/2<br><br>The first set of coordinates would produce the error you find, the second one will not.</div><div><br></div><div><br></div><div><br></div><div>Not related with your error: you use PAW pseudopotentials, you might need to specify ecutrho as well. The default value, = 4 * ecutwfc, might not provide converged results in many or most cases.</div><div>Usually values from 6*ecutwfc to even 12*ecutwfc (depending on the system and on the property you want to compute) are needed.</div><div><br></div><div>Giovanni</div><div><br></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><span style="color:rgb(0,0,0)">-- <br><br>Prof. Giovanni Cantele<br>Dipartimento di Fisica "Ettore Pancini"<br>Universita' degli Studi di Napoli "Federico II"<br>Complesso Universitario M. S. Angelo - Ed. 6<br>Via Cintia, I-80126, Napoli, Italy<br>e-mail: <a href="mailto:giovanni.cantele@unina.it" target="_blank">giovanni.cantele@unina.it</a><br>Phone: +39 081 676910<br><br>Web page: </span><a href="https://sites.google.com/view/giovanni-cantele/home" style="color:rgb(17,85,204)" target="_blank">https://sites.google.com/view/giovanni-cantele/home</a><br></div></div></div><br></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">Il giorno mer 7 gen 2026 alle ore 20:43 Мищенко В.Н. <<a href="mailto:mishchenko@bsuir.by">mishchenko@bsuir.by</a>> ha scritto:<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 style="font-size:10pt;font-family:Verdana,Geneva,sans-serif">
<p style="text-align:justify"><span style="font-size:12pt;font-family:"times new roman",times,serif">Dear QE forum! </span></p>
<p style="text-align:justify"><span style="font-size:12pt;font-family:"times new roman",times,serif">I would like to ask a question regarding the modeling of a hybrid semiconductor structure that combines two materials with crystal lattices having different values for the parameter ibrav=2 and ibrav=12. To describe this structure, the parameters ibrav=0 and nosym=.true. were chosen, and the values of the remaining input parameters are presented in the appendix, in the file <a href="http://diam.scf.in" target="_blank">diam.scf.in</a>. The coordinates of all atoms were selected using the XCrySden program. </span></p>
<p style="text-align:justify"><span style="font-size:12pt;font-family:"times new roman",times,serif">When running the <a href="http://diam.scf.in" target="_blank">diam.scf.in</a> file in QE 7.4.1, I receive the error message: </span></p>
<p style="text-align:justify"><span style="font-size:12pt;font-family:"times new roman",times,serif"> </span><span style="font-size:12pt;font-family:"times new roman",times,serif">Error in routine check_atoms (1): atoms # 1 and # 2 differ by lattice vector (-1, -1, 0) in crystal axis </span></p>
<p style="text-align:justify"><span style="font-size:12pt;font-family:"times new roman",times,serif">When attempting to continue the modeling after removing atom number 2 from the list, the program again returns a similar error, but this time between the first and third atoms specified in the ATOMIC_POSITIONS alat. </span></p>
<p style="text-align:justify"><span style="font-size:12pt;font-family:"times new roman",times,serif">I'd like to ask: is there any way to avoid this error while maintaining the original number of atoms at 24? </span></p>
<p style="text-align:justify"><span style="font-size:12pt;font-family:"times new roman",times,serif">Best regards, </span></p>
<p style="text-align:justify"><span style="font-size:12pt;font-family:"times new roman",times,serif">Valery Mishchanka </span></p>
<p><span style="font-size:12pt;font-family:"times new roman",times,serif">PhD, Assoc. Prof., BSUIR</span></p>
</div>
_______________________________________________________________________________<br>
The Quantum ESPRESSO Foundation stands in solidarity with all civilians worldwide who are victims of terrorism, military aggression, and indiscriminate warfare.<br>
--------------------------------------------------------------------------------<br>
Quantum ESPRESSO is supported by MaX (<a href="http://www.max-centre.eu" rel="noreferrer" target="_blank">www.max-centre.eu</a>)<br>
users mailing list <a href="mailto:users@lists.quantum-espresso.org" target="_blank">users@lists.quantum-espresso.org</a><br>
<a href="https://lists.quantum-espresso.org/mailman/listinfo/users" rel="noreferrer" target="_blank">https://lists.quantum-espresso.org/mailman/listinfo/users</a></blockquote></div>