mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2763 Use std::min and std::max instead of CVF_MAX and CVF_MIN
This commit is contained in:
committed by
Magne Sjaastad
parent
a114309776
commit
a6ddf7e6c4
@@ -1819,12 +1819,12 @@ void RifEclipseInputFileTools::readFaults( QFile& data,
|
||||
|
||||
// Adjust from 1-based to 0-based cell indices
|
||||
// Guard against invalid cell ranges by limiting lowest possible range value to zero
|
||||
cvf::CellRange cellrange( CVF_MAX( i1 - 1, 0 ),
|
||||
CVF_MAX( j1 - 1, 0 ),
|
||||
CVF_MAX( k1 - 1, 0 ),
|
||||
CVF_MAX( i2 - 1, 0 ),
|
||||
CVF_MAX( j2 - 1, 0 ),
|
||||
CVF_MAX( k2 - 1, 0 ) );
|
||||
cvf::CellRange cellrange( std::max( i1 - 1, 0 ),
|
||||
std::max( j1 - 1, 0 ),
|
||||
std::max( k1 - 1, 0 ),
|
||||
std::max( i2 - 1, 0 ),
|
||||
std::max( j2 - 1, 0 ),
|
||||
std::max( k2 - 1, 0 ) );
|
||||
|
||||
if ( !( fault && fault->name() == faultName ) )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user