diff options
author | eschnett <eschnett@2e825fa2-fb71-486d-8b7f-a5ff3f0f6cb8> | 2013-08-21 17:34:56 +0000 |
---|---|---|
committer | eschnett <eschnett@2e825fa2-fb71-486d-8b7f-a5ff3f0f6cb8> | 2013-08-21 17:34:56 +0000 |
commit | db2f4d1c6cc81f509d26e73d0e740dd30c17b3dc (patch) | |
tree | ab26079eba5516523d77c1e5047af176e687acc3 | |
parent | 438ab59f14870b1f58854951c493cd996cbaa641 (diff) |
git-svn-id: http://svn.cactuscode.org/arrangements/CactusNumerical/Slab/trunk@95 2e825fa2-fb71-486d-8b7f-a5ff3f0f6cb8
-rw-r--r-- | src/slab.cc | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/slab.cc b/src/slab.cc index f234a86..d3c1333 100644 --- a/src/slab.cc +++ b/src/slab.cc @@ -441,7 +441,7 @@ Slab_InitMPIDatatypes () #ifdef HAVE_CCTK_INT8 case sizeof(CCTK_INT8): MPI_INT = CACTUS_MPI_INT8; break; #endif - default: assert(0); + default: CCTK_BUILTIN_UNREACHABLE(); } #endif @@ -468,7 +468,7 @@ normal_type (int cactustype) #ifdef CCTK_INTEGER_PRECISION_8 return CCTK_VARIABLE_INT8; #endif - assert (0); + CCTK_BUILTIN_UNREACHABLE(); case CCTK_VARIABLE_REAL: #ifdef CCTK_REAL_PRECISION_4 return CCTK_VARIABLE_REAL4; @@ -479,7 +479,7 @@ normal_type (int cactustype) #ifdef CCTK_REAL_PRECISION_16 return CCTK_VARIABLE_REAL16; #endif - assert (0); + CCTK_BUILTIN_UNREACHABLE(); case CCTK_VARIABLE_COMPLEX: #ifdef CCTK_REAL_PRECISION_4 return CCTK_VARIABLE_COMPLEX8; @@ -490,7 +490,7 @@ normal_type (int cactustype) #ifdef CCTK_REAL_PRECISION_16 return CCTK_VARIABLE_COMPLEX32; #endif - assert (0); + CCTK_BUILTIN_UNREACHABLE(); } return cactustype; } @@ -529,9 +529,7 @@ mpi_type (int const cactustype) case CCTK_VARIABLE_COMPLEX32: return CACTUS_MPI_COMPLEX32; #endif } - assert (0); - CCTK_WARN (0, "internal error"); - return CACTUS_MPI_BYTE; // not reached + CCTK_BUILTIN_UNREACHABLE(); } |