aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortradke <tradke@10716dce-81a3-4424-a2c8-48026a0d3035>2000-11-27 13:33:09 +0000
committertradke <tradke@10716dce-81a3-4424-a2c8-48026a0d3035>2000-11-27 13:33:09 +0000
commitee593ec7c9aba228c0c3f102088dc05683ed8a37 (patch)
treedaba0b9905ca70439d7fe3d92defbaeda0892eab
parent845b1a8c57aaf14ea20c0cd6974c65ed80bccc6d (diff)
Fixed bug in my hyperslab extraction code where I used the wrong index.
This caused wrong data in 1D output and thus failing testsuites. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGHSlab/trunk@43 10716dce-81a3-4424-a2c8-48026a0d3035
-rw-r--r--src/Hyperslab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Hyperslab.c b/src/Hyperslab.c
index dba8d8a..2795c8c 100644
--- a/src/Hyperslab.c
+++ b/src/Hyperslab.c
@@ -91,7 +91,7 @@
otherwise copy element-wise in a loop */ \
if (downsample[0] == 1) \
{ \
- memcpy (typed_hdata, typed_vdata, \
+ memcpy (typed_hdata, typed_vdata + vindex, \
dim0_elements * sizeof (*typed_hdata)); \
typed_hdata += dim0_elements; \
} \