mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-09-05 04:40:19 -05:00
using absolute value when comparing the velocity
To decide if the value is out of range.
This commit is contained in:
1 parent
312fc60d13
commit
e217ca9928
1 file changed
+1
-1
@@ -1005,7 +1005,7 @@ namespace Opm {
|
||||
return false; // failed in finding the solution.
|
||||
}
|
||||
}else{
|
||||
if (water_vel[i] < maxShearVel) {
|
||||
if (std::abs(water_vel[i]) < maxShearVel) {
|
||||
std::cout << " the veclocity is " << water_vel[i] << std::endl;
|
||||
std::cout << " max shear velocity is " << maxShearVel << std::endl;
|
||||
std::cerr << " something wrong happend in finding segment" << std::endl;
|
||||
|
||||
Reference in new issue
Block a user