paboyle / Grid

Data parallel C++ mathematical object library
GNU General Public License v2.0
155 stars 111 forks source link

fix HMC for non-fundamental representations #454

Closed edbennett closed 9 months ago

edbennett commented 9 months ago

The change introduced in d1d9827 made HMC code using higher representations fail to compile, as LevelForces.push_back() fails due to type mismatches.

This PR adjusts the definition of LevelForces to correctly apply the RepresentationPolicy of the Integrator.

paboyle commented 9 months ago

Thanks Ed ! Sorry about that.