diff options
author | Erik Schnetter <schnetter@gmail.com> | 2013-02-27 12:25:46 -0500 |
---|---|---|
committer | Erik Schnetter <schnetter@gmail.com> | 2013-02-27 12:25:46 -0500 |
commit | 970bde512ad7ee3f40da408702026e4c2bc07c3e (patch) | |
tree | 191ff6c233fcb7d0e07a8fcf6336f78a39a881e1 /Carpet/CarpetIOASCII | |
parent | e79c4e4952f6daf41340ba6b581ff7ad947a5087 (diff) |
CarpetIOASCII: Use CCTK_BUILTIN_UNREACHABLE
Diffstat (limited to 'Carpet/CarpetIOASCII')
-rw-r--r-- | Carpet/CarpetIOASCII/src/ioascii.cc | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/Carpet/CarpetIOASCII/src/ioascii.cc b/Carpet/CarpetIOASCII/src/ioascii.cc index 9c420b892..c7dab0add 100644 --- a/Carpet/CarpetIOASCII/src/ioascii.cc +++ b/Carpet/CarpetIOASCII/src/ioascii.cc @@ -976,22 +976,20 @@ namespace CarpetIOASCII { case 1: return out1D_y; case 2: return out1D_z; case 3: return out1D_d; - default: assert (0); } + CCTK_BUILTIN_UNREACHABLE(); case 2: if (dirs[0]==0 and dirs[1]==1) return out2D_xy; if (dirs[0]==0 and dirs[1]==2) return out2D_xz; if (dirs[0]==1 and dirs[1]==2) return out2D_yz; - assert (0); + CCTK_BUILTIN_UNREACHABLE(); case 3: // Output is always requested (if switched on) return true; - - default: - assert (0); } + CCTK_BUILTIN_UNREACHABLE(); } @@ -1062,7 +1060,7 @@ namespace CarpetIOASCII { // the diagonal: we don't care about the offset break; default: - assert (0); + CCTK_BUILTIN_UNREACHABLE(); } break; @@ -1084,7 +1082,7 @@ namespace CarpetIOASCII { "out2D_yzplane_x", "out_yzplane_x", out_yzplane_x); } else { - assert (0); + CCTK_BUILTIN_UNREACHABLE(); } break; @@ -1093,7 +1091,7 @@ namespace CarpetIOASCII { break; default: - assert (0); + CCTK_BUILTIN_UNREACHABLE(); } return offset; |