src/H5BlockF.c

- h5bl_get_reduced_partition_of_proc()
		* bugfix: we have increment the value by one
	- h5bl_get_proc_of()
		* bugfix: we have to decrement the value by one
This commit is contained in:
2006-09-28 22:41:15 +00:00
parent e76b2ed356
commit 6c4c222f4d
+12 -2
View File
@@ -127,10 +127,20 @@ h5bl_get_reduced_partition_of_proc (
H5PartFile *filehandle = (H5PartFile*)(size_t)*f;
return H5Block3dGetReducedPartitionOfProc (
h5part_int64_t herr = H5Block3dGetReducedPartitionOfProc (
filehandle,
*proc,
i_start, i_end, j_start, j_end, k_start, k_end );
if ( herr < 0 ) return herr;
(*i_start)++;
(*i_end)++;
(*j_start)++;
(*j_end)++;
(*k_start)++;
(*k_end)++;
return H5PART_SUCCESS;
}
h5part_int64_t
@@ -143,7 +153,7 @@ h5bl_get_proc_of (
H5PartFile *filehandle = (H5PartFile*)(size_t)*f;
return H5Block3dGetProcOf ( filehandle, *i, *j, *k );
return H5Block3dGetProcOf ( filehandle, (*i)-1, (*j)-1, (*k)-1 );
}
h5part_int64_t