Refs #11465. Fixing float comparison
Switching to std::sort/std::unique did not ultimately solve the problem, since sort also uses V3D::operator<(). Introduced a functor for use in Group and related classes for this purpose and added tests.
Showing
- Code/Mantid/Framework/Geometry/inc/MantidGeometry/Crystal/Group.h 20 additions, 0 deletions...tid/Framework/Geometry/inc/MantidGeometry/Crystal/Group.h
- Code/Mantid/Framework/Geometry/inc/MantidGeometry/Crystal/SpaceGroup.h 8 additions, 3 deletions...ramework/Geometry/inc/MantidGeometry/Crystal/SpaceGroup.h
- Code/Mantid/Framework/Geometry/src/Crystal/Group.cpp 4 additions, 2 deletionsCode/Mantid/Framework/Geometry/src/Crystal/Group.cpp
- Code/Mantid/Framework/Geometry/test/GroupTest.h 37 additions, 0 deletionsCode/Mantid/Framework/Geometry/test/GroupTest.h
- Code/Mantid/Framework/Geometry/test/SpaceGroupTest.h 91 additions, 48 deletionsCode/Mantid/Framework/Geometry/test/SpaceGroupTest.h
- Code/Mantid/Framework/PythonInterface/mantid/geometry/src/Exports/Group.cpp 11 additions, 9 deletions...ork/PythonInterface/mantid/geometry/src/Exports/Group.cpp
- Code/Mantid/Framework/PythonInterface/test/python/mantid/geometry/SpaceGroupTest.py 99 additions, 7 deletions...onInterface/test/python/mantid/geometry/SpaceGroupTest.py
- Code/Mantid/docs/source/concepts/PointGroups.rst 3 additions, 1 deletionCode/Mantid/docs/source/concepts/PointGroups.rst
Loading
Please register or sign in to comment