Fix symmetrizer
Description
The symmetrizer code was possibly leads to round-off errors leading to some out-of-bound exceptions. This version of the code fixes this problem.
This fixes the second problem reported in #881
News snippet
Fix potential out-of-bound exception in the symmetrizer
Checklist
-
I have checked that my code follows the Octopus coding standards -
I have added tests for all the new features added in this request.