Minor spacing changes

This commit is contained in:
Jan Petykiewicz 2018-11-30 00:37:16 -08:00
parent 60b70bb332
commit a76e741d32

View File

@ -321,7 +321,6 @@ class Simulation(object):
arguments=', '.join(args.keys())) arguments=', '.join(args.keys()))
return lambda e: update(*args.values(), wait_for=e) return lambda e: update(*args.values(), wait_for=e)
def _create_context(self, context: pyopencl.Context = None, def _create_context(self, context: pyopencl.Context = None,
queue: pyopencl.CommandQueue = None): queue: pyopencl.CommandQueue = None):
if context is None: if context is None:
@ -353,6 +352,7 @@ class Simulation(object):
Exception('Initial field list elements must have same shape as epsilon elements') Exception('Initial field list elements must have same shape as epsilon elements')
return pyopencl.array.to_device(self.queue, vec(initial_value).astype(self.arg_type)) return pyopencl.array.to_device(self.queue, vec(initial_value).astype(self.arg_type))
def type_to_C(float_type) -> str: def type_to_C(float_type) -> str:
""" """
Returns a string corresponding to the C equivalent of a numpy type. Returns a string corresponding to the C equivalent of a numpy type.