<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
Hi, Martin —
<div>This is an obscure memory overwrite bug that was just pointed out to me a couple of days ago. There is a mismatch in the assumed max length of the variable description in a few source code files. I have fixed it for the next release, but for now you must
shorten your description — I suggest removing the ‘none ‘ since it appears that the final ’nent’ is what’s getting chopped off. If that doesn’t fix it, removing the list of pressure levels will definitely solve the problem. </div>
<div>—Jennifer</div>
<div><br>
<div>
<div>On Feb 27, 2017, at 11:56 AM, Martin Cuma <<a href="mailto:martin.cuma@utah.edu">martin.cuma@utah.edu</a>> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">Hello,<br>
<br>
We are trying to move from older grads (2.0.a1) to newer, and have some issues. <br>
When plotting variables from the same .ctl files with grads 2.0.2.oga.2 that <br>
plot successfully with grads 2.0.a1. For example, we can successfully plot a <br>
variable, ugrdprs with grads 2.0.a1, but get the following error with grads <br>
2.0.2.oga.2:<br>
<br>
ga-> d ugrdprs<br>
Syntax Error: Invalid Operand<br>
'ugrdprs' not a variable or function name<br>
Error ocurred at column 1<br>
DISPLAY error: Invalid expression<br>
Expression = ugrdprs<br>
<br>
The variables affected have long strings in the .ctl file, for example:<br>
<br>
UGRDprs 31,100 0,2,2 ** (1000 975 950 925 900 850 800 750 700 650 600 550 <br>
500 450 400 350 300 250 200 150 100 70 50 30 20 10 7 5 3 2 1) none U-Component <br>
of Wind [m/s]<br>
<br>
When we query the file in grads 2.0.a1, the first part of the string is <br>
provided:<br>
<br>
ugrdprs 31 0 ** (1000 975 950 925 900 850 800 750 700 650 600 550 500 450 400 <br>
350 300 250 200 150 100 70 50 30 20 10 7 5 3 2 1) none U-Compo<br>
<br>
However, when we query the file in grads 2.0.2.oga.2, the latter part of the <br>
string is provided:<br>
<br>
ent of Wind 31 0,2,3 ** (1000 975 950 925 900 850 800 750 700 650 600 550 <br>
500 450 400 350 300 250 200 150 100 70 50 30 20 10 7 5 3 2 1) none V-Component <br>
of Wind<br>
<br>
It looks like the long string truncation happens from the left in 2.0.a1 and <br>
from the right in 2.0.2.oga.2.<br>
<br>
Any thoughts on why can this be?<br>
<br>
Thanks,<br>
Martin<br>
_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
http://gradsusr.org/mailman/listinfo/gradsusr<br>
</blockquote>
</div>
<br>
<div apple-content-edited="true">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="font-size: 12px; orphans: 2; widows: 2;">--</div>
<div style="font-size: 12px; orphans: 2; widows: 2;">Jennifer Miletta Adams<br>
Center for Ocean-Land-Atmosphere Studies (COLA)<br>
George Mason University<br>
<br>
<br>
</div>
</div>
</div>
</div>
<br>
</div>
</body>
</html>