mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#6491 Simplify omp loop construct to compile with clang.
This commit is contained in:
parent
5da58fc649
commit
15b456b21f
@ -238,9 +238,12 @@ void RimEclipseStatisticsCaseEvaluator::evaluateForResults( const QList<ResSpec>
|
||||
|
||||
std::vector<double> statParams( STAT_PARAM_COUNT, HUGE_VAL );
|
||||
std::vector<double> values( sourceDataAccessList.size(), HUGE_VAL );
|
||||
|
||||
int cellCount = static_cast<int>( grid->cellCount() );
|
||||
|
||||
// Loop over the cells in the grid, get the case values, and calculate the cell statistics
|
||||
#pragma omp parallel for schedule( dynamic ) firstprivate( statParams, values )
|
||||
for ( int cellIdx = 0; static_cast<size_t>( cellIdx ) < grid->cellCount(); cellIdx++ )
|
||||
for ( int cellIdx = 0; cellIdx < cellCount; cellIdx++ )
|
||||
{
|
||||
size_t reservoirCellIndex = grid->reservoirCellIndex( cellIdx );
|
||||
if ( m_destinationCase->activeCellInfo( poroModel )->isActive( reservoirCellIndex ) )
|
||||
|
Loading…
Reference in New Issue
Block a user