METIS_Free Interface

interface

Called By

interface~~metis_free~~CalledByGraph interface~metis_free METIS_Free proc~fmetis_meshtonodal FMETIS_MeshToNodal proc~fmetis_meshtonodal->interface~metis_free
Help

public function METIS_Free(ptr) result(ierr) bind(C,name="METIS_Free")

Arguments

Type IntentOptional AttributesName
type(c_ptr), value:: ptr

The pointer to be freed. This pointer should be one of the xadj or adjncy arrays returned by METIS' API routines.

Return Value integer(kind=idx_t)

METIS_OK - Indicates that the function returned normally.

Description

Frees the memory that was allocated by either the METIS_MeshToDual or the METIS_MeshToNodal routines for returning the dual or nodal graph of a mesh.

Example

 type(c_ptr) :: xadj(:),adjncy(:)

 call METIS_MeshToNodal(...,xadj,adjncy)

 ! xadj and adjncy should be deallocated on the C side! ;)
 call METIS_Free(xadj)
 call METIS_Free(adjncy)