Ewaldgpu: Energy works