Avoid warning about TriggerMetric not_active

This commit is contained in:
Paul Romano 2021-03-05 14:59:48 -06:00
parent 26484bf3b5
commit bbb510a9ba
2 changed files with 3 additions and 1 deletions

View file

@ -10,7 +10,7 @@
#include "openmc/capi.h"
#include "openmc/settings.h"
#ifdef __GNUC__
#if defined(__GNUC__) || defined(__clang__)
#define UNREACHABLE() __builtin_unreachable()
#else
#define UNREACHABLE() (void)0

View file

@ -87,6 +87,8 @@ check_tally_triggers(double& ratio, int& tally_id, int& score)
case TriggerMetric::relative_error:
uncertainty = rel_err;
break;
case TriggerMetric::not_active:
UNREACHABLE();
}
// Compute the uncertainty / threshold ratio.