<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><BR><DIV><DIV>On Feb 23, 2007, at 10:06 AM, Hai-Ru Chang wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite">Hello everybody!<DIV>                     I have a opteron workstation with the following architecture:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>                    Linux master 2.6.17-ck1-suse101-osmp #264 SMP Tue Oct 3 16:44:26 EDT 2006 x86_64 x86_64 x86_64 GNU/Linux.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>When I issued the 'q dims' command inside grads,   I saw the following output</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Default file number is: 1 </DIV><DIV>X is varying   Lon = 147.258 to 232.741   X = 1.00002 to 89</DIV><DIV>Y is varying   Lat = -39.2537 to 39.2511   Y = 1 to 89</DIV><DIV>Z is fixed     Lev = 1000  Z = 1</DIV><DIV>T is fixed     Time = 12Z01JUL30064773072  T = 1</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>There are two errors in the output.  First, the lower limit of x is 1.00002 instead of 1.  <BR></DIV></BLOCKQUOTE><DIV>This is a precision issue because your lat/lon grid increment is small. This is mostly harmless -- doesn't affect displays, is usually only a problem when using set gxout fwrite. </DIV><DIV><BR class="khtml-block-placeholder"></DIV><BLOCKQUOTE type="cite"><DIV>Second, the year on the time line is totally wrong.  I used Portland group compiler to build up the software from source.   Does any one know how to fix the problem?  <BR></DIV></BLOCKQUOTE><DIV>This is a bug that appears on 64-bit linux systems. It has been fixed. Since you are building from source, you can edit the subroutine gat2ch in gautil.c. There were substitution strings for long integers ("%l") in the sprintf statements that should be regular integers ("%i")</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>int gat2ch (struct dt *dtim, int tinc, char *ch) {</DIV><DIV>int mn1,mn2,hr1,hr2,dy1,dy2,len,mnth;</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>  mnth = dtim-&gt;mo - 1L;</DIV><DIV>  mn1 = dtim-&gt;mn/10L;</DIV><DIV>  mn2 = dtim-&gt;mn - (mn1*10);</DIV><DIV>  hr1 = dtim-&gt;hr/10L;</DIV><DIV>  hr2 = dtim-&gt;hr - (hr1*10);</DIV><DIV>  dy1 = dtim-&gt;dy/10L;</DIV><DIV>  dy2 = dtim-&gt;dy - (dy1*10);</DIV><DIV>  if (tinc==1) {</DIV><DIV>    sprintf(ch,"%04i",dtim-&gt;yr);</DIV><DIV>  }</DIV><DIV>  else if (tinc==2) {</DIV><DIV>    if (dtim-&gt;yr==9999L) {</DIV><DIV>      sprintf(ch,"%s",monc[mnth]);</DIV><DIV>    } else {</DIV><DIV>      sprintf(ch,"%s%04i",monc[mnth],dtim-&gt;yr);</DIV><DIV>    }</DIV><DIV>  }</DIV><DIV>  else if (tinc==3) {</DIV><DIV>    sprintf(ch,"%i%i%s%04i",dy1,dy2,monc[mnth],dtim-&gt;yr);</DIV><DIV>  }</DIV><DIV>  else if (tinc==4) {</DIV><DIV>    sprintf(ch,"%i%iZ%i%i%s%04i",hr1,hr2,dy1,dy2,</DIV><DIV>          monc[mnth],dtim-&gt;yr);</DIV><DIV>  }</DIV><DIV>  else if (tinc==5) {</DIV><DIV>    sprintf(ch,"%i%i:%i%iZ%i%i%s%04i",hr1,hr2,mn1,mn2,dy1,dy2,</DIV><DIV>          monc[mnth],dtim-&gt;yr);</DIV><DIV>  }</DIV><DIV>  else sprintf(ch,"???");</DIV><DIV>  len=0;</DIV><DIV>  while (ch[len]) len++;</DIV><DIV>  return (len);</DIV><DIV>}</DIV><DIV><BR class="khtml-block-placeholder"></DIV></DIV><BR><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV>--</DIV><DIV>Jennifer M. Adams</DIV><DIV>IGES/COLA</DIV><DIV>4041 Powder Mill Road, Suite 302</DIV><DIV>Calverton, MD 20705</DIV><DIV><A href="mailto:jma@cola.iges.org">jma@cola.iges.org</A></DIV><DIV><BR class="khtml-block-placeholder"></DIV><BR class="Apple-interchange-newline"></SPAN></SPAN></SPAN> </DIV><BR></BODY></HTML>