A datatype object is deallocated by a call to MPI_TYPE_FREE.
MPI_TYPE_FREE(datatype) INOUT datatype datatype to be freedMPI_Type_free(MPI_Datatype *datatype)
MPI_TYPE_FREE(DATATYPE, IERROR)INTEGER DATATYPE, IERROR
MPI_TYPE_FREE marks the datatype object associated with datatype for deallocation and sets datatype to MPI_DATATYPE_NULL. MPI_DATATYPE_NULL Any communication that is currently using this datatype will complete normally. Derived datatypes that were defined from the freed datatype are not affected. derived datatype, destructor