forked from jan/opencl_fdtd
Add restrict keyword to pointers (not sharing the same memory for multiple fields)
This commit is contained in:
parent
9cf50b1d88
commit
60b70bb332
@ -166,7 +166,7 @@ class Simulation(object):
|
|||||||
ctype = type_to_C(self.arg_type)
|
ctype = type_to_C(self.arg_type)
|
||||||
|
|
||||||
def ptr(arg: str) -> str:
|
def ptr(arg: str) -> str:
|
||||||
return ctype + ' *' + arg
|
return ctype + ' * restrict ' + arg
|
||||||
|
|
||||||
base_fields = OrderedDict()
|
base_fields = OrderedDict()
|
||||||
base_fields[ptr('E')] = self.E
|
base_fields[ptr('E')] = self.E
|
||||||
|
Loading…
Reference in New Issue
Block a user