aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortradke <tradke@b32723a9-ab3a-4a60-88e2-2e5d99d7c17a>2002-07-05 09:19:20 +0000
committertradke <tradke@b32723a9-ab3a-4a60-88e2-2e5d99d7c17a>2002-07-05 09:19:20 +0000
commitec6a5bd70872666d1ffe84b5c7d15525da782151 (patch)
treefa11eeda0fa55b5629f44e6c5bf694aee2ac3e64
parent3f04cb7e576055fa700dff19076c78647b8f151e (diff)
Fixed a bug in parsing the 'direction' key in an option string for 'out_vars'
parameter values. git-svn-id: http://svn.cactuscode.org/arrangements/CactusBase/IOUtil/trunk@175 b32723a9-ab3a-4a60-88e2-2e5d99d7c17a
-rw-r--r--src/Utils.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Utils.c b/src/Utils.c
index d1b487d..945755f 100644
--- a/src/Utils.c
+++ b/src/Utils.c
@@ -748,7 +748,8 @@ static void SetOutputVar (int vindex, const char *optstring, void *arg)
/* check for hyperslab option 'direction' */
if (Util_TableQueryValueInfo (table, &type, &nelems, "direction") > 0)
{
- if (type == CCTK_VARIABLE_INT && nelems > 0 && nelems <= request->vdim &&
+ if (type == CCTK_VARIABLE_INT && nelems > 0 &&
+ nelems <= request->vdim * request->vdim &&
nelems % request->vdim == 0)
{
request->hdim = nelems / request->vdim;