PropVec_doubles_PCHB_spinorb_finalize Subroutine

private subroutine PropVec_doubles_PCHB_spinorb_finalize(this)

deallocates the sampler and mapper

Type Bound

PropVec_PCHB_DoublesSpinOrbFastWeightExcGen_t

Arguments

Type IntentOptional Attributes Name
class(PropVec_PCHB_DoublesSpinOrbFastWeightExcGen_t), intent(inout) :: this

Source Code

    subroutine PropVec_doubles_PCHB_spinorb_finalize(this)
        !! deallocates the sampler and mapper
        class(PropVec_PCHB_DoublesSpinOrbFastWeightExcGen_t), intent(inout) :: this

        if (allocated(this%particle_selector)) then
            call this%AB_sampler%finalize()
            call this%particle_selector%finalize()
            ! Yes, we assume, that either all or none are allocated
            deallocate(this%particle_selector, this%tgtOrbs, this%indexer)
            if (this%create_lookup) deallocate(lookup_property_indexer)
        end if
    end subroutine PropVec_doubles_PCHB_spinorb_finalize