aboutsummaryrefslogtreecommitdiff
path: root/src/NewHyperslab.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/NewHyperslab.c')
-rw-r--r--src/NewHyperslab.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/NewHyperslab.c b/src/NewHyperslab.c
index 050d745..b0aa21b 100644
--- a/src/NewHyperslab.c
+++ b/src/NewHyperslab.c
@@ -956,20 +956,7 @@ int NewHyperslab_GetHyperslab (cGH *GH,
}
/* detect the MPI datatype to use */
- mpi_vtype = 0;
- switch (htype)
- {
- case CCTK_VARIABLE_CHAR:
- mpi_vtype = PUGH_MPI_CHAR; break;
- case CCTK_VARIABLE_INT:
- mpi_vtype = PUGH_MPI_INT; break;
- case CCTK_VARIABLE_REAL:
- mpi_vtype = PUGH_MPI_REAL; break;
- case CCTK_VARIABLE_COMPLEX:
- mpi_vtype = PUGH_pGH (GH)->PUGH_mpi_complex; break;
- default:
- CCTK_WARN (1, "Unsupported variable type"); break;
- }
+ mpi_vtype = PUGH_MPIDataType (htype);
/* collect the hyperslab chunks from all processors */
if (target_proc < 0)