<p>
        Thanks! Many thanks! Super thanks for your patient and detailed answers, Paolo. It finally got solved. Following your guidance, I will do more digging and tests on these variables.
</p>
<p>
        all best
</p>
<p>
        <br>
<br>
</p>
<blockquote class="ReferenceQuote" style="padding-left:5px;margin-right:0px;margin-left:5px;border-left-color:#B6B6B6;border-left-width:2px;border-left-style:solid;" name="replyContent">
        -----原始邮件-----<br>
<b>发件人:</b><span id="rc_from">"Paolo Giannozzi" <p.giannozzi@gmail.com></span><br>
<b>发送时间:</b><span id="rc_senttime">2020-04-16 15:27:06 (星期四)</span><br>
<b>收件人:</b> "Quantum ESPRESSO users Forum" <users@lists.quantum-espresso.org><br>
<b>抄送:</b> <br>
<b>主题:</b> Re: [QE-users] Seeking help for SCF calculations on possible semiconductor (Based on several error reports)<br>
<br>
        <div dir="ltr">
                <div dir="ltr">
                        On Thu, Apr 16, 2020 at 4:05 AM <<a href="mailto:zhangkan3@mail.sysu.edu.cn">zhangkan3@mail.sysu.edu.cn</a>> wrote:
                </div>
                <div dir="ltr">
                        <br>
                </div>
                <div class="gmail_quote">
                        <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:#CCCCCC;border-left-width:1px;border-left-style:solid;">
                                1) firstly, I used occupations = 'tetrahedra_opt'(the out1 file in attachments), it gets a warning in line 24 but gets job done. Is this set in related to the crystal? Is this method suitable for my system?
                        </blockquote>
                        <div>
                                <br>
                        </div>
                        <div>
                                with smearing, forces are exactly the derivatives of the energy. With tetrahedra, this is not true. With "optimized" tetrahedra, the error should however be sufficiently small to ensure a godd quality of forces.<br>
                        </div>
                        <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:#CCCCCC;border-left-width:1px;border-left-style:solid;">
                                <p>
                                        2) secondly, I set smearing in input file (the scf file), I set it to cold by using generator (<a href="https://www.materialscloud.org/work/tools/qeinputgenerator" target="_blank">https://www.materialscloud.org/work/tools/qeinputgenerator</a>), while the error suggests to using gaussian.
                                </p>
                        </blockquote>
                        <div>
                                <div>
                                        no, the error suggests (or was intended to suggest) that you set a value for the gaussian broadening "degauss"<br>
                                </div>
                        </div>
                        <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:#CCCCCC;border-left-width:1px;border-left-style:solid;">
                                <p>
                                        So I deleted the cold set. And the error is back to k-points (the out file in attachments). 
                                </p>
                        </blockquote>
                        <div>
                                no it's not: there is no error in k-points. What may happen is that your code does not like the absence of a new line at the end of your file (it ends on the last line). Add an empty new line at the end.
                        </div>
                        <div>
                                <br>
                        </div>
                        <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:#CCCCCC;border-left-width:1px;border-left-style:solid;">
                                3) as your suggestion, does it mean that if I want to set tot_magnetization I should know a possible range in magnetization about my system at least?<br>
                        </blockquote>
                        <div>
                                <br>
                        </div>
                        <div>
                                usually you should not need  to set the total magnetization
                        </div>
                        <div>
                                <br>
                        </div>
                        <div>
                                Paolo <br>
                        </div>
                        <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:#CCCCCC;border-left-width:1px;border-left-style:solid;">
                                <p>
                                        All best,
                                </p>
                                <p>
                                        Kan Zhang
                                </p>
                                <blockquote style="padding-left:5px;margin-right:0px;margin-left:5px;border-left-color:#B6B6B6;border-left-width:2px;border-left-style:solid;" name="replyContent">
                                        -----原始邮件-----<br>
