aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortradke <tradke@7842ec3a-9562-4be5-9c5b-06ba18f2b668>2002-02-25 14:36:08 +0000
committertradke <tradke@7842ec3a-9562-4be5-9c5b-06ba18f2b668>2002-02-25 14:36:08 +0000
commit414385b360d4aa86eb23dfd5c586c773253854b1 (patch)
tree201649783e097f5b25f333ad959ac4399868461d
parentd0b9d5dd2f8f61d2a9cc5840e2efbceeedc89bb1 (diff)
Don't try to sync group which have no storage assigned.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGHIO/IOHDF5Util/trunk@53 7842ec3a-9562-4be5-9c5b-06ba18f2b668
-rw-r--r--src/DumpUtils.c17
1 files changed, 5 insertions, 12 deletions
diff --git a/src/DumpUtils.c b/src/DumpUtils.c
index c3669c0..a45a5ed 100644
--- a/src/DumpUtils.c
+++ b/src/DumpUtils.c
@@ -95,16 +95,6 @@ int IOHDF5Util_DumpGH (const cGH *GH,
old_out_single = ioUtilGH->out_single;
ioUtilGH->out_single = 0;
- /* sync all active groups */
- for (vindex = CCTK_NumGroups () - 1; vindex >= 0; vindex--)
- {
- if (CCTK_IsImplementationActive (
- CCTK_ImpFromVarI (CCTK_FirstVarIndexI (vindex))))
- {
- CCTK_SyncGroupI (GH_fake_const.non_const_ptr, vindex);
- }
- }
-
/* start CP_PARAMETERS_TIMER timer */
if (timers)
{
@@ -141,8 +131,11 @@ int IOHDF5Util_DumpGH (const cGH *GH,
/* ... now the variables, sorted by groups */
for (gindex = CCTK_NumGroups () - 1; gindex >= 0; gindex--)
{
- /* only dump groups which have storage assigned */
- if (CCTK_QueryGroupStorageI (GH, gindex) <= 0)
+ /* only dump groups which belong to an active implementation
+ and have storage assigned */
+ if (! CCTK_IsImplementationActive (CCTK_ImpFromVarI (CCTK_FirstVarIndexI
+ (gindex))) ||
+ CCTK_QueryGroupStorageI (GH, gindex) <= 0)
{
continue;
}