Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e3a033 commit 52d29fdCopy full SHA for 52d29fd
src/geom/bounding_box.C
@@ -80,11 +80,11 @@ Real BoundingBox::max_size() const
80
bool BoundingBox::contains_point
81
(const Point & p, Real abs_tol, Real rel_tol) const
82
{
83
- libmesh_assert_greater_equal(abs_tol, 0);
84
- libmesh_assert_greater_equal(rel_tol, 0);
+ libmesh_assert_greater_equal(abs_tol, Real(0));
+ libmesh_assert_greater_equal(rel_tol, Real(0));
85
86
// Just use the other contains_point overload
87
- libmesh_assert_greater(rel_tol+abs_tol, 0);
+ libmesh_assert_greater(rel_tol+abs_tol, Real(0));
88
89
// Find absolute tolerance from relative tolerance
90
const Real tol = std::max(abs_tol, this->max_size()*rel_tol);
0 commit comments