tem_commbuf_long_finmpimem Subroutine

private subroutine tem_commbuf_long_finmpimem(me)

free the communication buffer allocated by the fillmpimem routine again.

Arguments

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

Calls

proc~~tem_commbuf_long_finmpimem~~CallsGraph proc~tem_commbuf_long_finmpimem tem_commbuf_long_finmpimem free_mpif_mem free_mpif_mem proc~tem_commbuf_long_finmpimem->free_mpif_mem

Source Code

  subroutine tem_commbuf_long_finmpimem(me)
    ! -------------------------------------------------------------------- !
    type(tem_longbuffer_type), intent(inout) :: me
    ! -------------------------------------------------------------------- !

    me%nvals = 0
    if ( allocated(me%pos) ) deallocate(me%pos)
    if ( associated(me%val) ) then
      nullify(me%val)
      call free_mpif_mem(me%mem_mpi)
    end if

  end subroutine tem_commbuf_long_finmpimem