aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrideout <rideout@10716dce-81a3-4424-a2c8-48026a0d3035>2002-08-01 15:51:04 +0000
committerrideout <rideout@10716dce-81a3-4424-a2c8-48026a0d3035>2002-08-01 15:51:04 +0000
commited77535d3e7bd2617127d0ada3b60a031c2c7ed5 (patch)
treeabcd776119019aaea493263a84743247024170bf
parent1421c2a4b81217e4de274b7cc3098f71de841aa3 (diff)
Fixed a bug wherein Hyperslab_Get() did not properly handle a negative
value for its hdatatype argument. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGHSlab/trunk@90 10716dce-81a3-4424-a2c8-48026a0d3035
-rw-r--r--src/GetHyperslab.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/GetHyperslab.c b/src/GetHyperslab.c
index 8629e79..d8becdc 100644
--- a/src/GetHyperslab.c
+++ b/src/GetHyperslab.c
@@ -67,9 +67,9 @@ CCTK_INT Hyperslab_Get (const cGH *GH,
{
CCTK_INT retval;
-
- retval = Hyperslab_GetList (GH, mapping_handle, 1, &proc, &vindex, &timelevel,
- &hdatatype, &hdata, NULL);
+ retval = Hyperslab_GetList (GH, mapping_handle, 1, &proc, &vindex,
+ &timelevel,
+ hdatatype<0?NULL:&hdatatype, &hdata, NULL);
return (retval == 1 ? 0 : -1);
}