-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'max'i'' does not work #444
Comments
Your pre-processor variable opening character should be a back-tick instead of apostrophe, like so:
Then the nesting works. |
Thank you very much for the explanation. I was also wondering why Tensors objects do not accept 0 index: V v1; I was expecting that the output will be: rather than: The index 0 works for the vector as expected. |
This behaviour was introduced in 689b72d, though it is unclear to me whether this was intentional or not. |
I am referring to the example given in the book.pdf (page.75) of FORM4.2:
when I run:
#define max1 "2"
#define max2 "3"
AutoDeclare Symbol x;
#do i = 1, 2
#do j = 1, 'max'i''
Local F'i''j' = x^'i''j';
#enddo
#enddo
Print;
.end
I get the following error:
test.frm Line 5 ==> Undefined preprocessor variable max
But when I change
#do j = 1, 'max'i''
to
#do j = 1, 'max{'i'}'
I do get the output as given in the manual.
I was wondering if it's an issue with my text editor or something else.
The text was updated successfully, but these errors were encountered: