From 043d7296b08add8050a54c463d06c78b06eb9838 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Wed, 24 Aug 2011 10:12:52 -0400 Subject: [PATCH] Undo the previous FunctionValues test fix. Update the Values.idx function to silently switch the 'x' and 'z' dimensions. --- src/Tests/FunctionValues.hs | 2 +- src/Values.hs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Tests/FunctionValues.hs b/src/Tests/FunctionValues.hs index e14da7b..9cada35 100644 --- a/src/Tests/FunctionValues.hs +++ b/src/Tests/FunctionValues.hs @@ -11,7 +11,7 @@ test_directions :: Assertion test_directions = assertTrue "all direction functions work" (and equalities) where - fvs = make_values trilinear_repa 1 1 1 + fvs = make_values trilinear 1 1 1 equalities = [ interior fvs == 4, front fvs == 1, back fvs == 7, diff --git a/src/Values.hs b/src/Values.hs index 1b8548e..61e3a11 100644 --- a/src/Values.hs +++ b/src/Values.hs @@ -79,7 +79,7 @@ idx v3d i j k = index v3d shape where shape :: DIM3 - shape = (Z :. i :. j :. k) + shape = (Z :. k :. j :. i) zoom_shape :: Int -> DIM3 -> DIM3 -- 2.43.2