aboutsummaryrefslogtreecommitdiff
path: root/schedule.ccl
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 /schedule.ccl
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 'schedule.ccl')
-rw-r--r--schedule.ccl7
1 files changed, 6 insertions, 1 deletions
diff --git a/schedule.ccl b/schedule.ccl
index 860af1e..3544f6d 100644
--- a/schedule.ccl
+++ b/schedule.ccl
@@ -9,4 +9,9 @@ schedule PUGH_Startup at STARTUP as Driver_Startup
schedule PUGH_Report at BASEGRID
{
LANG:C
-} "Report on PUGH set up" \ No newline at end of file
+} "Report on PUGH set up"
+
+schedule PUGH_Terminate at TERMINATE as Driver_Terminate
+{
+ LANG:C
+} "Termination routine"