We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d3611e commit f6ba198Copy full SHA for f6ba198
src/systems/lighter_than_air_dynamics/LighterThanAirDynamics.cc
@@ -45,6 +45,7 @@
45
#include "gz/transport/Node.hh"
46
47
#include <mutex>
48
+#include <limits>
49
50
#include "LighterThanAirDynamics.hh"
51
@@ -418,7 +419,7 @@ void LighterThanAirDynamics::PreUpdate(
418
419
double visc_normal_y_ = 0.0;
420
double visc_normal_z_ = 0.0;
421
- if(visc_normal_mag_ > __DBL_EPSILON__){
422
+ if(visc_normal_mag_ > std::numeric_limits<double>::epsilon()){
423
424
visc_normal_y_ = vel_eps_v[1]/visc_normal_mag_;
425
visc_normal_z_ = vel_eps_v[2]/visc_normal_mag_;
0 commit comments