1 SUBROUTINE free_persistent_mem
4 USE mgrid_mod,
ONLY: free_mgrid
9 INTEGER :: istat1 = 0, istat2 = 0
11 IF (
ALLOCATED(xc))
DEALLOCATE (xc, scalxc, stat=istat1)
12 CALL free_mgrid (istat2)
14 IF (istat1.ne.0 .or. istat2.ne.0)
THEN
15 print *,
'problem in free_persistent_mem'
16 print *,
' istat1 = ',istat1,
' istat2 = ',istat2
19 END SUBROUTINE free_persistent_mem