mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-29 16:40:20 -05:00
Fixes by clang-tidy
This commit is contained in:
1 parent
4a2e730ee0
commit
fc2106edb0
33 files changed
+115
-85
No files matched your search
@@ -18,6 +18,8 @@
|
||||
|
||||
#include "RimWellAllocationPlot.h"
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "RiaNumericalTools.h"
|
||||
#include "RiaPlotDefines.h"
|
||||
#include "RiaPreferences.h"
|
||||
@@ -332,18 +334,18 @@ void RimWellAllocationPlot::updateFromWell()
|
||||
RigEclCellIndexCalculator cellIdxCalc( m_case->eclipseCaseData()->mainGrid(),
|
||||
m_case->eclipseCaseData()->activeCellInfo( RiaDefines::PorosityModelType::MATRIX_MODEL ),
|
||||
nullptr );
|
||||
wfCalculator.reset( new RigAccWellFlowCalculator( pipeBranchesCLCoords,
|
||||
pipeBranchesCellIds,
|
||||
tracerFractionCellValues,
|
||||
cellIdxCalc,
|
||||
smallContributionThreshold,
|
||||
isProducer ) );
|
||||
wfCalculator = std::make_unique<RigAccWellFlowCalculator>( pipeBranchesCLCoords,
|
||||
pipeBranchesCellIds,
|
||||
tracerFractionCellValues,
|
||||
cellIdxCalc,
|
||||
smallContributionThreshold,
|
||||
isProducer );
|
||||
}
|
||||
else
|
||||
{
|
||||
if ( !pipeBranchesCLCoords.empty() )
|
||||
{
|
||||
wfCalculator.reset( new RigAccWellFlowCalculator( pipeBranchesCLCoords, pipeBranchesCellIds, smallContributionThreshold ) );
|
||||
wfCalculator = std::make_unique<RigAccWellFlowCalculator>( pipeBranchesCLCoords, pipeBranchesCellIds, smallContributionThreshold );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -67,6 +67,7 @@
|
||||
|
||||
#include <algorithm>
|
||||
#include <iterator>
|
||||
#include <memory>
|
||||
#include <tuple>
|
||||
|
||||
CAF_PDM_SOURCE_INIT( RimWellPltPlot, "WellPltPlot" );
|
||||
@@ -507,11 +508,11 @@ void RimWellPltPlot::syncCurvesFromUiSelection()
|
||||
|
||||
if ( sourceDef.sourceType() == RifDataSourceForRftPlt::SourceType::RFT_SIM_WELL_DATA )
|
||||
{
|
||||
resultPointCalc.reset( new RigRftResultPointCalculator( m_wellPathName, rimEclipseResultCase, timeStep ) );
|
||||
resultPointCalc = std::make_unique<RigRftResultPointCalculator>( m_wellPathName, rimEclipseResultCase, timeStep );
|
||||
}
|
||||
else if ( sourceDef.sourceType() == RifDataSourceForRftPlt::SourceType::GRID_MODEL_CELL_DATA )
|
||||
{
|
||||
resultPointCalc.reset( new RigSimWellResultPointCalculator( m_wellPathName, rimEclipseResultCase, timeStep ) );
|
||||
resultPointCalc = std::make_unique<RigSimWellResultPointCalculator>( m_wellPathName, rimEclipseResultCase, timeStep );
|
||||
}
|
||||
|
||||
RiaDefines::EclipseUnitSystem unitSet = RiaDefines::EclipseUnitSystem::UNITS_UNKNOWN;
|
||||
|
||||
Reference in new issue
Block a user