MPI_TYPE_DUP(oldtype, newtype) | |
IN oldtype | datatype (handle) |
OUT newtype | copy of oldtype (handle) |
MPI_TYPE_DUP is a type constructor that duplicates the existing oldtype with associated key values. For each key value, the respective copy callback function determines the attribute value associated with this key in the new datatype; one particular action that a copy callback may take is to delete the attribute from the new datatype. Returns in newtype a new datatype with exactly the same properties as oldtype and any copied cached information, see Section Datatypes. The new datatype has identical upper bound and lower bound and yields the same net result when fully decoded with the procedures in Section Decoding a Datatype. The newtype has the same committed state as the old oldtype.