Clean up allocated memory in mbe_result_t
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(mbe_result_t), | intent(inout) | :: | this |
subroutine mbe_result_destroy(this) !! Clean up allocated memory in mbe_result_t class(mbe_result_t), intent(inout) :: this if (allocated(this%gradient)) deallocate (this%gradient) if (allocated(this%hessian)) deallocate (this%hessian) if (allocated(this%dipole)) deallocate (this%dipole) if (allocated(this%dipole_derivatives)) deallocate (this%dipole_derivatives) call this%reset() end subroutine mbe_result_destroy