mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-16 10:22:15 -05:00
#5101 clang-format: Adjusted penalties
Use lower absolute values to improve control of behavior
This commit is contained in:
1 parent
10f0abc9b5
commit
c82df63e10
710 files changed
+3167
-4721
No files matched your search
@@ -434,9 +434,7 @@ void RicExportLgrFeature::exportLgrsForWellPaths( const QString&
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RicExportLgrFeature::exportLgrs( const QString& exportFolder,
|
||||
const QString& wellName,
|
||||
const std::vector<LgrInfo>& lgrInfos )
|
||||
void RicExportLgrFeature::exportLgrs( const QString& exportFolder, const QString& wellName, const std::vector<LgrInfo>& lgrInfos )
|
||||
{
|
||||
if ( !lgrInfos.empty() )
|
||||
{
|
||||
@@ -477,12 +475,9 @@ std::vector<LgrInfo>
|
||||
{
|
||||
for ( const auto& wellPath : wellPaths )
|
||||
{
|
||||
auto intersectingCells = cellsIntersectingCompletions( eclipseCase,
|
||||
wellPath,
|
||||
timeStep,
|
||||
completionTypes,
|
||||
&isIntersectingOtherLgrs );
|
||||
auto newLgrs = buildLgrsPerMainCell( firstLgrId + (int)lgrs.size(),
|
||||
auto intersectingCells =
|
||||
cellsIntersectingCompletions( eclipseCase, wellPath, timeStep, completionTypes, &isIntersectingOtherLgrs );
|
||||
auto newLgrs = buildLgrsPerMainCell( firstLgrId + (int)lgrs.size(),
|
||||
eclipseCase,
|
||||
wellPath,
|
||||
intersectingCells,
|
||||
@@ -515,11 +510,8 @@ std::vector<LgrInfo>
|
||||
int lgrId = firstLgrId + (int)lgrs.size();
|
||||
auto lgrName = lgrNameFactory.newName( "WELL", lgrId );
|
||||
|
||||
auto intersectingCells = cellsIntersectingCompletions( eclipseCase,
|
||||
wellPath,
|
||||
timeStep,
|
||||
completionTypes,
|
||||
&isIntersectingOtherLgrs );
|
||||
auto intersectingCells =
|
||||
cellsIntersectingCompletions( eclipseCase, wellPath, timeStep, completionTypes, &isIntersectingOtherLgrs );
|
||||
lgrs.push_back( buildLgr( lgrId, lgrName, eclipseCase, wellPath->name(), intersectingCells, lgrCellCounts ) );
|
||||
|
||||
if ( isIntersectingOtherLgrs ) wellsIntersectingOtherLgrs->push_back( wellPath->name() );
|
||||
@@ -610,12 +602,8 @@ std::vector<LgrInfo> RicExportLgrFeature::buildLgrsPerCompletion(
|
||||
for ( auto complInfo : occupiedBbs )
|
||||
{
|
||||
auto lgrName = lgrNameFactory.newName( complInfo.first.type );
|
||||
lgrs.push_back( buildLgr( lgrId++,
|
||||
lgrName,
|
||||
eclipseCase,
|
||||
complInfo.first.wellPathName,
|
||||
complInfo.second,
|
||||
lgrSizesPerMainGridCell ) );
|
||||
lgrs.push_back(
|
||||
buildLgr( lgrId++, lgrName, eclipseCase, complInfo.first.wellPathName, complInfo.second, lgrSizesPerMainGridCell ) );
|
||||
}
|
||||
return lgrs;
|
||||
}
|
||||
@@ -713,12 +701,11 @@ std::vector<RigCompletionDataGridCell>
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::map<CompletionInfo, std::vector<RigCompletionDataGridCell>>
|
||||
RicExportLgrFeature::cellsIntersectingCompletions_PerCompletion(
|
||||
RimEclipseCase* eclipseCase,
|
||||
const std::vector<RimWellPath*>& wellPaths,
|
||||
size_t timeStep,
|
||||
const std::set<RigCompletionData::CompletionType>& completionTypes,
|
||||
QStringList* wellsIntersectingOtherLgrs )
|
||||
RicExportLgrFeature::cellsIntersectingCompletions_PerCompletion( RimEclipseCase* eclipseCase,
|
||||
const std::vector<RimWellPath*>& wellPaths,
|
||||
size_t timeStep,
|
||||
const std::set<RigCompletionData::CompletionType>& completionTypes,
|
||||
QStringList* wellsIntersectingOtherLgrs )
|
||||
{
|
||||
const RigMainGrid* mainGrid = eclipseCase->mainGrid();
|
||||
|
||||
|
||||
Reference in new issue
Block a user