Clean up allocated memory in geometry_type
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(geometry_type), | intent(inout) | :: | this |
subroutine geometry_destroy(this) !! Clean up allocated memory in geometry_type class(geometry_type), intent(inout) :: this if (allocated(this%elements)) deallocate (this%elements) if (allocated(this%coords)) deallocate (this%coords) if (allocated(this%comment)) deallocate (this%comment) this%natoms = 0 end subroutine geometry_destroy