aboutsummaryrefslogtreecommitdiff
path: root/src/GetHyperslab.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/GetHyperslab.c')
-rw-r--r--src/GetHyperslab.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/GetHyperslab.c b/src/GetHyperslab.c
index e4b2016..30e09b3 100644
--- a/src/GetHyperslab.c
+++ b/src/GetHyperslab.c
@@ -331,8 +331,7 @@ static int GetLocalHyperslab (const cGH *GH,
}
else if (vinfo.grouptype != mapping->vinfo.grouptype ||
vinfo.disttype != mapping->vinfo.disttype ||
- vinfo.dim != mapping->vinfo.dim ||
- vinfo.stagtype != mapping->vinfo.stagtype)
+ vinfo.dim != mapping->vinfo.dim)
{
errormsg = "Group data for template variable in mapping and given variable "
"don't match";
@@ -575,13 +574,13 @@ static int GetDiagonalFromFrom3D (const cGH *GH,
i = mapping->global_startpoint[0] - extras->lb[myproc][0];
j = mapping->global_startpoint[1] - extras->lb[myproc][1];
k = mapping->global_startpoint[2] - extras->lb[myproc][2];
- while (i < extras->ownership[0][1][0] &&
- j < extras->ownership[0][1][1] &&
- k < extras->ownership[0][1][2])
+ while (i < extras->ownership[1][0] &&
+ j < extras->ownership[1][1] &&
+ k < extras->ownership[1][2])
{
- if (i >= extras->ownership[0][0][0] &&
- j >= extras->ownership[0][0][1] &&
- k >= extras->ownership[0][0][2])
+ if (i >= extras->ownership[0][0] &&
+ j >= extras->ownership[0][1] &&
+ k >= extras->ownership[0][2])
{
linear_idx = i + j*extras->hyper_volume[1] + k*extras->hyper_volume[2];
if (conversion_fn)