Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(xc_t), | intent(inout) | :: | xp |
subroutine destroy_xc(xp)
type(xc_t), intent(inout) :: xp
if (allocated(xp%libxc_name)) deallocate(xp%libxc_name)
if (allocated(xp%libxc_type)) deallocate(xp%libxc_type)
if (allocated(xp%libxc_id)) deallocate(xp%libxc_id)
if (allocated(xp%libxc_weight)) deallocate(xp%libxc_weight)
call ps_clean_annotation(xp%annotation)
end subroutine destroy_xc