<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">You're right.&nbsp; The jatom definition
      (sec. 8.3.2 of 12.1 UG) indicates that only jatom 0 should be used
      unless "x lapw2 -qtl -band" is ran for jatom &gt;0. Thanks for
      pointing out my user's mistake.&nbsp; Sorry, the code is fine (expect
      if you consider that the program produces an output that probably
      shouldn't exist).<br>
      <br>
      On 9/13/2012 1:57 PM, Zhu, Jianxin wrote:<br>
    </div>
    <blockquote
cite="mid:1A9F0F275F0DE54BA1FBF55D068937C724082F75@ECS-EXG-P-MB05.win.lanl.gov"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <div>
        <div>
          <div>Once jatom is set to 1, it implies to do the heavy band
            plotting. Then I don't see the point that one can avoid
            running "x lapw2 &#8211;qtl -band".</div>
          <div>This difference is mentioned in &nbsp;UG 3.11.4 and 3.11.5 &nbsp;(I
            am still looking at the UG 9-18-2008 version).&nbsp;</div>
          <div><br>
          </div>
          <div><span class="Apple-style-span" style="font-family:
              Helvetica; font-size: medium; ">
              <div style="word-wrap: break-word; -webkit-nbsp-mode:
                space; -webkit-line-break: after-white-space; ">
                <span class="Apple-style-span" style="border-collapse:
                  separate; color: rgb(0, 0, 0); font-family: Helvetica;
                  font-style: normal; font-variant: normal; font-weight:
                  normal; letter-spacing: normal; line-height: normal;
                  orphans: 2; text-indent: 0px; text-transform: none;
                  white-space: normal; widows: 2; word-spacing: 0px;
                  -webkit-border-horizontal-spacing: 0px;
                  -webkit-border-vertical-spacing: 0px;
                  -webkit-text-decorations-in-effect: none;
                  -webkit-text-size-adjust: auto;
                  -webkit-text-stroke-width: 0px; font-size: medium; ">
                  <div style="word-wrap: break-word; -webkit-nbsp-mode:
                    space; -webkit-line-break: after-white-space; ">
                    JX</div>
                </span><br class="Apple-interchange-newline">
              </div>
            </span>
          </div>
        </div>
      </div>
      <span id="OLK_SRC_BODY_SECTION">
        <div style="font-family:Calibri; font-size:11pt;
          text-align:left; color:black; BORDER-BOTTOM: medium none;
          BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT:
          0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid;
          BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
          <span style="font-weight:bold">From: </span>Gavin Abo &lt;<a
            moz-do-not-send="true" href="mailto:gsabo@crimson.ua.edu">gsabo@crimson.ua.edu</a>&gt;<br>
          <span style="font-weight:bold">Reply-To: </span>A Mailing
          list for WIEN2k users &lt;<a moz-do-not-send="true"
            href="mailto:wien@zeus.theochem.tuwien.ac.at">wien@zeus.theochem.tuwien.ac.at</a>&gt;<br>
          <span style="font-weight:bold">Date: </span>Thu, 13 Sep 2012
          12:46:19 -0600<br>
          <span style="font-weight:bold">To: </span>A Mailing list for
          WIEN2k users &lt;<a moz-do-not-send="true"
            href="mailto:wien@zeus.theochem.tuwien.ac.at">wien@zeus.theochem.tuwien.ac.at</a>&gt;<br>
          <span style="font-weight:bold">Subject: </span>Re: [Wien]
          Small agr bug in spag.f<br>
        </div>
        <div><br>
        </div>
        <blockquote id="MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE"
          style="BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0
          0 0 5;">
          <div>
            <div bgcolor="#FFFFFF" text="#000000">
              <div class="moz-cite-prefix">The issue is not with grace.&nbsp;
                The problem only happens in a certain case.&nbsp; To
                reproduce, try the following.<br>
                <br>
                1. In w2web, converge the scf cycle for the TiC example<br>
                &nbsp;&nbsp;&nbsp; - Create TiC.struct with StructGen using the lattice
                and atomic position parameters in the UG<br>
                &nbsp;&nbsp;&nbsp; - Click through the "initialize calc." steps using
                default values, except use no spin-polarization and 1000
                k-points<br>
                &nbsp;&nbsp;&nbsp; - Run the scf cycle with charge convergence of
                0.0001<br>
                2. After it converges in the 12 cycle, click
                Bandstructure under Tasks<br>
                &nbsp;&nbsp; - Click create TiC.klist_band with fcc<br>
                &nbsp;&nbsp; - Click x lapw1 -band<br>
                &nbsp;&nbsp; - Click edit TiC.insp, copy/paste the fermi value on
                the screen into the file and change jatom value to 1
                (there is no error if jatom is 0)<br>
                &nbsp;&nbsp; - Click x spaghetti<br>
                &nbsp;&nbsp; - In a terminal, run: xmgrace TiC.bands.agr<br>
                &nbsp;&nbsp; - At least on my system, the error appears in the
                terminal because spag.f wrote ^@ characters in the agr
                file (without the fix) since xmlabel(:) is undefined.<br>
                <br>
                &nbsp;&nbsp; Note: Make sure that you don't do "x lapw2 -band
                -qtl" for a band character plot, you will not get an
                error because
                <span id="OLK_SRC_BODY_SECTION"><font face="Times New
                    Roman">xmlabel1(:)=label1(:) is reached inside of
                    the if statement.</font></span><br>
                <br>
                On 9/13/2012 11:37 AM, Zhu, Jianxin wrote:<br>
              </div>
              <blockquote
