mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Don't compare floating point numbers for equality.
This commit is contained in:
parent
75f7a725b3
commit
5afc290604
@ -218,7 +218,7 @@ namespace Opm
|
|||||||
const double grav = gravity_ ? gravity_[dim - 1] : 0.0;
|
const double grav = gravity_ ? gravity_[dim - 1] : 0.0;
|
||||||
wellperf_wdp_.clear();
|
wellperf_wdp_.clear();
|
||||||
wellperf_wdp_.resize(np*nperf, 0.0);
|
wellperf_wdp_.resize(np*nperf, 0.0);
|
||||||
if (grav == 0.0) {
|
if (not (std::abs(grav) > 0.0)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user