diff options
Diffstat (limited to 'src/Hyperslab.c')
-rw-r--r-- | src/Hyperslab.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Hyperslab.c b/src/Hyperslab.c index be060ec..8e9cef1 100644 --- a/src/Hyperslab.c +++ b/src/Hyperslab.c @@ -435,6 +435,11 @@ int Hyperslab_GetLocalHyperslab (cGH *GH, int vindex, int vtimelvl, point, startpoint, endpoint, downsample, points_per_dim); break; + case CCTK_VARIABLE_COMPLEX: + PICKUP_HYPERSLAB_DATA (CCTK_COMPLEX, vinfo.dim, vdata, *hdata, + point, startpoint, endpoint, downsample, + points_per_dim); + break; default: CCTK_WARN (1, "Unsupported variable type"); retval = -1; @@ -739,6 +744,8 @@ int Hyperslab_GetHyperslab (cGH *GH, int target_proc, int vindex, int vtimelvl, 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; } |