Conductor partial fixup
This commit is contained in:
parent
985fca76f4
commit
fdcf090249
1 changed files with 26 additions and 22 deletions
9
opencl_fdfd/kernels/p2e.cl
Normal file
9
opencl_fdfd/kernels/p2e.cl
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
|
||||
{%- if pec -%}
|
||||
if (pec[i] != 0) {
|
||||
E[i] = cdouble_new(0.0, 0.0);
|
||||
} else
|
||||
{%- endif -%}
|
||||
{
|
||||
E[i] = cdouble_mul(Pr[i], p[i]);
|
||||
}
|
||||
Loading…
Reference in a new issue