flu_free_cbuf Subroutine

public subroutine flu_free_cbuf(buf)

Free an allocated cbuf.

This is a helping routine to deallocate memory that was allocated for the cbuf by C. (Cray compiler complained about its deallocation in Fortran)

Arguments

Type IntentOptional Attributes Name
type(cbuf_type) :: buf

Calls

proc~~flu_free_cbuf~~CallsGraph proc~flu_free_cbuf flu_free_cbuf interface~c_free c_free proc~flu_free_cbuf->interface~c_free

Source Code

  subroutine flu_free_cbuf(buf)
    type(cbuf_type) :: buf

    call c_free(buf%ptr)
    nullify(buf%buffer)
  end subroutine flu_free_cbuf