cite="mid:1A9F0F275F0DE54BA1FBF55D068937C724082ED8@ECS-EXG-P-MB05.win.lanl.gov"
                type="cite">
                <div>
                  <div>
                    <div>Hi Gavin,&nbsp;</div>
                    <div><br>
                    </div>
                    <div>I couldn't reproduce the error you have.&nbsp;</div>
                    <div>Is this the issue with your grace?&nbsp;</div>
                    <div>Also I don't see any change with this part of
                      generating the agr file when version 12.1 is
                      compared with &nbsp;version 11.1.</div>
                    <div><br>
                    </div>
                    <div>Cheers,&nbsp;</div>
                    <div><br>
                    </div>
                    <div>Jianxin</div>
                    <div><span class="Apple-style-span"
                        style="font-family: Helvetica; font-size:
                        medium; ">
                        <div style="word-wrap: break-word;
                          -webkit-nbsp-mode: space; -webkit-line-break:
                          after-white-space; ">
                          <br class="Apple-interchange-newline">
                        </div>
                      </span>
                    </div>
                  </div>
                </div>
                <span id="OLK_SRC_BODY_SECTION">
                  <div style="font-family:Calibri; font-size:11pt;
                    text-align:left; color:black; BORDER-BOTTOM: medium
                    none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in;
                    PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP:
                    #b5c4df 1pt solid; BORDER-RIGHT: medium none;
                    PADDING-TOP: 3pt">
                    <span style="font-weight:bold">From: </span>Gavin
                    Abo &lt;<a moz-do-not-send="true"
                      href="mailto:gsabo@crimson.ua.edu">gsabo@crimson.ua.edu</a>&gt;<br>
                    <span style="font-weight:bold">Reply-To: </span>A
                    Mailing list for WIEN2k users &lt;<a
                      moz-do-not-send="true"
                      href="mailto:wien@zeus.theochem.tuwien.ac.at">wien@zeus.theochem.tuwien.ac.at</a>&gt;<br>
                    <span style="font-weight:bold">Date: </span>Wed, 12
                    Sep 2012 13:32:51 -0600<br>
                    <span style="font-weight:bold">To: </span>A Mailing
                    list for WIEN2k users &lt;<a moz-do-not-send="true"
                      href="mailto:wien@zeus.theochem.tuwien.ac.at">wien@zeus.theochem.tuwien.ac.at</a>&gt;<br>
                    <span style="font-weight:bold">Subject: </span>[Wien]
                    Small agr bug in spag.f<br>
                  </div>
                  <div><br>
                  </div>
                  <blockquote id="MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE"
                    style="BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0
                    5; MARGIN:0 0 0 5;">
                    <div>
                      <div bgcolor="#FFFFFF" text="#000000"><font
                          face="Times New Roman">Dear Prof. Blaha,<br>
                          <br>
                          This is to report a small bug in Wien2k 12.1.<br>
                          <br>
                          An error like the following might occur:<br>
                          <br>
                          xmgrace TiC.bands.agr<br>
                          <br>
                          Nonterminating string:&nbsp; TITLE "TiC&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                          atom&nbsp; 1&nbsp; #&nbsp;&nbsp;&nbsp; k&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ene&nbsp;&nbsp;&nbsp;&nbsp; character<br>
                          syntax error:&nbsp; TITLE "TiC&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; atom&nbsp; 1&nbsp;
                          #&nbsp;&nbsp;&nbsp; k&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ene&nbsp;&nbsp;&nbsp;&nbsp; character<br>
                          <br>
                          The xmlabel is set for the case shown in the
                          code below. For other cases, xmlabel is
                          uninitialized and garbage out is written in
                          the agr file.<br>
                          <br>
                          SRC_spaghetti/spag.f<br>
                          --------------------<br>
                          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if(jatom.eq.0) goto 206<br>
                          &nbsp;207&nbsp; read(9,'(a80)',end=206) aline<br>
                          &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;if(aline(2:5).eq.'JATO') then<br>
                          &nbsp;&nbsp; &nbsp;...<br>
                          &nbsp;&nbsp; &nbsp;xmlabel1(:)=label1(:) !line 430<br>
                          &nbsp;&nbsp; &nbsp;...<br>
                          &nbsp;&nbsp; &nbsp;endif<br>
                          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; endif<br>
                          &nbsp;&nbsp; &nbsp;...<br>
                          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; write(40,123) xmtitle, jatom_list(1),
                          xmlabel1 #line 588<br>
                          --------------------<br>
                          <br>
                          Therefore, the following change is suggested
                          in spag.f:<br>
                          <br>
                          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; xmlabel1 ='' !Add at line 406<br>
                          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; char0=0.01d0<br>
                          <br>
                          Best Regards,<br>
                          <br>
                          Gavin</font> </div>
                    </div>
                    <br>
                  </blockquote>
                </span></blockquote>
            </div>
          </div>
        </blockquote>
      </span>
    </blockquote>
    <br>
  </body>
</html>