Skip to content

Commit

Permalink
Check for missing precipitation value also
Browse files Browse the repository at this point in the history
  • Loading branch information
mpartio committed Oct 23, 2024
1 parent 3ed98cc commit 398969e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions himan-plugins/source/preform_pressure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -361,10 +361,9 @@ void preform_pressure::Calculate(shared_ptr<info<double>> myTargetInfo, unsigned
}

// FINISHED

if (RR == 0)
if (RR == 0 || IsMissing(RR))
{
// If RR is zero, we can only have potential prec form
// If RR is zero or missing, we can only have potential prec form
myTargetInfo->Index<param>(1);
myTargetInfo->Value(PreForm);
}
Expand Down

0 comments on commit 398969e

Please sign in to comment.