#2146 Num Flood PV: Allow artCellInfo to be null if not usingActiveIndex

This commit is contained in:
Rebecca Cox
2017-11-16 08:04:49 +01:00
parent 47429b1c6b
commit 6c42e74623

View File

@@ -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;