Skip to content

Another wrong outcome of autodeclared index dimension  #325

Description

@mgerlach-phys

This may be related to #324.

Declaring a dimension of autodeclared indices with "autodeclare" leads to strange results.
As seen with the following program:

*autodeclare symbol a;
*autodeclare symbol a, b;
*autodeclare symbol a, b, c;

autodeclare symbol N;
autodeclare index randomIndex=N1;

local A = d_(randomIndex1,randomIndex2)*d_(randomIndex1,randomIndex2);

print +s;
.end

This program gives pi_.
Uncommenting one of the first three lines results in other random internal used parameter, such as coeff_, num_ or den_.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions