Skip to content

Commit

Permalink
Bring back accidentally removed validity check in postprocessing (#2048)
Browse files Browse the repository at this point in the history
* Bring back accidentally removed validity check in postprocessing

* log why

* typo
  • Loading branch information
knopers8 committed Nov 27, 2023
1 parent 8c0af64 commit 79a72f3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Framework/src/PostProcessingRunner.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,16 @@ void PostProcessingRunner::reset()

void PostProcessingRunner::updateValidity(const Trigger& trigger)
{
if (!trigger.activity.mValidity.isValid()) {
ILOG(Warning, Devel) << "Not updating objects validity, because the provided trigger validity is invalid ("
<< trigger.activity.mValidity.getMin() << ", " << trigger.activity.mValidity.getMax() << ")" << ENDM;
return;
}
if (trigger.activity.mValidity == gFullValidityInterval) {
ILOG(Warning, Devel) << "Not updating objects validity, because the provided trigger validity covers the"
<< " maximum possible validity, which is unexpected" << ENDM;
return;
}
if (!core::activity_helpers::onNumericLimit(trigger.activity.mValidity.getMin())) {
mActivity.mValidity.update(trigger.activity.mValidity.getMin());
}
Expand Down

0 comments on commit 79a72f3

Please sign in to comment.