mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
CppCheck : Move to inner most scope
This commit is contained in:
@@ -193,15 +193,13 @@ void RicCreateMultipleFracturesFeature::onActionTriggered(bool isChecked)
|
||||
RimProject* proj = app->project();
|
||||
|
||||
RimEclipseCase* firstSourceCase = nullptr;
|
||||
int topK = 0;
|
||||
int baseK = 0;
|
||||
if (!proj->eclipseCases().empty())
|
||||
{
|
||||
firstSourceCase = proj->eclipseCases().front();
|
||||
|
||||
auto ijkRange = ijkRangeForGrid(firstSourceCase);
|
||||
topK = static_cast<int>(ijkRange.first.z());
|
||||
baseK = static_cast<int>(ijkRange.second.z());
|
||||
int topK = static_cast<int>(ijkRange.first.z());
|
||||
int baseK = static_cast<int>(ijkRange.second.z());
|
||||
|
||||
double minimumDistanceFromTip = 100.0;
|
||||
int maxFractureCount = 100;
|
||||
|
||||
@@ -319,10 +319,10 @@ std::vector<LocationForNewFracture> RiuCreateMultipleFractionsUi::locationsForNe
|
||||
{
|
||||
for (auto w : m_wellPaths)
|
||||
{
|
||||
int fractureCountForWell = 0;
|
||||
auto wellPathGeometry = w->wellPathGeometry();
|
||||
if (wellPathGeometry)
|
||||
{
|
||||
int fractureCountForWell = 0;
|
||||
auto options = fractureOptions(m_sourceCase->eclipseCaseData(), w, this->options());
|
||||
auto mdOfWellPathTip = wellPathGeometry->measureDepths().back();
|
||||
double lastFracMd = mdOfWellPathTip;
|
||||
|
||||
Reference in New Issue
Block a user