ppmd.access module

This module contains the access descriptor class and the pre-defined access descriptors to use when passing instances of ParticleDat and ScalarArray to the build system.

class ppmd.access.AccessType(mode)

Bases: object

Class to hold an access descriptor for data. In a pyop2 style manner. (WIP)

Parameters

mode (str) – Access mode, must be from: "R", "W", "RW", "INC"

property halo

Does this access type need halo exchange in pairwise operations :return: Bool.

property incremented

Does this access perform reductions, True/False. :return: Bool

property mode
Returns

The held access mode.

property read

Does this access type read the data, True/False. :return: Bool.

property write

Does this access type write data, True/False. :return: Bool.

class ppmd.access.DatArgStore(allow, initial)

Bases: object

items(new_dats=None)

return the dats in a consistent order

values(new_dats=None)

return the dat values in a consistent order

ppmd.access.INC = Incremental.

Access descriptor for data that is incremented.

ppmd.access.INC_ZERO = Incremental from zero.

Access descriptor for data that is incremented from zero.

ppmd.access.NULL = NULL.

NULL access descriptor for data.

ppmd.access.READ = Read only.

Access descriptor for read only data.

ppmd.access.RW = Read and write.

Descriptor for data that has accessed for both read and write.

class ppmd.access.StaticArgStore(initial)

Bases: object

get_args(values)
items()

return the dats in a guaranteed order

ppmd.access.WRITE = Write only.

Access descriptor for write only data.