diff options
-rw-r--r-- | src/DumpUtils.c | 17 |
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; } |