diff options
author | lanfer <lanfer@0888f3d4-9f52-45d2-93bc-d00801ff5e46> | 2000-08-23 08:30:41 +0000 |
---|---|---|
committer | lanfer <lanfer@0888f3d4-9f52-45d2-93bc-d00801ff5e46> | 2000-08-23 08:30:41 +0000 |
commit | ebfdbd420f2fe7f201d14264d0b4cf499591b8d7 (patch) | |
tree | 35845c4422ce673eb86436020620080cb032a90c /src | |
parent | 64f205ad82251134feeb791634a5b8c9201dffb6 (diff) |
wrong logic for getting the normal vectors
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGHIO/IOStreamedHDF5/trunk@29 0888f3d4-9f52-45d2-93bc-d00801ff5e46
Diffstat (limited to 'src')
-rw-r--r-- | src/DumpVar.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/DumpVar.c b/src/DumpVar.c index 97fcc1e..90294c3 100644 --- a/src/DumpVar.c +++ b/src/DumpVar.c @@ -104,9 +104,9 @@ int StreamedHDF5_DumpVar (cGH *GH, int index, int timelevel, hid_t fid) /* norm vector of 2d surface in 3d volume */ else if (geo.sdim==2) { - sdir[0] = (geo.direction[1]&&geo.direction[2]) ? 1:0; - sdir[1] = (geo.direction[0]&&geo.direction[2]) ? 1:0; - sdir[2] = (geo.direction[0]&&geo.direction[1]) ? 1:0; + sdir[0] = ((geo.direction[0]==1)&&(geo.direction[1]==2)) ? 1:0; + sdir[1] = ((geo.direction[0]==0)&&(geo.direction[1]==2)) ? 1:0; + sdir[2] = ((geo.direction[0]==0)&&(geo.direction[1]==1)) ? 1:0; } /* spanning directions for 3d */ else if (geo.sdim==3) |