From 4be9214b2f25100e39737345ce41fd3df821fecf Mon Sep 17 00:00:00 2001 From: tradke Date: Thu, 22 Jun 2000 14:30:41 +0000 Subject: 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 --- schedule.ccl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'schedule.ccl') 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" -- cgit v1.2.3