2003-09-24 18:03:55 +08:00
|
|
|
!
|
|
|
|
! Copyright (C) 2003 A. Smogunov
|
|
|
|
! This file is distributed under the terms of the
|
|
|
|
! GNU General Public License. See the file `License'
|
|
|
|
! in the root directory of the present distribution,
|
|
|
|
! or http://www.gnu.org/copyleft/gpl.txt .
|
|
|
|
!
|
|
|
|
subroutine free_mem
|
|
|
|
!
|
|
|
|
! Deallocates memory
|
|
|
|
!
|
2004-06-26 01:25:37 +08:00
|
|
|
#include "f_defs.h"
|
2003-09-24 18:03:55 +08:00
|
|
|
use cond
|
2004-01-06 18:53:30 +08:00
|
|
|
implicit none
|
2003-09-24 18:03:55 +08:00
|
|
|
!
|
2005-01-29 01:10:20 +08:00
|
|
|
! From allocate_cond
|
2003-09-24 18:03:55 +08:00
|
|
|
!
|
2005-01-29 01:10:20 +08:00
|
|
|
deallocate(psiperl)
|
|
|
|
deallocate(zkl)
|
|
|
|
deallocate(zkrl)
|
|
|
|
deallocate(psipers)
|
|
|
|
deallocate(zks)
|
|
|
|
deallocate(zkrs)
|
|
|
|
deallocate(psiperr)
|
2003-09-24 18:03:55 +08:00
|
|
|
deallocate(zkr)
|
2005-01-29 01:10:20 +08:00
|
|
|
deallocate(zkrr)
|
|
|
|
|
2003-09-24 18:03:55 +08:00
|
|
|
deallocate(newbg)
|
|
|
|
|
|
|
|
deallocate(fun0)
|
|
|
|
deallocate(fun1)
|
|
|
|
deallocate(fund0)
|
|
|
|
deallocate(fund1)
|
|
|
|
|
|
|
|
deallocate(funl0)
|
|
|
|
deallocate(funl1)
|
|
|
|
deallocate(fundl0)
|
|
|
|
deallocate(fundl1)
|
|
|
|
|
|
|
|
deallocate(intw1)
|
|
|
|
deallocate(intw2)
|
|
|
|
|
|
|
|
deallocate(kvall)
|
|
|
|
deallocate(kfunl)
|
|
|
|
deallocate(kfundl)
|
|
|
|
deallocate(kintl)
|
|
|
|
deallocate(kcoefl)
|
|
|
|
|
|
|
|
if (ikind.ne.0) then
|
|
|
|
deallocate(kvalr)
|
|
|
|
deallocate(kfunr)
|
|
|
|
deallocate(kfundr)
|
|
|
|
deallocate(kintr)
|
|
|
|
deallocate(kcoefr)
|
|
|
|
endif
|
|
|
|
!
|
|
|
|
! From init_gper
|
|
|
|
!
|
|
|
|
deallocate(gper)
|
|
|
|
deallocate(ninsh)
|
|
|
|
deallocate(gnsh)
|
|
|
|
|
|
|
|
return
|
|
|
|
end subroutine free_mem
|