diff --git a/opencl_fdtd/simulation.py b/opencl_fdtd/simulation.py index 1e573c9..988e45b 100644 --- a/opencl_fdtd/simulation.py +++ b/opencl_fdtd/simulation.py @@ -321,7 +321,6 @@ class Simulation(object): arguments=', '.join(args.keys())) return lambda e: update(*args.values(), wait_for=e) - def _create_context(self, context: pyopencl.Context = None, queue: pyopencl.CommandQueue = None): if context is None: @@ -353,6 +352,7 @@ class Simulation(object): 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)) + def type_to_C(float_type) -> str: """ Returns a string corresponding to the C equivalent of a numpy type.