mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Well pipe size now is based on min characteristic I, J cell size
p4#: 20628
This commit is contained in:
@@ -435,18 +435,18 @@ cvf::Vec3d RigGridBase::displayModelOffset() const
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
/// Returns the max size of the charactristic cell sizes
|
||||
/// Returns the min size of the I and J charactristic cell sizes
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
double RigGridBase::characteristicCellSize()
|
||||
double RigGridBase::characteristicIJCellSize()
|
||||
{
|
||||
double characteristicCellSize = 0;
|
||||
double characteristicCellSize = HUGE_VAL;
|
||||
|
||||
double cellSizeI, cellSizeJ, cellSizeK;
|
||||
this->characteristicCellSizes(&cellSizeI, &cellSizeJ, &cellSizeK);
|
||||
|
||||
if (cellSizeI > characteristicCellSize) characteristicCellSize = cellSizeI;
|
||||
if (cellSizeJ > characteristicCellSize) characteristicCellSize = cellSizeJ;
|
||||
if (cellSizeK > characteristicCellSize) characteristicCellSize = cellSizeK;
|
||||
if (cellSizeI < characteristicCellSize) characteristicCellSize = cellSizeI;
|
||||
if (cellSizeJ < characteristicCellSize) characteristicCellSize = cellSizeJ;
|
||||
|
||||
|
||||
return characteristicCellSize;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user