manual a little out of date?

Moderators: cyao, michael_borland

Post Reply
GPenn
Posts: 40
Joined: 28 Aug 2018, 09:46

manual a little out of date?

Post by GPenn » 06 Nov 2018, 14:58

Hi,

Just wanted to mention that a few things in the manual seem either wrong or out of date. I am using elegant version 34.4.1.

On page 10, %s is described as taking the name of the lattice file (without the extension), but it seems to be the input file name (at least when there is one).

On page 11, it says that RPN calculations require parentheses around them to work. Just quotes is enough for the input file, although either way works. But for the lattice file, it only works with quotation marks, if you also put in parentheses there is an error message "unknown token".

-Gregg

michael_borland
Posts: 1933
Joined: 19 May 2008, 09:33
Location: Argonne National Laboratory
Contact:

Re: manual a little out of date?

Post by michael_borland » 06 Nov 2018, 19:12

Gregg,

Thanks, those will be fixed and/or clarified in the next edition.

By the way, I don't think quotes only works for rpn expressions. It shouldn't. The right syntax is

Code: Select all

betax = "(3 sqrt)"
In the lattice file, one doesn't need the parentheses, e.g., just use

Code: Select all

b1: sben,angle="pi 3 /",l="3 sqrt"
--Michael

GPenn
Posts: 40
Joined: 28 Aug 2018, 09:46

Re: manual a little out of date?

Post by GPenn » 08 Nov 2018, 16:49

Yes, I was a little too quick to say that the parentheses are optional. Elegant didn't give an error when I tried leaving them out, but it just grabbed the first number and ignored the RPN calculations. In the lattice file, if I try to use parentheses it actually cannot parse the statement and exits.

-Gregg

Post Reply