aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Carpet/CarpetIOStreamedHDF5/src/CarpetIOStreamedHDF5.cc4
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);
}