Skip to content
Snippets Groups Projects
Commit 40501f30 authored by Owen Arnold's avatar Owen Arnold
Browse files

Make more portable

parent e3e6e7f5
No related branches found
No related tags found
No related merge requests found
#include "MantidGeometry/Rendering/ShapeInfo.h" #include "MantidGeometry/Rendering/ShapeInfo.h"
#include "MantidKernel/Tolerance.h" #include "MantidKernel/Tolerance.h"
#include "MantidKernel/V3D.h" #include "MantidKernel/V3D.h"
#include <cmath>
namespace Mantid { namespace Mantid {
using Kernel::V3D; using Kernel::V3D;
...@@ -67,11 +68,11 @@ void ShapeInfo::setCone(const V3D &c, const V3D &a, double r, double h) { ...@@ -67,11 +68,11 @@ void ShapeInfo::setCone(const V3D &c, const V3D &a, double r, double h) {
bool ShapeInfo::operator==(const ShapeInfo &other) { bool ShapeInfo::operator==(const ShapeInfo &other) {
return m_shape == other.m_shape && return m_shape == other.m_shape &&
abs(m_height - other.m_height) < Kernel::Tolerance && std::abs(m_height - other.m_height) < Kernel::Tolerance &&
abs(m_radius - other.m_radius) < Kernel::Tolerance && std::abs(m_radius - other.m_radius) < Kernel::Tolerance &&
m_points == other.m_points; m_points == other.m_points;
} }
} // namespace detail } // namespace detail
} // namespace Geometry } // namespace Geometry
} // namespace Mantid } // namespace Mantid
\ No newline at end of file
...@@ -41,7 +41,7 @@ MeshObject2D makeTrapezoidMesh(const V3D &a, const V3D &b, const V3D &c, ...@@ -41,7 +41,7 @@ MeshObject2D makeTrapezoidMesh(const V3D &a, const V3D &b, const V3D &c,
// ----------------------------------------------------------------------------- // -----------------------------------------------------------------------------
class MockRNG : public Mantid::Kernel::PseudoRandomNumberGenerator { class MockRNG : public Mantid::Kernel::PseudoRandomNumberGenerator {
public: public:
GCC_DIAG_OFF_SUGGEST_OVERRIDE GNU_DIAG_OFF_SUGGEST_OVERRIDE
MOCK_METHOD0(nextValue, double()); MOCK_METHOD0(nextValue, double());
MOCK_METHOD2(nextValue, double(double, double)); MOCK_METHOD2(nextValue, double(double, double));
MOCK_METHOD2(nextInt, int(int, int)); MOCK_METHOD2(nextInt, int(int, int));
...@@ -52,7 +52,7 @@ public: ...@@ -52,7 +52,7 @@ public:
MOCK_METHOD2(setRange, void(const double, const double)); MOCK_METHOD2(setRange, void(const double, const double));
MOCK_CONST_METHOD0(min, double()); MOCK_CONST_METHOD0(min, double());
MOCK_CONST_METHOD0(max, double()); MOCK_CONST_METHOD0(max, double());
GCC_DIAG_ON_SUGGEST_OVERRIDE GNU_DIAG_ON_SUGGEST_OVERRIDE
}; };
} // namespace } // namespace
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
#include <H5Cpp.h> #include <H5Cpp.h>
#include <chrono> #include <chrono>
#include <string> #include <string>
#include <Poco/Glob.h>
using namespace Mantid; using namespace Mantid;
using namespace NexusGeometry; using namespace NexusGeometry;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment