Browse Source

Add restrict keyword to pointers (not sharing the same memory for multiple fields)

master
Jan Petykiewicz 3 years ago
parent
commit
60b70bb332
  1. 2
      opencl_fdtd/simulation.py

2
opencl_fdtd/simulation.py

@ -166,7 +166,7 @@ class Simulation(object):
ctype = type_to_C(self.arg_type)
def ptr(arg: str) -> str:
return ctype + ' *' + arg
return ctype + ' * restrict ' + arg
base_fields = OrderedDict()
base_fields[ptr('E')] = self.E

Loading…
Cancel
Save