destroy_nonlocal Subroutine

public subroutine destroy_nonlocal(p)

Arguments

Type IntentOptional AttributesName
type(nonlocal_t), pointer:: p

Contents

Source Code


Source Code

subroutine destroy_nonlocal(p)
type(nonlocal_t), pointer :: p

type(nonlocal_t), pointer :: q

do while (associated(p))
   call ps_clean_annotation(p%annotation)
   call destroy_nlpj(p%proj)
   call delete(p%grid)
   q => p%next
   deallocate(p)
   p => q
enddo

end subroutine destroy_nonlocal