mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#2146 Num Flood PV: Allow artCellInfo to be null if not usingActiveIndex
This commit is contained in:
@@ -33,7 +33,8 @@ void RigWeightedMeanCalc::weightedMeanOverCells(const std::vector<double>* weigh
|
||||
bool isUsingActiveIndex,
|
||||
double *result)
|
||||
{
|
||||
if (!(weights && values && cellVisibilities && actCellInfo && result)) return;
|
||||
if (!(weights && values && cellVisibilities && result)) return;
|
||||
if (!actCellInfo && isUsingActiveIndex) return;
|
||||
|
||||
if (weights->empty() || values->empty()) return;
|
||||
if (weights->size() != values->size()) return;
|
||||
|
||||
Reference in New Issue
Block a user