mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
correcting the determination of out-of-table-range velocity
comparing the location to the line instead of comparing the velocity value directly.
This commit is contained in:
@@ -505,7 +505,8 @@ namespace Opm
|
||||
return false; // failed in finding the solution.
|
||||
}
|
||||
} else {
|
||||
if (std::abs(water_vel[i]) < maxShearVel) {
|
||||
// check if the failure in finding the shear multiplier is due to too big water velocity.
|
||||
if ((logWaterVelO - logShearVRF.back()) < logShearWaterVel.back()) {
|
||||
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