def iteration_space_arg(self, mapping=None): if mapping: my_mapping = mapping else: my_mapping = {"write": "write", "read": "read", "readwrite": "readwrite", "inc": "inc"} arg = Arguments.iteration_space_arg(self, my_mapping) return arg
def iteration_space_arg(self, mapping={}): if mapping != {}: my_mapping = mapping else: my_mapping = { "write": "gh_write", "read": "gh_read", "readwrite": "gh_rw", "inc": "gh_inc" } arg = Arguments.iteration_space_arg(self, my_mapping) return arg
def iteration_space_arg(self, mapping=None): if mapping: my_mapping = mapping else: # We provide an empty mapping for inc as it is not supported # in the GOcean 1.0 API. However, the entry has to be there # in the dictionary as a field that has read access causes # the code (that checks that a kernel has at least one argument # that is written to) to attempt to lookup "inc". my_mapping = { "write": "write", "read": "read", "readwrite": "readwrite", "inc": "" } arg = Arguments.iteration_space_arg(self, my_mapping) return arg