Weird array problem

Dear experts,
I set an array and variable:

#define coord (1458, 1906, 2354)
#define i 0

and used it with BEAMPOS command: what(1) =coord[i]
It look fine but after press “Start” error is occured.

fluka

[NG001.out]
*** Unbalanced parentheses in expression, execution terminated ***
(1458
Abort called from EVEXPR reason UNBALANCED PARENTHESES IN EXPRESSION Run stopped!
STOP UNBALANCED PARENTHESES IN EXPRESSION

What am I doing wrong?
NG.inp (1.1 KB)
NG001.out (1.8 KB)

Best wishes to you!

Hi @rx9abc ,

this is a known problem, on the parenthesis parsing with fluka #defines.
We should fix in next release
For the moment is better to create a variable that you assign in the
BEAMPOS x: =Xpos
and alter the Xpos value in the Run tab of flair