mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Avoid warning about TriggerMetric not_active
This commit is contained in:
parent
26484bf3b5
commit
bbb510a9ba
2 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue