aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgoodale <goodale@b61c5cb5-eaca-4651-9a7a-d64986f99364>2004-05-18 08:29:17 +0000
committergoodale <goodale@b61c5cb5-eaca-4651-9a7a-d64986f99364>2004-05-18 08:29:17 +0000
commite686497920f1e3243334f038050645597663f51b (patch)
tree09e8c291aecabf9fefb1fb6748c430cc8c95a2eb
parenta79f8b6e0da5c3e8d4fcdc8e66eadb234b22efa1 (diff)
Since scalars are zero-dim GAs now, need an extra check for the extras and
connectivity freeing. git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@442 b61c5cb5-eaca-4651-9a7a-d64986f99364
-rw-r--r--src/SetupPGH.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/SetupPGH.c b/src/SetupPGH.c
index db4f4ca..cd51f16 100644
--- a/src/SetupPGH.c
+++ b/src/SetupPGH.c
@@ -269,11 +269,11 @@ void PUGH_DestroyPGH (pGH **GHin)
for CCTK_ARRAY groups.
Remember that the connectivity and extras for CCTK_GF types
are shared between all such groups and are destroyed later. */
- if (GA->connectivity != GH->Connectivity[pgroup.dim-1])
+ if (pgroup.dim == 0 || GA->connectivity != GH->Connectivity[pgroup.dim-1])
{
PUGH_DestroyConnectivity (&GA->connectivity);
}
- if (GA->extras != GH->GFExtras[pgroup.dim-1])
+ if (pgroup.dim == 0 || GA->extras != GH->GFExtras[pgroup.dim-1])
{
PUGH_DestroyPGExtras (&GA->extras);
}