quantum-espresso/PWCOND/free_mem.f90

65 lines
1.1 KiB
Fortran

!
! 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
!
#include "f_defs.h"
use cond
implicit none
!
! From allocate_cond
!
deallocate(psiperl)
deallocate(zkl)
deallocate(zkrl)
deallocate(psipers)
deallocate(zks)
deallocate(zkrs)
deallocate(psiperr)
deallocate(zkr)
deallocate(zkrr)
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