mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-15 01:42:13 -05:00
Fix warnings
This commit is contained in:
1 parent
436bb73485
commit
4877e058ed
6 files changed
+21
-21
No files matched your search
@@ -253,26 +253,26 @@ void RicExportMultipleSnapshotsFeature::exportViewVariationsToFolder(RimGridView
|
||||
bool rangeFilterInitState = rimView->rangeFilterCollection()->isActive();
|
||||
rimView->rangeFilterCollection()->isActive = true;
|
||||
|
||||
for (int i = msd->startSliceIndex(); i <= msd->endSliceIndex(); i++)
|
||||
for (int sliceIndex = msd->startSliceIndex(); sliceIndex <= msd->endSliceIndex(); sliceIndex++)
|
||||
{
|
||||
QString rangeFilterString = msd->sliceDirection().text() + "-" + QString::number(i);
|
||||
QString rangeFilterString = msd->sliceDirection().text() + "-" + QString::number(sliceIndex);
|
||||
QString fileName = viewCaseResultString + "_" + timeStepString + "_" + rangeFilterString;
|
||||
|
||||
rangeFilter->setDefaultValues();
|
||||
if (msd->sliceDirection == RimMultiSnapshotDefinition::RANGEFILTER_I)
|
||||
{
|
||||
rangeFilter->cellCountI = 1;
|
||||
rangeFilter->startIndexI = i;
|
||||
rangeFilter->startIndexI = sliceIndex;
|
||||
}
|
||||
else if (msd->sliceDirection == RimMultiSnapshotDefinition::RANGEFILTER_J)
|
||||
{
|
||||
rangeFilter->cellCountJ = 1;
|
||||
rangeFilter->startIndexJ = i;
|
||||
rangeFilter->startIndexJ = sliceIndex;
|
||||
}
|
||||
else if (msd->sliceDirection == RimMultiSnapshotDefinition::RANGEFILTER_K)
|
||||
{
|
||||
rangeFilter->cellCountK = 1;
|
||||
rangeFilter->startIndexK = i;
|
||||
rangeFilter->startIndexK = sliceIndex;
|
||||
}
|
||||
|
||||
rimView->rangeFilterCollection()->updateDisplayModeNotifyManagedViews(rangeFilter);
|
||||
|
||||
@@ -72,10 +72,10 @@ void RicNewSimWellFractureAtPosFeature::onActionTriggered(bool isChecked)
|
||||
RimSimWellFracture* fracture = new RimSimWellFracture();
|
||||
if (fractureCollection->simwellFractures.empty())
|
||||
{
|
||||
RimEclipseView* activeView = dynamic_cast<RimEclipseView*>(RiaApplication::instance()->activeReservoirView());
|
||||
if (activeView)
|
||||
RimEclipseView* eclipseView = dynamic_cast<RimEclipseView*>(RiaApplication::instance()->activeReservoirView());
|
||||
if (eclipseView)
|
||||
{
|
||||
activeView->fractureColors()->setDefaultResultName();
|
||||
eclipseView->fractureColors()->setDefaultResultName();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -101,7 +101,7 @@ void RicNewPltPlotFeature::onActionTriggered(bool isChecked)
|
||||
}
|
||||
else if ((eclipseWell = caf::firstAncestorOfTypeFromSelectedObject<RimSimWellInView*>()) != nullptr)
|
||||
{
|
||||
RimWellPath* wellPath = proj->wellPathFromSimWellName(eclipseWell->name());
|
||||
wellPath = proj->wellPathFromSimWellName(eclipseWell->name());
|
||||
if (!wellPath ) return;
|
||||
|
||||
wellPathName = wellPath->name();
|
||||
|
||||
@@ -88,16 +88,16 @@ void RicNewWellLogCurveExtractionFeature::onActionTriggered(bool isChecked)
|
||||
|
||||
if (wellPath || simWell)
|
||||
{
|
||||
RimWellLogTrack* wellLogPlotTrack = RicNewWellLogPlotFeatureImpl::createWellLogPlotTrack();
|
||||
RimWellLogTrack* newWellLogPlotTrack = RicNewWellLogPlotFeatureImpl::createWellLogPlotTrack();
|
||||
|
||||
RimWellLogExtractionCurve* plotCurve =
|
||||
RicWellLogTools::addExtractionCurve(wellLogPlotTrack, RiaApplication::instance()->activeReservoirView(), wellPath,
|
||||
RicWellLogTools::addExtractionCurve(newWellLogPlotTrack, RiaApplication::instance()->activeReservoirView(), wellPath,
|
||||
simWell, branchIndex, useBranchDetection);
|
||||
|
||||
plotCurve->loadDataAndUpdate(true);
|
||||
|
||||
RimWellLogPlot* plot = nullptr;
|
||||
wellLogPlotTrack->firstAncestorOrThisOfType(plot);
|
||||
newWellLogPlotTrack->firstAncestorOrThisOfType(plot);
|
||||
if (plot && plotCurve->curveData())
|
||||
{
|
||||
plot->setDepthUnit(plotCurve->curveData()->depthUnit());
|
||||
|
||||
Reference in new issue
Block a user