diff options
author | Erik Schnetter <schnetter@aei.mpg.de> | 2004-12-25 14:53:00 +0000 |
---|---|---|
committer | Erik Schnetter <schnetter@aei.mpg.de> | 2004-12-25 14:53:00 +0000 |
commit | 08772eeec13250582f82e9d5eb40c0c6c16d1da5 (patch) | |
tree | 8675adc8aad78ee8241890665695b6c6a6327eb7 /Carpet/CarpetIOHDF5/src/Output.cc | |
parent | 51040b768ed039def046f430ccb96b3a79ed6848 (diff) |
CarpetIOHDF5: Use bool instead of int for some logical variables
darcs-hash:20041225145321-891bb-28ca9adbd7601709dc0c75158eab8013ee863ef9.gz
Diffstat (limited to 'Carpet/CarpetIOHDF5/src/Output.cc')
-rw-r--r-- | Carpet/CarpetIOHDF5/src/Output.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Carpet/CarpetIOHDF5/src/Output.cc b/Carpet/CarpetIOHDF5/src/Output.cc index 88385fc53..3f5a34adb 100644 --- a/Carpet/CarpetIOHDF5/src/Output.cc +++ b/Carpet/CarpetIOHDF5/src/Output.cc @@ -368,7 +368,7 @@ int WriteVar (const cGH* const cctkGH, const hid_t writer, } // Loop over all components - int first_time = 1; + bool first_time = true; BEGIN_COMPONENT_LOOP (cctkGH, group.grouptype) { // Get the intersection of the current component with this combination @@ -452,7 +452,7 @@ int WriteVar (const cGH* const cctkGH, const hid_t writer, { AddAttributes (cctkGH, fullname, group.dim, refinementlevel, request->timelevel, bbox, dataset); - first_time = 0; + first_time = false; } } } @@ -543,7 +543,7 @@ static void CheckSteerableParameters (const cGH *const cctkGH, static int OutputGH (const cGH* const cctkGH) { DECLARE_CCTK_PARAMETERS; - static int first_time = 1; + static bool first_time = true; // check if any deprecated parameters have been set in the parameter file // (don't check after recovery though) @@ -562,7 +562,7 @@ static int OutputGH (const cGH* const cctkGH) #endif } } - first_time = 0; + first_time = false; } for (int vindex = CCTK_NumVars () - 1; vindex >= 0; vindex--) |