mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-26 07:00:17 -05:00
Modernize well pick reader and RigWellPathFormations, add tests
Return values instead of out-parameters, and move the error dialog from the reader to the importer so the reader can be unit tested. Fix crash in level detection when erasing while iterating.
This commit is contained in:
1 parent
91e2e4d575
commit
cf36012cd2
9 files changed
+589
-622
No files matched your search
@@ -2577,18 +2577,12 @@ void RimWellLogTrack::updateFormationNamesOnPlot()
|
||||
return;
|
||||
}
|
||||
|
||||
std::vector<double> yValues;
|
||||
|
||||
const RigWellPathFormations* formations = m_formationSettings->wellPathForSourceWellPath()->formationsGeometry();
|
||||
if ( !formations ) return;
|
||||
|
||||
std::vector<QString> formationNamesToPlot;
|
||||
auto formationLevel = static_cast<RigWellPathFormations::FormationLevel>( m_formationSettings->formationLevel() );
|
||||
formations->depthAndFormationNamesUpToLevel( formationLevel,
|
||||
&formationNamesToPlot,
|
||||
&yValues,
|
||||
m_formationSettings->showFormationFluids(),
|
||||
plot->depthType() );
|
||||
auto formationLevel = static_cast<RigWellPathFormations::FormationLevel>( m_formationSettings->formationLevel() );
|
||||
auto [formationNamesToPlot, yValues] =
|
||||
formations->depthAndFormationNamesUpToLevel( formationLevel, m_formationSettings->showFormationFluids(), plot->depthType() );
|
||||
|
||||
if ( plot->depthType() == RiaDefines::DepthType::TRUE_VERTICAL_DEPTH_RKB )
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user