inversion limit wrong
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 8 Oct 2019 12:00:07 +0000 (13:00 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 8 Oct 2019 12:00:07 +0000 (13:00 +0100)
simple_v_extension/remap.mdwn

index eecfdae62cff355c2126804599aeb613d5511a32..b78280427f253c471116f69c9bd611c27b4542ad 100644 (file)
@@ -69,7 +69,7 @@ executed as a python program:
             if i >= applydim:
                 ix[i] = idxs[i]
             if invxyz[i]:
-                ix[i] = lims[i] - ix[i]
+                ix[i] = lims[i] - 1 - ix[i]
         new_idx = ix[0] + ix[1] * xdim + ix[2] * xdim * ydim
         print new_idx,
         break_count += 1