forked from jan/opencl_fdfd
Conductor partial fixup
This commit is contained in:
parent
985fca76f4
commit
fdcf090249
5 changed files with 26 additions and 22 deletions
|
|
@ -91,12 +91,12 @@ def cg_solver(omega, dxes, J, epsilon, mu=None, pec=None, pmc=None, adjoint=Fals
|
|||
if pec is None:
|
||||
gpec = load_field(numpy.array([]), dtype=numpy.int8)
|
||||
else:
|
||||
gpec = load_field(pec, dtype=numpy.int8)
|
||||
gpec = load_field(pec.astype(bool), dtype=numpy.int8)
|
||||
|
||||
if pmc is None:
|
||||
gpmc = load_field(numpy.array([]), dtype=numpy.int8)
|
||||
else:
|
||||
gpmc = load_field(pmc, dtype=numpy.int8)
|
||||
gpmc = load_field(pmc.astype(bool), dtype=numpy.int8)
|
||||
|
||||
'''
|
||||
Generate OpenCL kernels
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue