AMS_Memory_add_field

Add a field to AMS memory object.

Synopsis

int AMS_Memory_add_field(AMS_Memory memid, char *name, void *addr, int len, AMS_Data_type dtype,
                         AMS_Memory_type mtype, AMS_Shared_type stype, AMS_Reduction_type rtype)

Input Parameters

mem
the AMS memory object
name
the unique name of field
addr
address of memory
len
number of elements in the field (size of the array)
dtype
AMS Data type: AMS_INT, AMS_FLOAT, AMS_DOUBLE, or AMS_STRING
mtype
AMS Memory type: AMS_READ, AMS_WRITE, or AMS_READ_WRITE
stype
AMS Shared type: AMS_COMMON, AMS_DISTRIBUTED or AMS_REDUCED
rtyep
AMS Reduction type: AMS_SUM, AMS_MAX, AMS_MIN, or AMS_NONE

Location:amspub.c