truncate_element Subroutine

private subroutine truncate_element(me)

truncate all the lists in the element object

Arguments

Type IntentOptional Attributes Name
type(tem_element_type), intent(inout) :: me

element object


Calls

proc~~truncate_element~~CallsGraph proc~truncate_element truncate_element interface~truncate~2 truncate proc~truncate_element->interface~truncate~2 proc~truncate_ga_dynlong truncate_ga_dynlong interface~truncate~2->proc~truncate_ga_dynlong

Called by

proc~~truncate_element~~CalledByGraph proc~truncate_element truncate_element interface~truncate~38 truncate interface~truncate~38->proc~truncate_element

Contents

Source Code


Source Code

  subroutine truncate_element( me )
    ! ---------------------------------------------------------------------------
    !> element object
    type( tem_element_type ), intent(inout) :: me
    ! ---------------------------------------------------------------------------
    integer :: iVal
    ! ---------------------------------------------------------------------------
    call truncate( me = me%tID )
    call truncate( me = me%property )
    call truncate( me = me%eType )
    call truncate( me = me%pntTID )
    call truncate( me = me%stencil )
    do iVal = 1, me%stencil%nVals
      call truncate( me = me%stencil%val( iVal ) )
    end do
    call truncate( me = me%neighID )
    do iVal = 1, me%neighID%nVals
      call truncate( me = me%neighID%val( iVal ) )
      deallocate( me%neighID%val(iVal)%sorted)
    end do
    call truncate( me = me%sourceProc )
    call truncate( me = me%haloNesting )
    call truncate( me = me%needsUpdate )

  end subroutine truncate_element