diff options
author | lanfer <lanfer@0888f3d4-9f52-45d2-93bc-d00801ff5e46> | 2000-09-12 11:12:57 +0000 |
---|---|---|
committer | lanfer <lanfer@0888f3d4-9f52-45d2-93bc-d00801ff5e46> | 2000-09-12 11:12:57 +0000 |
commit | 45da5e83d86bcb00174e64b5e26001815b052c9d (patch) | |
tree | 0bced1fd726c815f5cc0edc0bdd30a011273ee4c /src | |
parent | a1c8eec3891ff6e45073570967964afb486580ca (diff) |
adding warning for zero dimensional slabs
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGHIO/IOStreamedHDF5/trunk@33 0888f3d4-9f52-45d2-93bc-d00801ff5e46
Diffstat (limited to 'src')
-rw-r--r-- | src/DumpVar.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/DumpVar.c b/src/DumpVar.c index 90294c3..a9579d9 100644 --- a/src/DumpVar.c +++ b/src/DumpVar.c @@ -115,6 +115,14 @@ int StreamedHDF5_DumpVar (cGH *GH, int index, int timelevel, hid_t fid) sdir[1] = geo.direction[1]; sdir[2] = geo.direction[2]; } + else + { + char *fullname = CCTK_FullName (index); + CCTK_VWarn (1, __LINE__, __FILE__, CCTK_THORNSTRING, + "No 0-dim extraction possible: '%s'", fullname); + free (fullname); + return (-1); + } if (Hyperslab_GetHyperslab (GH, 0, index, timelevel, geo.sdim, geo.origin, sdir, geo.length, geo.downs, |