Clean up allocated memory in a CGTO
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(cgto_type), | intent(inout) | :: | self |
pure subroutine cgto_destroy(self) !! Clean up allocated memory in a CGTO class(cgto_type), intent(inout) :: self if (allocated(self%exponents)) deallocate (self%exponents) if (allocated(self%coefficients)) deallocate (self%coefficients) self%nfunc = 0 self%ang_mom = 0 end subroutine cgto_destroy