Clean up allocated memory in calculation_result_t
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(calculation_result_t), | intent(inout) | :: | this |
subroutine result_destroy(this) !! Clean up allocated memory in calculation_result_t class(calculation_result_t), intent(inout) :: this if (allocated(this%gradient)) deallocate (this%gradient) if (allocated(this%sigma)) deallocate (this%sigma) 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 result_destroy