mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
using absolute value when comparing the velocity
To decide if the value is out of range.
This commit is contained in:
parent
312fc60d13
commit
e217ca9928
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user