aboutsummaryrefslogtreecommitdiff
path: root/src/include/pughi.h
diff options
context:
space:
mode:
authortradke <tradke@b61c5cb5-eaca-4651-9a7a-d64986f99364>2000-06-22 14:30:41 +0000
committertradke <tradke@b61c5cb5-eaca-4651-9a7a-d64986f99364>2000-06-22 14:30:41 +0000
commit4be9214b2f25100e39737345ce41fd3df821fecf (patch)
tree82a7fc83a3033594e1b6efcb08c0684431c7fa74 /src/include/pughi.h
parenteffa8f118e4b7856ece15ca208bbf16adda6e507 (diff)
Really free comm buffers when destroying a grid array variable.
This fixes a memory leak in PUGH. Also introduced a termination routine for PUGH which destroys the top-most pGH. Now all memory ever allocated by PUGH should be finally freed at CCTK_TERMINATE. Other thorns' termination routines which still need some information from the pGH should register themselfs as "BEFORE Driver_Terminate". git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGH/PUGH/trunk@226 b61c5cb5-eaca-4651-9a7a-d64986f99364
Diffstat (limited to 'src/include/pughi.h')
-rw-r--r--src/include/pughi.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/include/pughi.h b/src/include/pughi.h
index f6fdf1c..6847bdc 100644
--- a/src/include/pughi.h
+++ b/src/include/pughi.h
@@ -144,13 +144,14 @@ int PUGH_EnableGArrayDataStorage(pGA *GA,
int padding_size,
int padding_address_spacing);
-int PUGH_DisableGArrayDataStorage(pGA *GA);
-
int PUGH_EnableGArrayComm(pGA *GA,
int commflag);
int PUGH_DisableGArrayComm(pGA *GA);
+int PUGH_DisableGArrayGroupComm(pGH *pughGH,
+ int first_var);
+
int PUGH_SyncGArray(pGA *GA);
#ifdef CCTK_MPI