mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-27 15:41:00 -05:00
2025.04.0 Merge dev into main
This commit is contained in:
1 parent
e9ec8cb718
commit
f96374a6b4
969 files changed
+40872
-31569
No files matched your search
@@ -89,10 +89,18 @@ void RiuDepthQwtPlot::addCurve( const RimCase* rimCase,
|
||||
return;
|
||||
}
|
||||
|
||||
double yMax = *std::max_element( depthValues.begin(), depthValues.end() );
|
||||
double yMin = *std::min_element( depthValues.begin(), depthValues.end() );
|
||||
m_maxY = std::max( yMax, m_maxY );
|
||||
m_minY = std::min( yMin, m_minY );
|
||||
std::vector<double> filtered;
|
||||
for ( double x : depthValues )
|
||||
{
|
||||
if ( !std::isnan( x ) ) filtered.push_back( x );
|
||||
}
|
||||
|
||||
if ( !filtered.empty() )
|
||||
{
|
||||
auto [min_it, max_it] = std::minmax_element( filtered.begin(), filtered.end() );
|
||||
m_maxY = std::max( *max_it, m_maxY );
|
||||
m_minY = std::min( *min_it, m_minY );
|
||||
}
|
||||
|
||||
std::vector<double> tmpDepths;
|
||||
const double nan = std::nan( "" );
|
||||
|
||||
Reference in new issue
Block a user