aboutsummaryrefslogtreecommitdiff
path: root/src/DumpGH.c
diff options
context:
space:
mode:
authortradke <tradke@ebee0441-1374-4afa-a3b5-247f3ba15b9a>2000-04-19 13:07:36 +0000
committertradke <tradke@ebee0441-1374-4afa-a3b5-247f3ba15b9a>2000-04-19 13:07:36 +0000
commitddba92ffd7126f79a427adec85e435b327697cb4 (patch)
treefcce19945ae2af78fe583222d9174706f3e917b7 /src/DumpGH.c
parent942f73f90af9b3301972a2e56a90a810dcd53683 (diff)
Sync only variables of active implementations.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGHIO/IOFlexIO/trunk@109 ebee0441-1374-4afa-a3b5-247f3ba15b9a
Diffstat (limited to 'src/DumpGH.c')
-rw-r--r--src/DumpGH.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/DumpGH.c b/src/DumpGH.c
index 2e4b492..74a5426 100644
--- a/src/DumpGH.c
+++ b/src/DumpGH.c
@@ -287,13 +287,11 @@ void IOFlexIO_DumpGH (cGH *GH, int called_from)
if (print_timing_info)
CCTK_TimerStartI (myGH->checkpointTotalTimer);
- /* sync all groups */
- for (index = 0; index < CCTK_NumGroups (); index++) {
- char *gname = CCTK_GroupName (index);
-
- CCTK_SyncGroup (GH, gname);
- free (gname);
- }
+ /* sync all active groups */
+ for (index = 0; index < CCTK_NumGroups (); index++)
+ if (CCTK_IsImplementationActive (CCTK_ImpFromVarI (
+ CCTK_FirstVarIndexI (index))))
+ CCTK_SyncGroupI (GH, index);
/* get the base filename ... */
IOUtil_PrepareFilename (GH, NULL, dumpfname, called_from,