diff options
-rw-r--r-- | src/Write.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Write.c b/src/Write.c index 4ada69b..498f5b9 100644 --- a/src/Write.c +++ b/src/Write.c @@ -154,14 +154,20 @@ int IOJpeg_Write (const cGH *GH, CCTK_INT vindex, const char *alias) if (dir == 0) { dir_i = 0; dir_j = 1; /* xy */ + if(GH->cctk_gsh[0]==1 || GH->cctk_gsh[1]==1) + continue; } else if (dir == 1) { dir_i = 0; dir_j = 2; /* xz */ + if(GH->cctk_gsh[0]==1 || GH->cctk_gsh[2]==1) + continue; } else { dir_i = 1; dir_j = 2; /* yz */ + if(GH->cctk_gsh[1]==1 || GH->cctk_gsh[2]==1) + continue; } /* set the origin using the slice center from IOUtil */ |