1
0
mirror of https://github.com/paboyle/Grid.git synced 2024-11-09 23:45:36 +00:00

Merge pull request #454 from edbennett/adjoint-broke

fix HMC for non-fundamental representations
This commit is contained in:
Peter Boyle 2024-02-28 14:05:27 -05:00 committed by GitHub
commit ee1b8bbdbd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -237,7 +237,7 @@ public:
for (int level = 0; level < as.size(); ++level) { for (int level = 0; level < as.size(); ++level) {
int multiplier = as.at(level).multiplier; int multiplier = as.at(level).multiplier;
ActionLevel<Field> * Level = new ActionLevel<Field>(multiplier); ActionLevel<Field, RepresentationPolicy> * Level = new ActionLevel<Field, RepresentationPolicy>(multiplier);
Level->push_back(new EmptyAction<Field>); Level->push_back(new EmptyAction<Field>);
LevelForces.push_back(*Level); LevelForces.push_back(*Level);
// does it copy by value or reference?? // does it copy by value or reference??