From c5374106d16d345b183a9d328502d54f16ef0bd3 Mon Sep 17 00:00:00 2001 From: Sean McGovern Date: Mon, 19 Sep 2022 23:07:53 +0000 Subject: [PATCH] #1967: modify phrasing in asserts and warnings --- src/vt/termination/termination.cc | 4 ++-- src/vt/termination/termination.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/vt/termination/termination.cc b/src/vt/termination/termination.cc index a8994404fc..96c0a1cfa9 100644 --- a/src/vt/termination/termination.cc +++ b/src/vt/termination/termination.cc @@ -1234,14 +1234,14 @@ std::size_t TerminationDetector::getNumTerminatedCollectiveEpochs() const { } void TerminationDetector::disableTD(EpochType in_epoch) { - vtAssert(not isDS(in_epoch), "Must not be a DS epoch"); + vtAssert(not isDS(in_epoch), "Must be a wave based epoch"); auto& state = in_epoch == any_epoch_sentinel ? any_epoch_state_ : findOrCreateState(in_epoch, false); state.incrementDependency(); } void TerminationDetector::enableTD(EpochType in_epoch) { - vtAssert(not isDS(in_epoch), "Must not be a DS epoch"); + vtAssert(not isDS(in_epoch), "Must be a wave based epoch"); auto& state = in_epoch == any_epoch_sentinel ? any_epoch_state_ : findOrCreateState(in_epoch, false); state.decrementDependency(); diff --git a/src/vt/termination/termination.h b/src/vt/termination/termination.h index ef7f1f8ca8..42128bfdf1 100644 --- a/src/vt/termination/termination.h +++ b/src/vt/termination/termination.h @@ -648,7 +648,7 @@ struct TerminationDetector : * \brief Disable termination detection on an epoch. Local counting is still * enabled, but any non-local progress is halted until it is enabled * - * \warning Does not work with DS epochs + * \warning Does not work with DS epochs. It must be a wave based epoch. * * \param[in] in_epoch the epoch */ @@ -657,7 +657,7 @@ struct TerminationDetector : /** * \brief Enable termination detection on an epoch. * - * \warning Does not work with DS epochs + * \warning Does not work with DS epochs. It must be a wave based epoch. * * \param[in] in_epoch the epoch */