diff options
Diffstat (limited to 'Carpet/CarpetInterp/src/interp.cc')
-rw-r--r-- | Carpet/CarpetInterp/src/interp.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Carpet/CarpetInterp/src/interp.cc b/Carpet/CarpetInterp/src/interp.cc index d6e791261..936b7d5d6 100644 --- a/Carpet/CarpetInterp/src/interp.cc +++ b/Carpet/CarpetInterp/src/interp.cc @@ -21,6 +21,7 @@ #include "dist.hh" #include "ggf.hh" #include "timestat.hh" +#include "typeprops.hh" #include "vect.hh" #include "carpet.hh" @@ -701,10 +702,10 @@ namespace CarpetInterp { vector<char> tmp (N_interp_points * N_output_arrays * vtypesize); MPI_Datatype datatype; - switch (vtype) { + switch (specific_cactus_type(vtype)) { #define TYPECASE(N,T) \ case N: { T dummy; datatype = dist::mpi_datatype(dummy); break; } -#include "carpet_typecase.hh" +#include "typecase.hh" #undef TYPECASE default: { CCTK_WARN (0, "invalid datatype"); abort(); } } |