<b>发件人:</b><span id="gmail-m_-8978468797149728990rc_from">"Paolo Giannozzi" <<a href="mailto:p.giannozzi@gmail.com" target="_blank">p.giannozzi@gmail.com</a>></span><br>
<b>发送时间:</b><span id="gmail-m_-8978468797149728990rc_senttime">2020-04-15 17:53:24 (星期三)</span><br>
<b>收件人:</b> "Quantum ESPRESSO users Forum" <<a href="mailto:users@lists.quantum-espresso.org" target="_blank">users@lists.quantum-espresso.org</a>><br>
<b>抄送:</b> <br>
<b>主题:</b> Re: [QE-users] Seeking help for SCF calculations on possible semiconductor (Based on several error reports)<br>
<br>
                                        <div dir="ltr">
                                                <div dir="ltr">
                                                        On Wed, Apr 15, 2020 at 11:18 AM <<a href="mailto:zhangkan3@mail.sysu.edu.cn" target="_blank">zhangkan3@mail.sysu.edu.cn</a>> wrote:
                                                </div>
                                                <div dir="ltr">
                                                        <br>
                                                </div>
                                                <div class="gmail_quote">
                                                        <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:#CCCCCC;border-left-width:1px;border-left-style:solid;">
                                                                celldm(4)       =  120.000
                                                        </blockquote>
                                                        <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:#CCCCCC;border-left-width:1px;border-left-style:solid;">
                                                                celldm(5)       =  90.000 
                                                        </blockquote>
                                                        <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:#CCCCCC;border-left-width:1px;border-left-style:solid;">
                                                                celldm(6)       =  90.000<br>
                                                        </blockquote>
                                                        <div>
                                                                <br>
                                                        </div>
                                                        <div>
                                                                these must be the cosines, not the angles. Luckily they are ignored for ibrav=4of angles, not the <br>
                                                        </div>
                                                        <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:#CCCCCC;border-left-width:1px;border-left-style:solid;">
                                                                <p>
                                                                            diagonalization =  'cg'
                                                                </p>
                                                        </blockquote>
                                                        <div>
                                                                don't use this option unless you have a good reason to <br>
                                                        </div>
                                                        <div>
                                                                <br>
                                                        </div>
                                                        <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:#CCCCCC;border-left-width:1px;border-left-style:solid;">
                                                                <b>I have difficulties on how to specify the magnetization related variables. Why these variables must be specified? </b> 
                                                        </blockquote>
                                                        <div>
                                                                 
                                                        </div>
                                                        <div>
                                                                because if you don't constrain the magnetization and don't break the symmetry, you don't get any magnetization;
                                                        </div>
                                                        <div>
                                                                if you don't constrain the magnetization but break the symmetry and leave the system find its preferred magnetization, you need to allow for fractional occupancies; 
if you constrain the magnetization, you also constrain occupancies
                                                        </div>
                                                        <div>
                                                                <br>
                                                        </div>
                                                        <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:#CCCCCC;border-left-width:1px;border-left-style:solid;">
                                                                The after error report is: Error in routine card_kpoints (1):error while reading automatic k points.
                                                        </blockquote>
                                                        <div>
                                                                <br>
                                                        </div>
                                                        <div>
                                                                you made something else from what you describe: there is nothing wrong in card k_points.<br>
                                                        </div>
                                                        <div>
                                                                <br>
                                                        </div>
                                                        <div>
                                                                Paolo
                                                        </div>
                                                        <div>
                                                                <br>
                                                        </div>
                                                        <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:#CCCCCC;border-left-width:1px;border-left-style:solid;">
                                                                <p>
                                                                        I am afraid that this will be a dead cycle. So I am here to seeking some suggestions, sincerely.
                                                                </p>
                                                                <p>
                                                                        Kan Zhang
                                                                </p>
                                                                <p>
                                                                        from Sun Yat-sen University,China
                                                                </p>
<br>
<br>
                                                                <hr>
                                                                <table class="ke-zeroborder" border="0">
                                                                        <tbody>
                                                                                <tr style="height:110px;">
                                                                                        <td width="100" valign="center" style="padding:0px 3px;">
                                                                                                <img style="width:90px;height:90px;" alt="" src="http://www.sysu.edu.cn/2012/images/sysu-mail-logo.png"> 
                                                                                        </td>
                                                                                        <td width="600" style="padding:0px;">
                                                                                                <p>
                                                                                                        <span style="color:#7F7F7F;font-family:宋体;font-size:10px;">本邮件及其附件含有发送给特定个人和用于特定目的的信息。如果您不是预期的收件人,请立即删除本邮件并通知发件人。严禁任何非预期的收件人使用、传播、分发或复制本邮件或其附件。</span><br>
<span style="color:#7F7F7F;font-family:Arial,sans-serif;font-size:10px;">This email and its attachments may contain confidential information intended for a specific individual and purpose. If you are not the intended recipient, you should delete this email and notify the sender immediately. Any use, dissemination, distribution, or copying of this email or its attachments by persons other than the intended recipient(s), is strictly prohibited.</span> 
                                                                                                </p>
                                                                                        </td>
                                                                                </tr>
                                                                        </tbody>
                                                                </table>
