mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
RFT plot improvements
* Make curve selection optional to avoid flickering in depth plots * Replace undefined with zero for some curves * Add spacing factor for min and max depth
This commit is contained in:
@@ -159,6 +159,12 @@ void RifReaderOpmRft::values( const RifEclipseRftAddress& rftAddress, std::vecto
|
||||
values->push_back( data[i] );
|
||||
}
|
||||
}
|
||||
|
||||
if ( resultName == "CONFAC" || resultName == "CONKH" )
|
||||
{
|
||||
// Replace undefined values with zero to improve readability of plots
|
||||
std::replace( values->begin(), values->end(), std::numeric_limits<double>::infinity(), 0.0 );
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user