Clean up base class resources
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(many_body_expansion_t), | intent(inout) | :: | this |
subroutine mbe_base_destroy(this) !! Clean up base class resources class(many_body_expansion_t), intent(inout) :: this if (allocated(this%sys_geom)) then call this%sys_geom%destroy() deallocate (this%sys_geom) end if if (allocated(this%node_leader_ranks)) deallocate (this%node_leader_ranks) ! Clear pointers (don't deallocate - we don't own these) this%resources => null() this%driver_config => null() ! Reset scalars this%num_nodes = 1 this%calc_type = 0 end subroutine mbe_base_destroy