Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 52d29fd

Browse files
committed
Don't let casting confuse our new assertions
1 parent 3e3a033 commit 52d29fd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/geom/bounding_box.C

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,11 @@ Real BoundingBox::max_size() const
8080
bool BoundingBox::contains_point
8181
(const Point & p, Real abs_tol, Real rel_tol) const
8282
{
83-
libmesh_assert_greater_equal(abs_tol, 0);
84-
libmesh_assert_greater_equal(rel_tol, 0);
83+
libmesh_assert_greater_equal(abs_tol, Real(0));
84+
libmesh_assert_greater_equal(rel_tol, Real(0));
8585

8686
// Just use the other contains_point overload
87-
libmesh_assert_greater(rel_tol+abs_tol, 0);
87+
libmesh_assert_greater(rel_tol+abs_tol, Real(0));
8888

8989
// Find absolute tolerance from relative tolerance
9090
const Real tol = std::max(abs_tol, this->max_size()*rel_tol);

0 commit comments

Comments
 (0)