_______________________________________________<br>
Quantum ESPRESSO is supported by MaX (<a href="http://www.max-centre.eu/quantum-espresso" target="_blank" rel="noreferrer">www.max-centre.eu/quantum-espresso</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" target="_blank" rel="noreferrer">https://lists.quantum-espresso.org/mailman/listinfo/users</a> 
                                                        </blockquote>
                                                </div>
<br clear="all">
<br>
-- <br>
                                                <div dir="ltr">
                                                        <div dir="ltr">
                                                                <div>
                                                                        <div dir="ltr">
                                                                                <div>
                                                                                        Paolo Giannozzi, Dip. Scienze Matematiche Informatiche e Fisiche,<br>
Univ. Udine, via delle Scienze 208, 33100 Udine, Italy<br>
Phone +39-0432-558216, fax +39-0432-558222<br>
<br>
                                                                                </div>
                                                                        </div>
                                                                </div>
                                                        </div>
                                                </div>
                                        </div>
                                </blockquote>
<br>
<br>
                                <hr>
                                <table class="ke-zeroborder" border="0">
                                        <tbody>
                                                <tr style="height:110px;">
                                                        <td width="100" valign="center" style="padding:0px 3px;">
                                                                <img style="width:90px;height:90px;" alt="" src="http://www.sysu.edu.cn/2012/images/sysu-mail-logo.png"> 
                                                        </td>
                                                        <td width="600" style="padding:0px;">
                                                                <p>
                                                                        <span style="color:#7F7F7F;font-family:宋体;font-size:10px;">本邮件及其附件含有发送给特定个人和用于特定目的的信息。如果您不是预期的收件人,请立即删除本邮件并通知发件人。严禁任何非预期的收件人使用、传播、分发或复制本邮件或其附件。</span><br>
<span style="color:#7F7F7F;font-family:Arial,sans-serif;font-size:10px;">This email and its attachments may contain confidential information intended for a specific individual and purpose. If you are not the intended recipient, you should delete this email and notify the sender immediately. Any use, dissemination, distribution, or copying of this email or its attachments by persons other than the intended recipient(s), is strictly prohibited.</span> 
                                                                </p>
                                                        </td>
                                                </tr>
                                        </tbody>
                                </table>
_______________________________________________<br>
Quantum ESPRESSO is supported by MaX (<a href="http://www.max-centre.eu/quantum-espresso" target="_blank" rel="noreferrer">www.max-centre.eu/quantum-espresso</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" target="_blank" rel="noreferrer">https://lists.quantum-espresso.org/mailman/listinfo/users</a>
                        </blockquote>
                </div>
<br>
-- <br>
                <div class="gmail_signature" dir="ltr">
                        <div dir="ltr">
                                <div>
                                        <div dir="ltr">
                                                <div>
                                                        Paolo Giannozzi, Dip. Scienze Matematiche Informatiche e Fisiche,<br>
Univ. Udine, via delle Scienze 208, 33100 Udine, Italy<br>
Phone +39-0432-558216, fax +39-0432-558222<br>
<br>
                                                </div>
                                        </div>
                                </div>
                        </div>
                </div>
        </div>
</blockquote><br><br><hr>
<table border="0">
    <tbody>
        <tr style=";height:110px">
            <td style="padding: 0px 3px" valign="center" width="100">
             
                                <img alt="" src="http://www.sysu.edu.cn/2012/images/sysu-mail-logo.png" style="width: 90px; height: 90px;">
            </td>
            <td style="padding: 0px " width="600">
                <p>
                    <span style="font-size:10px;font-family:宋体;color:#7F7F7F">本邮件及其附件含有发送给特定个人和用于特定目的的信息。如果您不是预期的收件人,请立即删除本邮件并通知发件人。严禁任何非预期的收件人使用、传播、分发或复制本邮件或其附件。</span><br>
                    <span style="font-size:10px;font-family:Arial,sans-serif;color:#7F7F7F">This email and its attachments may contain confidential information intended for a specific individual and purpose. If you are not the intended recipient, you should delete this email and notify the sender immediately. Any use, dissemination, distribution, or copying of this email or its attachments by persons other than the intended recipient(s), is strictly prohibited.</span>
                </p>
            </td>
        </tr>
    </tbody>
</table>