diff options
author | Thomas Radke <tradke@aei.mpg.de> | 2006-02-07 10:57:00 +0000 |
---|---|---|
committer | Thomas Radke <tradke@aei.mpg.de> | 2006-02-07 10:57:00 +0000 |
commit | 2e1ec90148cf6f20488a65f94a6583c1a92cd4c6 (patch) | |
tree | 7c3411cf41a1bd69af6510ebf57cd9c5beaf1967 /Carpet/CarpetIOStreamedHDF5 | |
parent | f75e02c478f9dd81eb3e248c31a67598c3e383cd (diff) |
CarpetIOStreamedHDF5: Accumulate any low-level errors returned by HDF5 library calls
This patch is a necessary follow-up for thorn CarpetIOStreamedHDF5 on the
previous patch named "CarpetIOHDF5: bugfix for writing checkpoints".
I simply forgot to push everything in a single patch. Sorry !
darcs-hash:20060207105729-776a0-7604a3f2a8823d38778431ba006651f7fbee2bbb.gz
Diffstat (limited to 'Carpet/CarpetIOStreamedHDF5')
-rw-r--r-- | Carpet/CarpetIOStreamedHDF5/src/CarpetIOStreamedHDF5.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Carpet/CarpetIOStreamedHDF5/src/CarpetIOStreamedHDF5.cc b/Carpet/CarpetIOStreamedHDF5/src/CarpetIOStreamedHDF5.cc index ea21123b1..ab9b7b6dc 100644 --- a/Carpet/CarpetIOStreamedHDF5/src/CarpetIOStreamedHDF5.cc +++ b/Carpet/CarpetIOStreamedHDF5/src/CarpetIOStreamedHDF5.cc @@ -215,6 +215,7 @@ static void CheckSteerableParameters (const cGH *const cctkGH, static int OutputGH (const cGH* const cctkGH) { + int error_count = 0; DECLARE_CCTK_PARAMETERS; CarpetIOStreamedHDF5GH *myGH = @@ -297,7 +298,8 @@ static int OutputGH (const cGH* const cctkGH) client_is_ready = 0; } - return (0); + // return negative number of errors occured during this output + return (-error_count); } |