next up previous contents
Next: Using Basetypes to Construct Up: User-defined Types in SKaMPI Previous: User-defined Types in SKaMPI   Contents


Basetypes

A basetype is a type which is used to define other types (such as structs or vectors). A basetype can be given in two ways: Each tuple describes an element of the basetype. The first entry of a tuple gives the length of the element in bytes. The second element gives the displacement of this element in bytes. I.e., the address where the element starts relative to the beginning of the basetype. For example: (4,0) denotes something like MPI_DOUBLE (on most machines); simply four bytes at the beginning of the datatype. A basetype of two MPI_CHAR's is decribed by (1,0),(1,1). Currently 10 basetypes can be defined in SKaMPI  by the user.

Per Ekman 2002-01-31