gdmemvarclose.f90 File Reference

Go to the source code of this file.

Functions/Subroutines

subroutine gdmemvarclose (var)
 

Function/Subroutine Documentation

◆ gdmemvarclose()

subroutine gdmemvarclose ( type(gd_mem_variable), intent(in)  var)

Definition at line 2 of file gdmemvarclose.f90.

4 
5  type(gd_mem_variable), intent(in):: var
6  type(gd_mem_variable_entry), pointer:: ent
7  if (memtab_lookup(var, ent) /= 0) return
8  deallocate(ent%dbuf)
9  if (associated(ent%attr)) deallocate(ent%attr)
10  if (associated(ent%current)) deallocate(ent%current)
11  ent%name = ""