mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
System : Removed unused variables
This commit is contained in:
@@ -195,9 +195,7 @@ void RimEclipseCase::removeResult(const QString& resultName)
|
||||
rebuildDisplayModel = true;
|
||||
}
|
||||
|
||||
std::list< caf::PdmPointer< RimEclipsePropertyFilter > >::iterator it;
|
||||
RimEclipsePropertyFilterCollection* propFilterCollection = reservoirView->propertyFilterCollection();
|
||||
|
||||
for (size_t filter = 0; filter < propFilterCollection->propertyFilters().size(); filter++)
|
||||
{
|
||||
RimEclipsePropertyFilter* propertyFilter = propFilterCollection->propertyFilters()[filter];
|
||||
|
||||
@@ -300,9 +300,6 @@ void RimEclipseInputCase::loadAndSyncronizeInputProperties()
|
||||
|
||||
if (!fileKeywordSet.empty())
|
||||
{
|
||||
|
||||
|
||||
std::vector<QString> knownKwsLeft;
|
||||
for_all(knownKeywords, fkIt)
|
||||
{
|
||||
if (fileKeywordSet.count(knownKeywords[fkIt]))
|
||||
@@ -382,14 +379,14 @@ cvf::ref<RifReaderInterface> RimEclipseInputCase::createMockModel(QString modelN
|
||||
|
||||
mockFileInterface->open("", reservoir.p());
|
||||
{
|
||||
size_t idx = reservoir->mainGrid()->cellIndexFromIJK(1, 3, 4);
|
||||
//size_t idx = reservoir->mainGrid()->cellIndexFromIJK(1, 3, 4);
|
||||
|
||||
//TODO: Rewrite active cell info in mock models
|
||||
//reservoir->mainGrid()->cell(idx).setActiveIndexInMatrixModel(cvf::UNDEFINED_SIZE_T);
|
||||
}
|
||||
|
||||
{
|
||||
size_t idx = reservoir->mainGrid()->cellIndexFromIJK(2, 2, 3);
|
||||
//size_t idx = reservoir->mainGrid()->cellIndexFromIJK(2, 2, 3);
|
||||
|
||||
//TODO: Rewrite active cell info in mock models
|
||||
//reservoir->mainGrid()->cell(idx).setActiveIndexInMatrixModel(cvf::UNDEFINED_SIZE_T);
|
||||
|
||||
@@ -217,8 +217,6 @@ QList<caf::PdmOptionItemInfo> RimEclipseResultDefinition::calculateValueOptionsF
|
||||
{
|
||||
QStringList varList = getResultVariableListForCurrentUIFieldSettings();
|
||||
|
||||
bool hasCombinedTransmissibility = false;
|
||||
|
||||
QList<caf::PdmOptionItemInfo> optionList;
|
||||
QList<caf::PdmOptionItemInfo> perCellFaceOptionList;
|
||||
for (int i = 0; i < varList.size(); ++i)
|
||||
|
||||
@@ -311,8 +311,6 @@ void RimEclipseView::createDisplayModel()
|
||||
|
||||
// Remove all existing animation frames from the viewer.
|
||||
// The parts are still cached in the RivReservoir geometry and friends
|
||||
|
||||
bool isAnimationActive = m_viewer->isAnimationActive();
|
||||
m_viewer->removeAllFrames();
|
||||
|
||||
wellCollection->scheduleIsWellPipesVisibleRecalculation();
|
||||
@@ -409,7 +407,7 @@ void RimEclipseView::createDisplayModel()
|
||||
}
|
||||
|
||||
// Compute triangle count, Debug only
|
||||
|
||||
/*
|
||||
if (false)
|
||||
{
|
||||
size_t totalTriangleCount = 0;
|
||||
@@ -431,6 +429,7 @@ void RimEclipseView::createDisplayModel()
|
||||
}
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
// Create Scenes from the frameModels
|
||||
// Animation frames for results display, starts from frame 1
|
||||
|
||||
@@ -56,7 +56,6 @@ RimFaultCollection::RimFaultCollection()
|
||||
{
|
||||
CAF_PDM_InitObject("Faults", ":/draw_style_faults_24x24.png", "", "");
|
||||
|
||||
RiaPreferences* prefs = RiaApplication::instance()->preferences();
|
||||
CAF_PDM_InitField(&showFaultCollection, "Active", true, "Active", "", "", "");
|
||||
showFaultCollection.uiCapability()->setUiHidden(true);
|
||||
|
||||
|
||||
@@ -978,16 +978,6 @@ void RimReservoirCellResultsStorage::computeNncCombRiTrans()
|
||||
|
||||
bool hasNTGResults = ntgResultIdx != cvf::UNDEFINED_SIZE_T;
|
||||
|
||||
// Get the result count, to handle that one of them might be globally defined
|
||||
|
||||
size_t permxResultValueCount = m_cellResults->cellScalarResults(permXResultIdx)[0].size();
|
||||
size_t resultValueCount = permxResultValueCount;
|
||||
if (hasNTGResults)
|
||||
{
|
||||
size_t ntgResultValueCount = m_cellResults->cellScalarResults(ntgResultIdx)[0].size();
|
||||
resultValueCount = CVF_MIN(permxResultValueCount, ntgResultValueCount);
|
||||
}
|
||||
|
||||
// Get all the actual result values
|
||||
|
||||
std::vector<double> & permXResults = m_cellResults->cellScalarResults(permXResultIdx)[0];
|
||||
@@ -1028,7 +1018,6 @@ void RimReservoirCellResultsStorage::computeNncCombRiTrans()
|
||||
}
|
||||
|
||||
const RigActiveCellInfo* activeCellInfo = m_cellResults->activeCellInfo();
|
||||
const std::vector<cvf::Vec3d>& nodes = m_ownerMainGrid->nodes();
|
||||
bool isFaceNormalsOutwards = m_ownerMainGrid->isFaceNormalsOutwards();
|
||||
|
||||
// NNC calculation
|
||||
@@ -1217,8 +1206,6 @@ void RimReservoirCellResultsStorage::computeRiMULTComponent(const QString& riMul
|
||||
// Set up output container to correct number of results
|
||||
|
||||
riMultResults.resize(resultValueCount);
|
||||
|
||||
const RigActiveCellInfo* activeCellInfo = m_cellResults->activeCellInfo();
|
||||
|
||||
for (size_t vIdx = 0; vIdx < transResults.size(); ++vIdx)
|
||||
{
|
||||
@@ -1313,7 +1300,6 @@ void RimReservoirCellResultsStorage::computeRiTRANSbyAreaComponent(const QString
|
||||
|
||||
const RigActiveCellInfo* activeCellInfo = m_cellResults->activeCellInfo();
|
||||
const std::vector<cvf::Vec3d>& nodes = m_ownerMainGrid->nodes();
|
||||
bool isFaceNormalsOutwards = m_ownerMainGrid->isFaceNormalsOutwards();
|
||||
|
||||
for (size_t nativeResvCellIndex = 0; nativeResvCellIndex < m_ownerMainGrid->cells().size(); nativeResvCellIndex++)
|
||||
{
|
||||
|
||||
@@ -76,7 +76,7 @@ RimView::RimView(void)
|
||||
cameraPosition.uiCapability()->setUiHidden(true);
|
||||
|
||||
double defaultScaleFactor = 1.0;
|
||||
if (preferences) defaultScaleFactor = preferences->defaultScaleFactorZ;
|
||||
defaultScaleFactor = preferences->defaultScaleFactorZ;
|
||||
CAF_PDM_InitField(&scaleZ, "GridZScale", defaultScaleFactor, "Z Scale", "", "Scales the scene in the Z direction", "");
|
||||
|
||||
cvf::Color3f defBackgColor = preferences->defaultViewerBackgroundColor();
|
||||
|
||||
@@ -190,7 +190,6 @@ void RimWellLogExtractionCurve::updatePlotData()
|
||||
|
||||
RimWellLogPlotCollection* wellLogCollection = NULL;
|
||||
this->firstAnchestorOrThisOfType(wellLogCollection);
|
||||
|
||||
CVF_ASSERT(wellLogCollection);
|
||||
|
||||
cvf::ref<RigEclipseWellLogExtractor> eclExtractor = wellLogCollection->findOrCreateExtractor(m_wellPath, eclipseCase);
|
||||
@@ -525,14 +524,12 @@ QString RimWellLogExtractionCurve::wellDate() const
|
||||
RimEclipseCase* eclipseCase = dynamic_cast<RimEclipseCase*>(m_case.value());
|
||||
|
||||
QStringList timeStepNames;
|
||||
size_t maxTimeStep = 0;
|
||||
|
||||
if (eclipseCase)
|
||||
{
|
||||
RifReaderInterface::PorosityModelResultType porosityModel = RigCaseCellResultsData::convertFromProjectModelPorosityModel(m_eclipseResultDefinition->porosityModel());
|
||||
if (eclipseCase->reservoirData())
|
||||
{
|
||||
maxTimeStep = eclipseCase->reservoirData()->results(porosityModel)->maxTimeStepCount();
|
||||
timeStepNames = eclipseCase->timeStepStrings();
|
||||
}
|
||||
}
|
||||
@@ -540,7 +537,6 @@ QString RimWellLogExtractionCurve::wellDate() const
|
||||
{
|
||||
if (geomCase->geoMechData())
|
||||
{
|
||||
maxTimeStep = geomCase->geoMechData()->femPartResults()->frameCount();
|
||||
timeStepNames = geomCase->timeStepStrings();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user